TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.igc.brushes.internal
Class FilterBrush

java.lang.Object
  extended by org.eclipse.tptp.platform.report.igc.brushes.internal.FilterBrush
All Implemented Interfaces:
IBrush

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 class FilterBrush
extends java.lang.Object
implements IBrush

Apply RGBA filter on color returned by any brush. This is an example of brush combining. This can be used to add transparency value to another brush if filter color is white with expected transparency.

See Also:
IBrush.

Field Summary
protected  IBrush brush_
          Deprecated. brush to apply filtering
protected  int filter_rgba_
          Deprecated. filtering RGBA color
protected  int ga_
          Deprecated.  
protected  int gb_
          Deprecated.  
protected  int gg_
          Deprecated.  
protected  int gr_
          Deprecated.  
 
Constructor Summary
FilterBrush(FilterBrush b)
          Deprecated. Copy brush, image is shared.
FilterBrush(IBrush brush, int rgba_filter)
          Deprecated. Create a brush image.
 
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.  
 IBrush getBrush()
          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 getFilter()
          Deprecated.  
 void setBrush(IBrush b)
          Deprecated. Change brush used
 void setFilter(int filter_rgba)
          Deprecated. Change general alpha value applied on image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

brush_

protected IBrush brush_
Deprecated. 
brush to apply filtering


filter_rgba_

protected int filter_rgba_
Deprecated. 
filtering RGBA color


gr_

protected int gr_
Deprecated. 

gg_

protected int gg_
Deprecated. 

gb_

protected int gb_
Deprecated. 

ga_

protected int ga_
Deprecated. 
Constructor Detail

FilterBrush

public FilterBrush(IBrush brush,
                   int rgba_filter)
Deprecated. 
Create a brush image. Fill shape using color from given image.

Parameters:
brush - brush used to get color before aplying filter.
rgba_filter - general filter color applied on image (including transparency)

FilterBrush

public FilterBrush(FilterBrush b)
Deprecated. 
Copy brush, image is shared.

Parameters:
b - brush to copy.
Method Detail

getBrush

public IBrush getBrush()
Deprecated. 
Returns:
brush used

setBrush

public void setBrush(IBrush b)
Deprecated. 
Change brush used


getFilter

public int getFilter()
Deprecated. 
Returns:
current general alpha

setFilter

public void setFilter(int filter_rgba)
Deprecated. 
Change general alpha value applied on image


copyBrush

public IBrush copyBrush()
Deprecated. 
Specified by:
copyBrush in interface IBrush
Returns:
a full copy of this brush

getBrushColor

public int getBrushColor(int x,
                         int y,
                         int curr_rgba)
Deprecated. 
Description copied from interface: IBrush
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.

Specified by:
getBrushColor in interface IBrush
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

public void brushBegin(IGC gc,
                       IGCDirect gd)
Deprecated. 
Description copied from interface: IBrush
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.

Specified by:
brushBegin in interface IBrush
Parameters:
gc - IGC which request the brush filling.
gd - IGCDirect the brush can use to convert data to device coordinates.

brushEnd

public void brushEnd()
Deprecated. 
Description copied from interface: IBrush
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.

Specified by:
brushEnd in interface IBrush

TPTP 4.5.0 Platform Project
Internal API Specification