Package org.openjump.core.rasterimage
Class RasterImageRenderer
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.renderer.ImageCachingRenderer
-
- org.openjump.core.rasterimage.RasterImageRenderer
-
- All Implemented Interfaces:
Renderer
public class RasterImageRenderer extends ImageCachingRenderer
TODO: comment class- Version:
- $Rev: 2509 $ modified: [sstein]: 16.Feb.2009 changed logger-entries to comments
- Author:
- Ole Rahn
FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2006),
Subproject: Daten- und Wissensmanagement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vividsolutions.jump.workbench.ui.renderer.Renderer
Renderer.ContentDependendFactory, Renderer.Factory
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
doneRendering
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.renderer.ImageCachingRenderer
cancelled, image, panel, rendering
-
-
Constructor Summary
Constructors Constructor Description RasterImageRenderer(Object contentID, LayerViewPanel panel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyTo(Graphics2D graphics)
Runnable
createRunnable()
ThreadSafeImage
getImage()
protected RasterImageLayer
getRasterImageLayer()
protected void
renderHook(ThreadSafeImage image)
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.renderer.ImageCachingRenderer
cancel, clearImageCache, getContentID, isRendering
-
-
-
-
Constructor Detail
-
RasterImageRenderer
public RasterImageRenderer(Object contentID, LayerViewPanel panel)
- Parameters:
contentID
-panel
- the LayerViewPanel
-
-
Method Detail
-
getRasterImageLayer
protected RasterImageLayer getRasterImageLayer()
-
getImage
public ThreadSafeImage getImage()
- Overrides:
getImage
in classImageCachingRenderer
-
createRunnable
public Runnable createRunnable()
- Specified by:
createRunnable
in interfaceRenderer
- Overrides:
createRunnable
in classImageCachingRenderer
- Returns:
- null if no rendering work needs to be done
-
copyTo
public void copyTo(Graphics2D graphics)
- Specified by:
copyTo
in interfaceRenderer
- Overrides:
copyTo
in classImageCachingRenderer
-
renderHook
protected void renderHook(ThreadSafeImage image) throws Exception
- Specified by:
renderHook
in classImageCachingRenderer
- Parameters:
image
- a ThreadSafeImage- Throws:
Exception
- if an Exception occurs
-
-