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

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
All Implemented Interfaces:
Renderer
Direct Known Subclasses:
GridRenderer, ScaleBarRenderer, SimpleFeatureCollectionRenderer

public abstract class SimpleRenderer
extends java.lang.Object
implements Renderer

Advantage over ImageCachingRenderer: no cached image (typically 1 MB each). Disadvantage: must redraw image each time (slower). Classic tradeoff between space and time.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vividsolutions.jump.workbench.ui.renderer.Renderer
Renderer.Factory
 
Constructor Summary
SimpleRenderer(java.lang.Object contentID, LayerViewPanel panel)
           
 
Method Summary
 void cancel()
           
 void clearImageCache()
           
 void copyTo(java.awt.Graphics2D graphics)
           
 java.lang.Runnable createRunnable()
           
 java.lang.Object getContentID()
           
 boolean isRendering()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRenderer

public SimpleRenderer(java.lang.Object contentID,
                      LayerViewPanel panel)
Method Detail

clearImageCache

public void clearImageCache()
Specified by:
clearImageCache in interface Renderer

isRendering

public boolean isRendering()
Specified by:
isRendering in interface Renderer

getContentID

public java.lang.Object getContentID()
Specified by:
getContentID in interface Renderer

copyTo

public void copyTo(java.awt.Graphics2D graphics)
Specified by:
copyTo in interface Renderer

createRunnable

public java.lang.Runnable createRunnable()
Specified by:
createRunnable in interface Renderer
Returns:
null if no rendering work needs to be done

cancel

public void cancel()
Specified by:
cancel in interface Renderer