TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.igc.internal
Interface IBrush

All Known Implementing Classes:
BlackAndWhiteBrush, BlurBrush, BlurFilterBrush, FilterBrush, FilteredImageBrush, FullGradientBrush, GradientBrush, ImageBrush, NegativeBrush, NegativeBWBrush, PatternBrush, RGBFilterBrush, SolidBrush, SWTFillGradientRectangleBrush

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public interface IBrush

Brush is used by IGC and IGCDirect to fill shapes, choosing color for each pixels to draw.

See Also:
IShape, IShapeFiller

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_rgba)
          Deprecated. Brush's RGBA color choice for pixel at location x,y, this pixel have currently the RGBA color curr_rgba.
 

Method Detail

copyBrush

IBrush copyBrush()
Deprecated. 
Returns:
a full copy of this brush

getBrushColor

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.

brushStart might be called before.

Parameters:
x - 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.
Returns:
color the brush choose for (x,y) point, or curr_rgba for no changement.

brushBegin

void brushBegin(IGC gc,
                IGCDirect gd)
Deprecated. 
Start the filling of a shape. Must be called before getBrushColor(). This is time for brush to convert it parameters expressed in pixel coordinates to device coordinates as caller of getBrushColor() give only device coordinates.

Parameters:
gc - IGC which request the brush filling.
gd - IGCDirect the brush can use to convert data to device coordinates.

brushEnd

void brushEnd()
Deprecated. 
End a filling of a shape or line drawing. Called only if brushBegin have been. This is time to restore pixel coordinate parameter of brush.


TPTP 4.5.0 Platform Project
Internal API Specification