|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectswingwt.awt.Graphics
swingwt.awt.Graphics2D
swingwt.awt.SWTGraphics2DRenderer
This class is the final point for the mapped AWT graphics stuff - it provides the rendering capabilities to the Graphics/Graphics2D classes via mappings to SWT GC calls.
| Field Summary | |
protected Color |
c
The current colour for the GC |
protected Font |
f
The current font for the GC |
protected org.eclipse.swt.graphics.GC |
gc
The SWT graphics context for painting |
protected boolean |
shouldDestroy
Whether this object should use a finalizer based destructor. |
| Constructor Summary | |
SWTGraphics2DRenderer(org.eclipse.swt.graphics.GC gcon)
|
|
SWTGraphics2DRenderer(org.eclipse.swt.graphics.GC gc,
boolean needToCleanUp)
|
|
| Method Summary | |
void |
addRenderingHints(java.util.Map hints)
NOT IMPLEMENTED |
void |
clearRect(int x,
int y,
int width,
int height)
|
void |
clip(Shape s)
NOT IMPLEMENTED |
void |
clipRect(int x,
int y,
int width,
int height)
NOT IMPLEMENTED |
void |
copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
|
Graphics |
create()
|
void |
dispose()
|
void |
draw(Shape s)
NOT IMPLEMENTED |
void |
drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
|
void |
drawBytes(byte[] data,
int offset,
int length,
int x,
int y)
|
void |
drawChars(char[] data,
int offset,
int length,
int x,
int y)
|
void |
drawGlyphVector(GlyphVector g,
float x,
float y)
NOT IMPLEMENTED |
boolean |
drawImage(Image img,
int x,
int y,
Color bgcolor,
ImageObserver observer)
|
boolean |
drawImage(Image img,
int x,
int y,
ImageObserver observer)
|
boolean |
drawImage(Image img,
int x,
int y,
int width,
int height,
Color bgcolor,
ImageObserver observer)
|
boolean |
drawImage(Image img,
int x,
int y,
int width,
int height,
ImageObserver observer)
|
boolean |
drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
Color bgcolor,
ImageObserver observer)
|
boolean |
drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
ImageObserver observer)
|
void |
drawLine(int x1,
int y1,
int x2,
int y2)
|
void |
drawOval(int x,
int y,
int width,
int height)
|
void |
drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
NOT IMPLEMENTED |
void |
drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
NOT IMPLEMENTED |
void |
drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
NOT IMPLEMENTED |
void |
drawString(java.lang.String str,
int x,
int y)
|
void |
drawString(java.lang.String str,
int x,
int y,
boolean transparent)
|
void |
fill(Shape s)
NOT IMPLEMENTED |
void |
fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
|
void |
fillOval(int x,
int y,
int width,
int height)
|
void |
fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
NOT IMPLEMENTED |
void |
fillRect(int x,
int y,
int width,
int height)
|
void |
fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Calls fillRect instead |
protected void |
finalize()
|
Color |
getBackground()
|
Shape |
getClip()
NOT IMPLEMENTED |
Rectangle |
getClipBounds()
|
Color |
getColor()
|
Composite |
getComposite()
NOT IMPLEMENTED |
GraphicsConfiguration |
getDeviceConfiguration()
NOT IMPLEMENTED |
Font |
getFont()
|
FontMetrics |
getFontMetrics(Font f)
|
FontRenderContext |
getFontRenderContext()
NOT IMPLEMENTED |
Paint |
getPaint()
NOT IMPLEMENTED |
java.lang.Object |
getRenderingHint(java.lang.Object hintKey)
NOT IMPLEMENTED |
RenderingHints |
getRenderingHints()
NOT IMPLEMENTED |
Stroke |
getStroke()
NOT IMPLEMENTED |
org.eclipse.swt.graphics.GC |
getSWTGC()
Returns the SWT GC used for direct manipulation |
AffineTransform |
getTransform()
NOT IMPLEMENTED |
boolean |
hit(Rectangle rect,
Shape s,
boolean onStroke)
NOT IMPLEMENTED |
void |
redrawUnder(int x,
int y,
int width,
int height)
|
void |
rotate(double theta)
NOT IMPLEMENTED |
void |
rotate(double theta,
double x,
double y)
NOT IMPLEMENTED |
void |
scale(double sx,
double sy)
NOT IMPLEMENTED |
void |
setBackground(Color color)
|
void |
setClip(int x,
int y,
int width,
int height)
|
void |
setClip(Shape clip)
NOT IMPLEMENTED |
void |
setColor(Color color)
|
void |
setComposite(Composite comp)
NOT IMPLEMENTED |
void |
setFont(Font f)
|
void |
setPaint(Paint paint)
NOT IMPLEMENTED |
void |
setPaintMode()
NOT IMPLEMENTED |
void |
setRenderingHint(java.lang.Object hintKey,
java.lang.Object hintValue)
NOT IMPLEMENTED |
void |
setRenderingHints(java.util.Map hints)
NOT IMPLEMENTED |
void |
setStroke(Stroke s)
NOT IMPLEMENTED |
void |
setTransform(AffineTransform Tx)
NOT IMPLEMENTED |
void |
setXORMode(Color c1)
NOT IMPLEMENTED |
void |
shear(double shx,
double shy)
NOT IMPLEMENTED |
void |
transform(AffineTransform Tx)
NOT IMPLEMENTED |
void |
translate(double tx,
double ty)
NOT IMPLEMENTED |
void |
translate(int x,
int y)
NOT IMPLEMENTED |
| Methods inherited from class swingwt.awt.Graphics |
create, draw3DRect, drawPolygon, drawRect, fill3DRect, fillPolygon, getClipBounds, getClipRect, getFontMetrics, hitClip, toString |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected org.eclipse.swt.graphics.GC gc
protected Font f
protected Color c
protected boolean shouldDestroy
| Constructor Detail |
public SWTGraphics2DRenderer(org.eclipse.swt.graphics.GC gcon)
public SWTGraphics2DRenderer(org.eclipse.swt.graphics.GC gc,
boolean needToCleanUp)
needToCleanUp - Set to true if you want a finalize destructor| Method Detail |
public Graphics create()
create in class Graphicspublic void dispose()
dispose in class Graphicspublic org.eclipse.swt.graphics.GC getSWTGC()
public void clearRect(int x,
int y,
int width,
int height)
clearRect in class Graphics
public void clipRect(int x,
int y,
int width,
int height)
clipRect in class Graphics
public void copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
copyArea in class Graphics
public void redrawUnder(int x,
int y,
int width,
int height)
redrawUnder in class Graphics
public void drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
drawArc in class Graphics
public void drawBytes(byte[] data,
int offset,
int length,
int x,
int y)
drawBytes in class Graphics
public void drawChars(char[] data,
int offset,
int length,
int x,
int y)
drawChars in class Graphics
public boolean drawImage(Image img,
int x,
int y,
Color bgcolor,
ImageObserver observer)
drawImage in class Graphics
public boolean drawImage(Image img,
int x,
int y,
ImageObserver observer)
drawImage in class Graphics
public boolean drawImage(Image img,
int x,
int y,
int width,
int height,
Color bgcolor,
ImageObserver observer)
drawImage in class Graphics
public boolean drawImage(Image img,
int x,
int y,
int width,
int height,
ImageObserver observer)
drawImage in class Graphics
public boolean drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
Color bgcolor,
ImageObserver observer)
drawImage in class Graphics
public boolean drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
ImageObserver observer)
drawImage in class Graphics
public void drawLine(int x1,
int y1,
int x2,
int y2)
drawLine in class Graphics
public void drawOval(int x,
int y,
int width,
int height)
drawOval in class Graphics
public void drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
drawPolygon in class Graphics
public void drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
drawPolyline in class Graphics
public void drawString(java.lang.String str,
int x,
int y)
drawString in class Graphics
public void drawString(java.lang.String str,
int x,
int y,
boolean transparent)
drawString in class Graphics
public void fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
fillArc in class Graphics
public void fillOval(int x,
int y,
int width,
int height)
fillOval in class Graphics
public void fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
fillPolygon in class Graphics
public void fillRect(int x,
int y,
int width,
int height)
fillRect in class Graphics
public void fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
fillRect instead
fillRoundRect in class Graphicspublic Font getFont()
getFont in class Graphicspublic Color getColor()
getColor in class Graphicspublic void setFont(Font f)
setFont in class Graphicspublic void setColor(Color color)
setColor in class Graphics
protected void finalize()
throws java.lang.Throwable
java.lang.Throwablepublic void addRenderingHints(java.util.Map hints)
addRenderingHints in class Graphics2Dpublic void clip(Shape s)
clip in class Graphics2Dpublic void draw(Shape s)
draw in class Graphics2D
public void drawGlyphVector(GlyphVector g,
float x,
float y)
drawGlyphVector in class Graphics2Dpublic void fill(Shape s)
fill in class Graphics2Dpublic Color getBackground()
getBackground in class Graphics2Dpublic Composite getComposite()
getComposite in class Graphics2Dpublic GraphicsConfiguration getDeviceConfiguration()
getDeviceConfiguration in class Graphics2Dpublic FontRenderContext getFontRenderContext()
getFontRenderContext in class Graphics2Dpublic Paint getPaint()
getPaint in class Graphics2Dpublic java.lang.Object getRenderingHint(java.lang.Object hintKey)
getRenderingHint in class Graphics2Dpublic RenderingHints getRenderingHints()
getRenderingHints in class Graphics2Dpublic Stroke getStroke()
getStroke in class Graphics2Dpublic AffineTransform getTransform()
getTransform in class Graphics2D
public boolean hit(Rectangle rect,
Shape s,
boolean onStroke)
hit in class Graphics2Dpublic void rotate(double theta)
rotate in class Graphics2D
public void rotate(double theta,
double x,
double y)
rotate in class Graphics2D
public void scale(double sx,
double sy)
scale in class Graphics2Dpublic void setBackground(Color color)
setBackground in class Graphics2Dpublic void setComposite(Composite comp)
setComposite in class Graphics2Dpublic void setPaint(Paint paint)
setPaint in class Graphics2D
public void setRenderingHint(java.lang.Object hintKey,
java.lang.Object hintValue)
setRenderingHint in class Graphics2Dpublic void setRenderingHints(java.util.Map hints)
setRenderingHints in class Graphics2Dpublic void setStroke(Stroke s)
setStroke in class Graphics2Dpublic void setTransform(AffineTransform Tx)
setTransform in class Graphics2D
public void shear(double shx,
double shy)
shear in class Graphics2Dpublic void transform(AffineTransform Tx)
transform in class Graphics2D
public void translate(double tx,
double ty)
translate in class Graphics2D
public void translate(int x,
int y)
translate in class Graphics2D
public void drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
drawRoundRect in class Graphicspublic Shape getClip()
getClip in class Graphicspublic Rectangle getClipBounds()
getClipBounds in class Graphicspublic FontMetrics getFontMetrics(Font f)
getFontMetrics in class Graphicspublic void setClip(Shape clip)
setClip in class Graphics
public void setClip(int x,
int y,
int width,
int height)
setClip in class Graphicspublic void setPaintMode()
setPaintMode in class Graphicspublic void setXORMode(Color c1)
setXORMode in class Graphics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||