Interface Renderer
-
- All Known Implementing Classes:
AbstractSelectionRenderer,FeatureCollectionRenderer,FeatureSelectionRenderer,GridRenderer,ImageCachingFeatureCollectionRenderer,ImageCachingRenderer,LayerRenderer,LineStringSelectionRenderer,PartSelectionRenderer,ScaleBarRenderer,SelectionBackgroundRenderer,SimpleFeatureCollectionRenderer,SimpleRenderer,WMSLayerRenderer
public interface RendererFirst 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
Nested Classes Modifier and Type Interface Description static interfaceRenderer.Factory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancel()voidclearImageCache()voidcopyTo(Graphics2D graphics)RunnablecreateRunnable()ObjectgetContentID()booleanisRendering()
-
-
-
Method Detail
-
clearImageCache
void clearImageCache()
-
isRendering
boolean isRendering()
-
getContentID
Object getContentID()
- Parameters:
contentID- identifies this Renderer by what it draws
-
copyTo
void copyTo(Graphics2D graphics)
-
createRunnable
Runnable createRunnable()
- Returns:
- null if no rendering work needs to be done
-
cancel
void cancel()
-
-