|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.report.igc.brushes.internal.FullGradientBrush
org.eclipse.tptp.platform.report.birt).
public class FullGradientBrush
Linear, Circular, Conic (and more!) gradient defined by two points and a IGradientColor. For simple horizontal/vertical gradient using two color take a look at GradientBrush.
IGradientColor, GradientColor, GradientBrush| Field Summary | |
|---|---|
protected int |
sx1_
Deprecated. |
protected int |
sx2_
Deprecated. |
protected int |
sy1_
Deprecated. |
protected int |
sy2_
Deprecated. |
static int |
T_CIRCULAR
Deprecated. Gradient is circular, first point define the center, second one define the radius |
static int |
T_CONIC
Deprecated. Gradient is conic (infinite), first point define the center, second start angle, repeat property haven't any effect on conic gradient (but raise fall yes). |
static int |
T_CONIC2
Deprecated. Same gradient as T_CONIC but only inside circle defined by both points. |
static int |
T_ELECTROMAGNETIC
Deprecated. The two points define origin of two electromagnetic field. |
static int |
T_ELLIPTIC
Deprecated. The two points define focals of an ellipse. |
static int |
T_LINEAR
Deprecated. Gradient is linear along the line defined by the two points |
static int |
T_RECTANGULAR
Deprecated. The two points define a rectangle in which the gradient is rectangular to, repeat is concentric |
static int |
T_RECTANGULAR2
Deprecated. Same as T_RECTANGULAR but repeat mode define rectangles side by side. |
| Constructor Summary | |
|---|---|
FullGradientBrush(FullGradientBrush b)
Deprecated. |
|
FullGradientBrush(IGradientGenerator _gradient,
int _type)
Deprecated. Create a gradient using given gradient and type, points must be defined before used. |
|
FullGradientBrush(int _c1,
int _c2,
IGradientGenerator _gradient,
boolean _vertical)
Deprecated. Create an horizontal/vertical gradient. if vertical _cX are y coordinates. |
|
FullGradientBrush(int _x1,
int _y1,
int _x2,
int _y2,
IGradientGenerator _gradient)
Deprecated. Create a gradient using type T_LINEAR |
|
FullGradientBrush(int _x1,
int _y1,
int _x2,
int _y2,
IGradientGenerator _gradient,
int _type)
Deprecated. Create a gradient |
|
| Method Summary | |
|---|---|
void |
brushBegin(IGC gc,
IGCDirect gd)
Deprecated. Start the filling of a shape. |
void |
brushEnd()
Deprecated. End a filling of a shape or line drawing. |
IBrush |
copyBrush()
Deprecated. |
int |
getBrushColor(int x,
int y,
int curr_clr)
Deprecated. Brush's RGBA color choice for pixel at location x,y, this pixel have currently the RGBA color curr_rgba. |
IGradientGenerator |
getGradientColor()
Deprecated. |
IPoint |
getPoint1()
Deprecated. returns the coordinates of the first points defined the brush |
int |
getPoint1X()
Deprecated. returns the X coordinate of the first points defined the brush |
int |
getPoint1Y()
Deprecated. returns the Y coordinate of the second points defined the brush |
IPoint |
getPoint2()
Deprecated. returns the coordinates of the first points defined the brush |
int |
getPoint2X()
Deprecated. returns the X coordinate of the first points defined the brush |
int |
getPoint2Y()
Deprecated. returns the Y coordinate of the second points defined the brush |
int |
getType()
Deprecated. |
boolean |
isRaiseFall()
Deprecated. |
boolean |
isRepeated()
Deprecated. |
IGradientGenerator |
setGradientColor(IGradientGenerator _gradient)
Deprecated. Change gradient color used by this brush. |
void |
setPoint1(int _x1,
int _y1)
Deprecated. Change first points defined the brush |
void |
setPoint2(int _x2,
int _y2)
Deprecated. Change first points defined the brush |
void |
setPoints(int _x1,
int _y1,
int _x2,
int _y2)
Deprecated. Change both points defining the brush |
void |
setRaiseFall(boolean b)
Deprecated. Change raise-fall porperty |
void |
setRepeated(boolean b)
Deprecated. change repeat property |
void |
setType(int type)
Deprecated. change gradient mode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int T_LINEAR
public static final int T_CIRCULAR
public static final int T_CONIC
public static final int T_CONIC2
public static final int T_ELLIPTIC
public static final int T_ELECTROMAGNETIC
public static final int T_RECTANGULAR
public static final int T_RECTANGULAR2
protected int sx1_
protected int sy1_
protected int sx2_
protected int sy2_
| Constructor Detail |
|---|
public FullGradientBrush(int _x1,
int _y1,
int _x2,
int _y2,
IGradientGenerator _gradient)
public FullGradientBrush(int _x1,
int _y1,
int _x2,
int _y2,
IGradientGenerator _gradient,
int _type)
public FullGradientBrush(int _c1,
int _c2,
IGradientGenerator _gradient,
boolean _vertical)
public FullGradientBrush(IGradientGenerator _gradient,
int _type)
setPoints()public FullGradientBrush(FullGradientBrush b)
| Method Detail |
|---|
public IBrush copyBrush()
copyBrush in interface IBrush
public void setPoints(int _x1,
int _y1,
int _x2,
int _y2)
public void setPoint1(int _x1,
int _y1)
public void setPoint2(int _x2,
int _y2)
public int getPoint1X()
public int getPoint2X()
public int getPoint1Y()
public int getPoint2Y()
public IPoint getPoint1()
public IPoint getPoint2()
public IGradientGenerator getGradientColor()
public IGradientGenerator setGradientColor(IGradientGenerator _gradient)
public boolean isRepeated()
public void setRepeated(boolean b)
public boolean isRaiseFall()
public void setRaiseFall(boolean b)
public int getType()
public void setType(int type)
public int getBrushColor(int x,
int y,
int curr_clr)
IBrush
getBrushColor in interface IBrushx - x coordinate of point in device coordinate.y - y coordinate of point in device coordinate.curr_clr - current color of point (x,y) in render.
public void brushBegin(IGC gc,
IGCDirect gd)
IBrush
brushBegin in interface IBrushgc - IGC which request the brush filling.gd - IGCDirect the brush can use to convert data to device coordinates.public void brushEnd()
IBrush
brushEnd in interface IBrush
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||