TPTP 4.6.0 Platform Project
Internal API Specification

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

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

Brush which generate point color from an image. Require an image with implemented getPoint() to works...

See Also:
FilteredImageBrush

Field Summary
protected  IGCDirect gd_
          Deprecated.  
protected  int ih_
          Deprecated.  
protected  IImage image_
          Deprecated.  
protected  int iw_
          Deprecated.  
protected  boolean tile_
          Deprecated.  
protected  int zx_
          Deprecated.  
protected  int zy_
          Deprecated.  
 
Constructor Summary
ImageBrush(IImage image, int x, int y, boolean tile)
          Deprecated. Create a brush image.
ImageBrush(ImageBrush b)
          Deprecated. Copy brush, image is shared.
 
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 getX()
          Deprecated.  
 int getY()
          Deprecated.  
 boolean isTiled()
          Deprecated.  
 void setOrigin(int x, int y)
          Deprecated. change origin of image in pixel coordinates
 void setTile(boolean b)
          Deprecated. Change tile property of brush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

image_

protected IImage image_
Deprecated. 

zx_

protected int zx_
Deprecated. 

zy_

protected int zy_
Deprecated. 

tile_

protected boolean tile_
Deprecated. 

gd_

protected IGCDirect gd_
Deprecated. 

iw_

protected int iw_
Deprecated. 

ih_

protected int ih_
Deprecated. 
Constructor Detail

ImageBrush

public ImageBrush(IImage image,
                  int x,
                  int y,
                  boolean tile)
Deprecated. 
Create a brush image. Fill shape using color from given image.

Parameters:
image - Image to use for filling shapes.
x - image origin in pixel coordinates
y - image origin in pixel coordinates
tile - true if image is repeated, otherwise generate transparent color.

ImageBrush

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

Parameters:
b - brush to copy.
Method Detail

isTiled

public boolean isTiled()
Deprecated. 
Returns:
true if image is tiled, false otherwise

setTile

public void setTile(boolean b)
Deprecated. 
Change tile property of brush


getX

public int getX()
Deprecated. 
Returns:
X origin of image in pixel coordinates.

getY

public int getY()
Deprecated. 
Returns:
Y origin of image in pixel coordinates

setOrigin

public void setOrigin(int x,
                      int y)
Deprecated. 
change origin of image in pixel coordinates


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.6.0 Platform Project
Internal API Specification