TPTP 4.6.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.igc.util.internal
Class SolidBrush

java.lang.Object
  extended by org.eclipse.tptp.platform.report.igc.util.internal.SolidBrush
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 SolidBrush
extends java.lang.Object
implements IBrush

Solid brush implementation. This brush return same RGBA color for each points.


Field Summary
protected  int rgba_
          Deprecated.  
 
Constructor Summary
SolidBrush()
          Deprecated. Create brush using white solid color, use setRGBA() to change this color.
SolidBrush(int _rgba)
          Deprecated. Create brush using solid color
SolidBrush(SolidBrush brush)
          Deprecated. Create a copy of given 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.  
 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 getRGBA()
          Deprecated.  
 void setBounds(int x, int y, int w, int h)
          Deprecated.  
 void setRGBA(int _rgba)
          Deprecated. Change current color of 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

rgba_

protected int rgba_
Deprecated. 
Constructor Detail

SolidBrush

public SolidBrush()
Deprecated. 
Create brush using white solid color, use setRGBA() to change this color.


SolidBrush

public SolidBrush(int _rgba)
Deprecated. 
Create brush using solid color


SolidBrush

public SolidBrush(SolidBrush brush)
Deprecated. 
Create a copy of given brush

Method Detail

copyBrush

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

getRGBA

public int getRGBA()
Deprecated. 
Returns:
current color of brush using RGBA encoding

setRGBA

public void setRGBA(int _rgba)
Deprecated. 
Change current color of 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

setBounds

public void setBounds(int x,
                      int y,
                      int w,
                      int h)
Deprecated. 

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object

TPTP 4.6.0 Platform Project
Internal API Specification