com.vividsolutions.jump.workbench.ui.renderer
Class ThreadSafeImage

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.renderer.ThreadSafeImage
All Implemented Interfaces:
java.lang.Cloneable

public class ThreadSafeImage
extends java.lang.Object
implements java.lang.Cloneable

Reading and writing can be done on separate threads.


Nested Class Summary
static interface ThreadSafeImage.Drawer
           
 
Constructor Summary
ThreadSafeImage(LayerViewPanel panel)
           
 
Method Summary
 java.lang.Object clone()
          If the panel is not ready, returns null.
 void copyTo(java.awt.Graphics2D destination, java.awt.image.ImageObserver imageObserver)
           
 void draw(ThreadSafeImage.Drawer drawer)
           
 GraphicsState getGraphicsState()
           
 void setGraphicsState(GraphicsState gs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadSafeImage

public ThreadSafeImage(LayerViewPanel panel)
Method Detail

copyTo

public void copyTo(java.awt.Graphics2D destination,
                   java.awt.image.ImageObserver imageObserver)

draw

public void draw(ThreadSafeImage.Drawer drawer)
          throws java.lang.Exception
Throws:
java.lang.Exception

getGraphicsState

public GraphicsState getGraphicsState()

setGraphicsState

public void setGraphicsState(GraphicsState gs)

clone

public java.lang.Object clone()
If the panel is not ready, returns null.

Overrides:
clone in class java.lang.Object