sk.uniba.euromath.tests
Class Graphics2DRenderer

java.lang.Object
  extended by sk.uniba.euromath.tests.Graphics2DRenderer

public class Graphics2DRenderer
extends Object

Helper class allowing the use of Java2D on SWT or Draw2D graphical context.

Author:
Yannick Saillet

Constructor Summary
Graphics2DRenderer()
           
 
Method Summary
 void dispose()
          Dispose the resources attached to this 2D renderer.
 Graphics2D getGraphics2D()
          Returns the Graphics2D context to use.
 void prepareRendering(GC gc)
          Prepare to render on a SWT graphics context.
 void prepareRendering(org.eclipse.draw2d.Graphics graphics)
          Prepare to render on a Draw2D graphics context.
 void render(GC gc)
          Complete the rendering by flushing the 2D renderer on a SWT graphical context.
 void render(org.eclipse.draw2d.Graphics graphics)
          Complete the rendering by flushing the 2D renderer on a Draw2D graphical context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graphics2DRenderer

public Graphics2DRenderer()
Method Detail

prepareRendering

public void prepareRendering(GC gc)
Prepare to render on a SWT graphics context.


prepareRendering

public void prepareRendering(org.eclipse.draw2d.Graphics graphics)
Prepare to render on a Draw2D graphics context.


getGraphics2D

public Graphics2D getGraphics2D()
Returns the Graphics2D context to use.


render

public void render(GC gc)
Complete the rendering by flushing the 2D renderer on a SWT graphical context.


render

public void render(org.eclipse.draw2d.Graphics graphics)
Complete the rendering by flushing the 2D renderer on a Draw2D graphical context.


dispose

public void dispose()
Dispose the resources attached to this 2D renderer.



Copyright © 2003-2006 null. All Rights Reserved.