TPTP 4.5.0 Platform Project
Internal API Specification

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


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 IGCDirect

IGCDirect is used by IGC, IPen and IBrush to draw directly at device level graphics. IPath, IPathElement and IShapeFiller can use this interface to convert pixel coordinates to device coordinate too. IGCDirect is linked to a IGC. Methods provided here use current IGC's brush to paint, except one with explicit RGBA color in parameters.


Method Summary
 int devX(int pixX)
          Deprecated.  
 int devY(int pixY)
          Deprecated.  
 void drawHLineDirect(int x1, int x2, int y)
          Deprecated. Draw an horizontal line using current IGC brush, this method use device coordinates.
 void drawLineDirect(int x1, int y1, int x2, int y2)
          Deprecated. Draw a line using current brush, this method use device coordinates
 void drawPointDirect(int x, int y, int _rgba)
          Deprecated. Draw pixel at location (x,y) in device coordinates using color _rgba (never brush).
 void drawRectDirect(int x, int y, int w, int h)
          Deprecated. Draw given rectangle in device coordinates using current brush.
 void drawVLineDirect(int x, int y1, int y2)
          Deprecated. Draw a vertical line using current IGC brush, this method use device coordinates
 void fillRectDirect(int x, int y, int w, int h)
          Deprecated. fill given rectangle in device coordinates using current brush.
 IGC getIGC()
          Deprecated.  
 int getPointDirect(int x, int y)
          Deprecated. Same as getPixel() but x,y are in device coordinates (not in pixel), this method is provided as the opposite of drawPixelDirect().
 int pixX(int devX)
          Deprecated.  
 int pixY(int devY)
          Deprecated.  
 boolean usePixelCoordinates()
          Deprecated.  
 

Method Detail

getIGC

IGC getIGC()
Deprecated. 
Returns:
IGC interface from which this IGCDirect belongs to

usePixelCoordinates

boolean usePixelCoordinates()
Deprecated. 
Returns:
true is this GC use pixel coordinates, meaning devX(x)==x and pixX(x)==x. As few methods use "device" coordinates rather than pixel coordinates, user of IGC (ie brush or pen) can call this to optimize their coordinates conversion.

devX

int devX(int pixX)
Deprecated. 
Returns:
the X coodinate in device space corresponding to pixX in pixel coordinate space.

devY

int devY(int pixY)
Deprecated. 
Returns:
the Y coodinate in device space corresponding to pixY in pixel coordinate space.

pixX

int pixX(int devX)
Deprecated. 
Returns:
the X coodinate in pixel space corresponding to devX in device coordinate space.

pixY

int pixY(int devY)
Deprecated. 
Returns:
the X coodinate in pixel space corresponding to devY in device coordinate space.

drawHLineDirect

void drawHLineDirect(int x1,
                     int x2,
                     int y)
Deprecated. 
Draw an horizontal line using current IGC brush, this method use device coordinates.


drawVLineDirect

void drawVLineDirect(int x,
                     int y1,
                     int y2)
Deprecated. 
Draw a vertical line using current IGC brush, this method use device coordinates


drawLineDirect

void drawLineDirect(int x1,
                    int y1,
                    int x2,
                    int y2)
Deprecated. 
Draw a line using current brush, this method use device coordinates


drawPointDirect

void drawPointDirect(int x,
                     int y,
                     int _rgba)
Deprecated. 
Draw pixel at location (x,y) in device coordinates using color _rgba (never brush). Combine alpha if needed. note: this method take x,y in device coordinate and not in pixel coordinate.


getPointDirect

int getPointDirect(int x,
                   int y)
Deprecated. 
Same as getPixel() but x,y are in device coordinates (not in pixel), this method is provided as the opposite of drawPixelDirect().

Parameters:
x -
y -
Returns:
RGBA at this location, or 0 (transparent) if getPixelDirect is not supported.

fillRectDirect

void fillRectDirect(int x,
                    int y,
                    int w,
                    int h)
Deprecated. 
fill given rectangle in device coordinates using current brush.


drawRectDirect

void drawRectDirect(int x,
                    int y,
                    int w,
                    int h)
Deprecated. 
Draw given rectangle in device coordinates using current brush.


TPTP 4.5.0 Platform Project
Internal API Specification