com.vividsolutions.jump.workbench.ui.renderer
Interface Renderer

All Known Implementing Classes:
AbstractSelectionRenderer, FeatureCollectionRenderer, FeatureSelectionRenderer, GridRenderer, ImageCachingFeatureCollectionRenderer, ImageCachingRenderer, LayerRenderer, LineStringSelectionRenderer, PartSelectionRenderer, ScaleBarRenderer, SelectionBackgroundRenderer, SimpleFeatureCollectionRenderer, SimpleRenderer, WMSLayerRenderer

public interface Renderer

First call #createRunnable. If it returns null, get the image using #copyTo. Otherwise, run the Runnable in a separate thread. You can call #copyTo while it's drawing to get the partially drawn image. Drawing is done when #isRendering returns false.


Nested Class Summary
static interface Renderer.Factory
           
 
Method Summary
 void cancel()
           
 void clearImageCache()
           
 void copyTo(java.awt.Graphics2D graphics)
           
 java.lang.Runnable createRunnable()
           
 java.lang.Object getContentID()
           
 boolean isRendering()
           
 

Method Detail

clearImageCache

void clearImageCache()

isRendering

boolean isRendering()

getContentID

java.lang.Object getContentID()
Parameters:
contentID - identifies this Renderer by what it draws

copyTo

void copyTo(java.awt.Graphics2D graphics)

createRunnable

java.lang.Runnable createRunnable()
Returns:
null if no rendering work needs to be done

cancel

void cancel()