public abstract class ImageCachingRenderer extends java.lang.Object implements Renderer
Renderer.ContentDependendFactory, Renderer.Factory
Modifier and Type | Field and Description |
---|---|
protected boolean |
cancelled |
protected ThreadSafeImage |
image |
protected LayerViewPanel |
panel |
protected boolean |
rendering |
Constructor and Description |
---|
ImageCachingRenderer(java.lang.Object contentID,
LayerViewPanel panel) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
void |
clearImageCache() |
void |
copyTo(java.awt.Graphics2D graphics) |
java.lang.Runnable |
createRunnable() |
java.lang.Object |
getContentID() |
protected ThreadSafeImage |
getImage() |
boolean |
isRendering() |
protected abstract void |
renderHook(ThreadSafeImage image) |
protected volatile boolean cancelled
protected volatile ThreadSafeImage image
protected LayerViewPanel panel
protected volatile boolean rendering
public ImageCachingRenderer(java.lang.Object contentID, LayerViewPanel panel)
public void clearImageCache()
clearImageCache
in interface Renderer
public boolean isRendering()
isRendering
in interface Renderer
public java.lang.Object getContentID()
getContentID
in interface Renderer
protected ThreadSafeImage getImage()
public java.lang.Runnable createRunnable()
createRunnable
in interface Renderer
protected abstract void renderHook(ThreadSafeImage image) throws java.lang.Exception
java.lang.Exception