TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.igc.ogc.internal
Interface IOGCAdapter

All Known Implementing Classes:
SWTOGCAdapter

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 IOGCAdapter

Interface from graphic layer at device resolution and Offscreen IGC. This is made to no include any dependency to underlaying graphic system in OGC.


Method Summary
 void dispose()
          Deprecated. Dispose any system resource, adapter is known to be unusable after this call.
 boolean drawImage(int[] buf, int width, int height, IImage image, int x, int y)
          Deprecated. Draw in RGBA buffer (widthxheight), the image at given location.
 boolean drawImage(int[] buf, int width, int height, IImage image, int x, int y, int w, int h)
          Deprecated. Same as drawImage(x,y) but image is rescaled to w x h.
 boolean drawImage(int[] buf, int width, int height, IImage image, int srcX, int srcY, int srcW, int srcH, int dstX, int dstY, int dstW, int dstH)
          Deprecated. Same as drawImage(x,y,w,h), but only part (srcX,srcY,srcW,srcH) of source image must be drawn in given buffer.
 IFont getFont()
          Deprecated.  
 IFontMetrics getFontMetrics()
          Deprecated.  
 float getKdpiX()
          Deprecated.  
 float getKdpiY()
          Deprecated.  
 int getSystemColor(int id)
          Deprecated.  
 RGBAImage getTextImage(java.lang.String text, ISize size)
          Deprecated.  
 void restart()
          Deprecated. called on OGC.restart()
 void setFont(IFont font)
          Deprecated. change adapter font
 Size textExtent(java.lang.String text)
          Deprecated.  
 

Method Detail

restart

void restart()
Deprecated. 
called on OGC.restart()


dispose

void dispose()
Deprecated. 
Dispose any system resource, adapter is known to be unusable after this call. OGC never call dispose(), who have created adapter have the responsability to call dispose().


getKdpiX

float getKdpiX()
Deprecated. 
Returns:
factor to convert pixel to current device coordinate

getKdpiY

float getKdpiY()
Deprecated. 
Returns:
factor to convert pixel to current device coordinate

getSystemColor

int getSystemColor(int id)
Deprecated. 
Returns:
system color (RGBA), @see IGC.getSystemColor()

textExtent

Size textExtent(java.lang.String text)
Deprecated. 
Returns:
size of text in device coordinates

getTextImage

RGBAImage getTextImage(java.lang.String text,
                       ISize size)
Deprecated. 
Returns:
in RGBAImage the printed text using black text on white background, size is known calling textExtent before. Text is printed horizontaly.

getFont

IFont getFont()
Deprecated. 
Returns:
current adapter font using IFont format

setFont

void setFont(IFont font)
Deprecated. 
change adapter font


getFontMetrics

IFontMetrics getFontMetrics()
Deprecated. 
Returns:
current font metrics

drawImage

boolean drawImage(int[] buf,
                  int width,
                  int height,
                  IImage image,
                  int x,
                  int y)
Deprecated. 
Draw in RGBA buffer (widthxheight), the image at given location.

Returns:
false if image can't be drawn, true otherwise. any ImageProxy have been resolve before this call.

drawImage

boolean drawImage(int[] buf,
                  int width,
                  int height,
                  IImage image,
                  int x,
                  int y,
                  int w,
                  int h)
Deprecated. 
Same as drawImage(x,y) but image is rescaled to w x h.


drawImage

boolean drawImage(int[] buf,
                  int width,
                  int height,
                  IImage image,
                  int srcX,
                  int srcY,
                  int srcW,
                  int srcH,
                  int dstX,
                  int dstY,
                  int dstW,
                  int dstH)
Deprecated. 
Same as drawImage(x,y,w,h), but only part (srcX,srcY,srcW,srcH) of source image must be drawn in given buffer.


TPTP 4.5.0 Platform Project
Internal API Specification