|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectswingwtx.custom.Graphics2DRenderer
Code taken from http://www-106.ibm.com/developerworks/java/library/j-2dswt/ Helper class allowing the use of Java 2D on SWT or Draw2D graphical context.
Constructor Summary | |
Graphics2DRenderer()
|
Method Summary | |
void |
dispose()
Dispose the resources attached to this 2D renderer. |
java.awt.Graphics2D |
getGraphics2D()
Returns the Graphics2D context to use. |
void |
prepareRendering(org.eclipse.swt.graphics.GC gc)
Prepare to render on a SWT graphics context. |
void |
render(org.eclipse.swt.graphics.GC gc)
Complete the rendering by flushing the 2D renderer on a SWT graphical context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Graphics2DRenderer()
Method Detail |
public void prepareRendering(org.eclipse.swt.graphics.GC gc)
public java.awt.Graphics2D getGraphics2D()
public void render(org.eclipse.swt.graphics.GC gc)
public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |