Class ImageCachingRenderer
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.renderer.ImageCachingRenderer
-
- All Implemented Interfaces:
Renderer
- Direct Known Subclasses:
ImageCachingFeatureCollectionRenderer
,WMSLayerRenderer
public abstract class ImageCachingRenderer extends Object implements Renderer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.locationtech.jts.jump.workbench.ui.renderer.Renderer
Renderer.Factory
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
cancelled
protected ThreadSafeImage
image
protected LayerViewPanel
panel
protected boolean
rendering
-
Constructor Summary
Constructors Constructor Description ImageCachingRenderer(Object contentID, LayerViewPanel panel)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
cancel()
void
clearImageCache()
void
copyTo(Graphics2D graphics)
Runnable
createRunnable()
Object
getContentID()
protected ThreadSafeImage
getImage()
boolean
isRendering()
protected abstract void
renderHook(ThreadSafeImage image)
-
-
-
Field Detail
-
cancelled
protected volatile boolean cancelled
-
image
protected volatile ThreadSafeImage image
-
panel
protected LayerViewPanel panel
-
rendering
protected volatile boolean rendering
-
-
Constructor Detail
-
ImageCachingRenderer
public ImageCachingRenderer(Object contentID, LayerViewPanel panel)
-
-
Method Detail
-
clearImageCache
public void clearImageCache()
- Specified by:
clearImageCache
in interfaceRenderer
-
isRendering
public boolean isRendering()
- Specified by:
isRendering
in interfaceRenderer
-
getContentID
public Object getContentID()
- Specified by:
getContentID
in interfaceRenderer
-
getImage
protected ThreadSafeImage getImage()
-
copyTo
public void copyTo(Graphics2D graphics)
-
createRunnable
public Runnable createRunnable()
- Specified by:
createRunnable
in interfaceRenderer
- Returns:
- null if no rendering work needs to be done
-
renderHook
protected abstract void renderHook(ThreadSafeImage image) throws Exception
- Throws:
Exception
-
-