|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.report.igc.ogc.internal.OGC
org.eclipse.tptp.platform.report.birt).
public class OGC
TODO !!! UNDER TEST / DEVELOPMENT ... implementation of IGC using an off screen buffer, this IGC support transparency (this IGC implementor use none of swt.GC method). User of this GC must call getBuffer() to get off screen buffer and draw it on their real GC. Support clipping using IRect only. OGC need an adapter to the underlaying graphic system.
IOGCAdapter.| Field Summary | |
|---|---|
protected int |
background_rgba_
Deprecated. |
protected IBrush |
brush_
Deprecated. current brush used, null if not already created. |
protected int[] |
buf_
Deprecated. offscreen buffer, use one dimension array as it's really better than a two dimension array. |
protected FillPolygonAlg |
fill_poly_alg_
Deprecated. |
protected IFont |
font_
Deprecated. current font used, null if not created |
protected IGCDirect |
gd_
Deprecated. used IGCDirect |
protected int |
height_
Deprecated. |
protected LineAlg |
line_alg_
Deprecated. |
protected Oval |
oval_
Deprecated. |
protected IPen |
pen_
Deprecated. current pen used, null if not already created. |
protected int |
width_
Deprecated. |
| Fields inherited from interface org.eclipse.tptp.platform.report.igc.internal.IGC |
|---|
C_INFO_BACKGROUND, C_INFO_FOREGROUND, C_LIST_BACKGROUND, C_LIST_FOREGROUND, C_LIST_SELECTION_BACKGROUND, C_LIST_SELECTION_TEXT, C_TITLE_BACKGROUND, C_TITLE_BACKGROUND_GRADIENT, C_TITLE_FOREGROUND, C_TITLE_INACTIVE_BACKGROUND, C_TITLE_INACTIVE_BACKGROUND_GRADIENT, C_TITLE_INACTIVE_FOREGROUND, C_WIDGET_BACKGROUND, C_WIDGET_BORDER, C_WIDGET_DARK_SHADOW, C_WIDGET_FOREGROUND, C_WIDGET_HIGHLIGHT_SHADOW, C_WIDGET_LIGHT_SHADOW, C_WIDGET_NORMAL_SHADOW |
| Constructor Summary | |
|---|---|
OGC(IOGCAdapter adapter,
int width,
int height,
int background_rgba)
Deprecated. Create an Extended SWTGC, device is used for internal image creation, widthxheight off screen buffer size. |
|
| Method Summary | |
|---|---|
void |
drawArc(int xc,
int yc,
double _r1_angle,
int r1,
int r2,
double _start_angle,
double _arc_length)
Deprecated. draw an oriented arc defined by start angle and length (>0 means counter-clockwise in the sense (1,0)>(0,1)). |
void |
drawCircle(int cx,
int cy,
int radius)
Deprecated. Draw a circle of radius and centered at (cx,cy) using current brush or color. |
void |
drawEllipse(int xc,
int yc,
double _r1_angle,
int r1,
int r2)
Deprecated. Draw an oriented ellipse, not necessary coordinate aligned one. |
void |
drawFocus(int x,
int y,
int w,
int h)
Deprecated. Draw a dashed rectangle with the rectangle coordinates with XOR mode |
void |
drawFocus(IRect rect)
Deprecated. Draw the focus with rectangle object. |
void |
drawImage(IImage image,
int _x,
int _y)
Deprecated. Support for ImageProxy and SWTImage. |
void |
drawImage(IImage _image,
int _x,
int _y,
int _w,
int _h)
Deprecated. draw image resized to a rectangle |
void |
drawImage(IImage image,
int srcX,
int srcY,
int srcW,
int srcH,
int dstX,
int dstY,
int dstW,
int dstH)
Deprecated. draw part of image resized to a rectangle |
void |
drawLine(int x1,
int y1,
int x2,
int y2)
Deprecated. Draw a line using current pen. points are expressed in pixel coordinates |
void |
drawOval(int x,
int y,
int w,
int h)
Deprecated. Draw using current brush or color the oval defined inside given rectangle. |
void |
drawPath(IPath path)
Deprecated. If path is a IPolygon, use drawPoly(). |
void |
drawPoint(int x,
int y)
Deprecated. Draw pixel at location (x,y) using current brush |
void |
drawPoly(IPolygon poly)
Deprecated. If current pen is a LineStylePen use swt.gc.drawPolyline. |
void |
drawRect(int x,
int y,
int w,
int h)
Deprecated. If current pen is null or a LineStylePen, use swt.GC.drawRectangle(). |
void |
drawRect(IRect r)
Deprecated. Draw the outline of rectangle using current pen. |
void |
drawText(java.lang.String text,
int _x,
int _y)
Deprecated. Use current pen to draw font, force transparency if current brush is null. |
void |
drawText(java.lang.String text,
int x,
int y,
double angle)
Deprecated. Support any angles. |
protected void |
drawTextImage(RGBAImage data,
int devx,
int devy,
boolean transparent)
Deprecated. devx,devy is top left corner of image (! |
void |
fillArc(int xc,
int yc,
double _r1_angle,
int r1,
int r2,
double _start_angle,
double _arc_length)
Deprecated. fill an oriented arc defined by start angle and length (>0 means counter-clockwise in the sense (1,0)>(0,1)). |
void |
fillCircle(int cx,
int cy,
int radius)
Deprecated. Fill circle using current brush or color |
void |
fillEllipse(int xc,
int yc,
double _r1_angle,
int r1,
int r2)
Deprecated. Fill an oriented ellipse, not necessary coordinate aligned one. |
void |
fillOval(int x,
int y,
int w,
int h)
Deprecated. Fill using current brush or color the oval defined inside given rectangle. |
void |
fillPoly(IPolygon poly)
Deprecated. fill the polygon using current brush or color. |
void |
fillRect(int x,
int y,
int w,
int h)
Deprecated. Fill rectangle including outline using current brush (@see IRect for rectangle definition). |
void |
fillRect(IRect r)
Deprecated. Fill rectangle including outline using current brush |
void |
fillShape(IShape shape)
Deprecated. If shape is an IRect, IOval call fillRect/fillOval instead. |
boolean |
fillShapeInternal(IShape shape)
Deprecated. |
IBrush |
getBrush()
Deprecated. |
RGBAImage |
getBuffer()
Deprecated. |
IShape |
getClipping()
Deprecated. |
IFont |
getFont()
Deprecated. |
IFontMetrics |
getFontMetrics()
Deprecated. |
IGCDirect |
getIGCDirect()
Deprecated. |
IPen |
getPen()
Deprecated. |
int |
getPoint(int x,
int y)
Deprecated. |
int |
getSystemColor(int id)
Deprecated. Return system color for given id. |
protected boolean |
haveNoBrush()
Deprecated. |
protected boolean |
haveNoPen()
Deprecated. |
void |
resize(int width,
int height)
Deprecated. resize off screen image used and fill it using background color. |
void |
restart()
Deprecated. fill current buffer with background color |
IBrush |
setBrush(IBrush _brush)
Deprecated. Change current brush, special support for SolidBrush and SWTFillGradientRectangleBrush, others will be used/or not depending on shape to fill. |
IShape |
setClipping(IShape s)
Deprecated. Change current clipping area, and return previous one. |
IFont |
setFont(IFont font)
Deprecated. support all IFont. |
IPen |
setPen(IPen _pen)
Deprecated. Change current pen, special supports for: -LineStylePen: use directly swt.GC. methods. |
ISize |
textExtent(java.lang.String text)
Deprecated. |
ISize |
textExtent(java.lang.String text,
double angle)
Deprecated. |
IPolygon |
textExtent(java.lang.String text,
int x,
int y,
double angle)
Deprecated. |
protected void |
Unsupported(java.lang.String what)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IBrush brush_
protected IPen pen_
protected IFont font_
protected IGCDirect gd_
protected int width_
protected int height_
protected int background_rgba_
protected int[] buf_
protected LineAlg line_alg_
protected Oval oval_
protected FillPolygonAlg fill_poly_alg_
| Constructor Detail |
|---|
public OGC(IOGCAdapter adapter,
int width,
int height,
int background_rgba)
background_rgba - color used to initialize buffer, must not contains transparency.| Method Detail |
|---|
protected boolean haveNoBrush()
protected boolean haveNoPen()
public IGCDirect getIGCDirect()
getIGCDirect in interface IGC
public void resize(int width,
int height)
public void restart()
public RGBAImage getBuffer()
public IBrush getBrush()
getBrush in interface IGCpublic IBrush setBrush(IBrush _brush)
setBrush in interface IGCIGC.setBrush(org.eclipse.tptp.platform.report.igc.internal.IBrush)public IPen getPen()
getPen in interface IGCpublic IPen setPen(IPen _pen)
setPen in interface IGCIGC.setPen(org.eclipse.tptp.platform.report.igc.internal.IPen)
public void drawLine(int x1,
int y1,
int x2,
int y2)
IGC
drawLine in interface IGC
public int getPoint(int x,
int y)
getPoint in interface IGCx - coordinate of point to get color.y - coorindate of point to get color.
public void drawPoint(int x,
int y)
IGC
drawPoint in interface IGC
public void drawCircle(int cx,
int cy,
int radius)
IGC
drawCircle in interface IGC
public void fillCircle(int cx,
int cy,
int radius)
IGC
fillCircle in interface IGC
public void drawOval(int x,
int y,
int w,
int h)
IGC
drawOval in interface IGC
public void fillOval(int x,
int y,
int w,
int h)
IGC
fillOval in interface IGC
public void drawArc(int xc,
int yc,
double _r1_angle,
int r1,
int r2,
double _start_angle,
double _arc_length)
IGC
drawArc in interface IGCxc - X center of the ellipse.yc - Y center of the ellipse._r1_angle - angle of main radius (r1) from X coordinate axis.r1 - main radiusr2 - secondary radius (90 degree from r1)_start_angle - start angle of arc 0 is 3 O'clock position_arc_length - arc length from start angle >0 for counter-clockwise, 2*PI for full ellipse.
public void fillArc(int xc,
int yc,
double _r1_angle,
int r1,
int r2,
double _start_angle,
double _arc_length)
IGC
fillArc in interface IGCxc - X center of the ellipse.yc - Y center of the ellipse._r1_angle - angle of main radius (r1) from X coordinate axis.r1 - main radiusr2 - secondary radius (90 degree from r1)_start_angle - start angle (radian) of arc 0 is 3 O'clock position_arc_length - arc length (radian) from start angle >0 for counter-clockwise, 2*PI for full ellipse.
public void drawEllipse(int xc,
int yc,
double _r1_angle,
int r1,
int r2)
IGC
drawEllipse in interface IGCxc - X center of the ellipse.yc - Y center of the ellipse._r1_angle - angle of main radius (r1) from X coordinate axis.r1 - main radiusr2 - secondary radius (90 degree from r1)
public void fillEllipse(int xc,
int yc,
double _r1_angle,
int r1,
int r2)
IGC
fillEllipse in interface IGCxc - X center of the ellipse.yc - Y center of the ellipse._r1_angle - angle (radian) of main radius (r1) from X coordinate axis.r1 - main radiusr2 - secondary radius (90 degree from r1)
public void drawRect(int x,
int y,
int w,
int h)
drawRect in interface IGCIGC.drawRect(int, int, int, int)public void fillRect(IRect r)
IGC
fillRect in interface IGCpublic void drawRect(IRect r)
IGC
drawRect in interface IGC
public void fillRect(int x,
int y,
int w,
int h)
IGC
fillRect in interface IGC
public void drawImage(IImage image,
int _x,
int _y)
drawImage in interface IGCorg.eclipse.tptp.platform.report.igc.internal.IGC#drawImage(int, int, org.eclipse.tptp.platform.report.igc.internal.IImage)
public void drawImage(IImage _image,
int _x,
int _y,
int _w,
int _h)
IGC
drawImage in interface IGC
public void drawImage(IImage image,
int srcX,
int srcY,
int srcW,
int srcH,
int dstX,
int dstY,
int dstW,
int dstH)
IGC
drawImage in interface IGCpublic void drawPoly(IPolygon poly)
drawPoly in interface IGCIGC.drawPoly(org.eclipse.tptp.platform.report.igc.internal.IPolygon)public void fillPoly(IPolygon poly)
IGC
fillPoly in interface IGCpublic ISize textExtent(java.lang.String text)
textExtent in interface IGC
public ISize textExtent(java.lang.String text,
double angle)
textExtent in interface IGC
public IPolygon textExtent(java.lang.String text,
int x,
int y,
double angle)
textExtent in interface IGC
protected void drawTextImage(RGBAImage data,
int devx,
int devy,
boolean transparent)
public void drawText(java.lang.String text,
int _x,
int _y)
drawText in interface IGCIGC.drawText(java.lang.String, int, int )
public void drawText(java.lang.String text,
int x,
int y,
double angle)
drawText in interface IGCIGC.drawText(java.lang.String, int, int, double)
public void drawFocus(int x,
int y,
int w,
int h)
drawFocus in interface IGCpublic void drawFocus(IRect rect)
drawFocus in interface IGCdrawFocus(int, int, int, int)public IFont getFont()
getFont in interface IGCpublic IFont setFont(IFont font)
setFont in interface IGCIGC.setFont(org.eclipse.tptp.platform.report.igc.internal.IFont)public IFontMetrics getFontMetrics()
getFontMetrics in interface IGCpublic IShape getClipping()
getClipping in interface IGCpublic IShape setClipping(IShape s)
IGC
setClipping in interface IGCpublic boolean fillShapeInternal(IShape shape)
public void fillShape(IShape shape)
fillShape in interface IGCpublic void drawPath(IPath path)
drawPath in interface IGCprotected void Unsupported(java.lang.String what)
public int getSystemColor(int id)
IGC
getSystemColor in interface IGCid - identifiant of system color, see C_xxx constants
class.
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||