|
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.GradientBrush
org.eclipse.tptp.platform.report.birt).
public class GradientBrush
IBrush implementation for a vertical/horizontal Gradient brush using two colors. Call setBounds() de define where the brush is applied. For more complete gradient brush refer to FullGradientBrush.
FullGradientBrush| Field Summary | |
|---|---|
protected int |
dh_
Deprecated. |
protected int |
dw_
Deprecated. |
protected int |
dx_
Deprecated. |
protected int |
dy_
Deprecated. |
protected int |
h_
Deprecated. |
protected int |
rgba1_
Deprecated. |
protected int |
rgba2_
Deprecated. |
protected boolean |
vertical_
Deprecated. |
protected int |
w_
Deprecated. |
protected int |
x_
Deprecated. |
protected int |
y_
Deprecated. |
| Constructor Summary | |
|---|---|
GradientBrush(GradientBrush brush)
Deprecated. Create a copy of given brush |
|
GradientBrush(int _rgba1,
int _rgba2,
boolean _vertical)
Deprecated. Create a gradient brush |
|
| 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. |
void |
fillRectNT(IGC gc,
IGCDirect gd,
int _x,
int _y,
int _w,
int _h)
Deprecated. Help method for IGC implementor. |
void |
fillRectWT(IGC gc,
IGCDirect gd,
int _x,
int _y,
int _w,
int _h)
Deprecated. Help method for IGC implementor. |
Rect |
getBounds()
Deprecated. |
int |
getBrushColor(int x,
int y,
int curr_rgba)
Deprecated. Brush's RGBA color choice for pixel at location x,y, this pixel have currently the RGBA color curr_rgba. |
int |
getRGBA1()
Deprecated. |
int |
getRGBA2()
Deprecated. |
boolean |
isVertical()
Deprecated. |
void |
setBounds(int x,
int y,
int w,
int h)
Deprecated. Change bounds of brush (pixel coordinates). |
void |
setBounds(IRect r)
Deprecated. Change bounds of brush (pixel coordinates). |
void |
setGradient(int rgba1,
int rgba2,
boolean vertical)
Deprecated. Change gradient parameters |
void |
setRGBA(int rgba1,
int rgba2)
Deprecated. Change gradient color but not orientation |
void |
setRGBA1(int _rgba)
Deprecated. Change current color of brush |
void |
setRGBA2(int _rgba)
Deprecated. Change current color of brush |
void |
setVertical(boolean _v)
Deprecated. Change current orientation of gradient brush |
java.lang.String |
toString()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int rgba1_
protected int rgba2_
protected boolean vertical_
protected int x_
protected int y_
protected int w_
protected int h_
protected int dx_
protected int dy_
protected int dw_
protected int dh_
| Constructor Detail |
|---|
public GradientBrush(int _rgba1,
int _rgba2,
boolean _vertical)
public GradientBrush(GradientBrush brush)
| Method Detail |
|---|
public IBrush copyBrush()
copyBrush in interface IBrushpublic int getRGBA1()
public int getRGBA2()
public boolean isVertical()
public void setRGBA1(int _rgba)
public void setRGBA2(int _rgba)
public void setVertical(boolean _v)
public void setRGBA(int rgba1,
int rgba2)
public void setGradient(int rgba1,
int rgba2,
boolean vertical)
public int getBrushColor(int x,
int y,
int curr_rgba)
IBrush
getBrushColor in interface IBrushx - x coordinate of point in device coordinate.y - y coordinate of point in device coordinate.curr_rgba - 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
public void setBounds(int x,
int y,
int w,
int h)
public void setBounds(IRect r)
public Rect getBounds()
public java.lang.String toString()
toString in class java.lang.Object
public void fillRectNT(IGC gc,
IGCDirect gd,
int _x,
int _y,
int _w,
int _h)
fillRectWT
public void fillRectWT(IGC gc,
IGCDirect gd,
int _x,
int _y,
int _w,
int _h)
fillRectNT
|
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 | ||||||||