public class RenderingManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EXECUTE_ON_EVENT_THREAD |
static int |
INTERACTIVE |
protected static java.util.HashMap |
layerableClassToRendererFactoryMap
Deprecated.
|
static int |
SINGLE_THREAD_QUEUE |
static java.lang.String |
USE_MULTI_RENDERING_THREAD_QUEUE_KEY |
Constructor and Description |
---|
RenderingManager(LayerViewPanel panel) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
contentIDs() |
void |
copyTo(java.awt.Graphics2D destination) |
Renderer |
createRenderer(java.lang.Object contentID)
Creates a Renderer suitable for this contentID.
|
void |
dispose() |
ThreadQueue |
getDefaultRendererThreadQueue() |
int |
getMaxFeatures() |
LayerViewPanel |
getPanel() |
Renderer |
getRenderer(java.lang.Object contentID) |
static RendererFactory |
getRendererFactory(java.lang.Class clazz)
Get the renderer factory for the class.
|
static Renderer.ContentDependendFactory |
getRenderFactoryForLayerable(java.lang.Class clss)
Deprecated.
|
int |
getRenderingMode() |
void |
putAboveLayerables(java.lang.Object contentID,
Renderer.Factory factory) |
void |
putBelowLayerables(java.lang.Object contentID,
Renderer.Factory factory) |
static void |
putRendererForLayerable(java.lang.Class clss,
Renderer.ContentDependendFactory rendererFactory)
Deprecated.
|
void |
removeLayerRenderer(java.lang.Object contentID)
Remove the LayerRenderer when a Layer is removed (helps to free the memory)
Added on 2007-05-21 [Michael Michaud and Larry Becker] Called by
LayerManager
|
void |
render(java.lang.Object contentID) |
void |
render(java.lang.Object contentID,
boolean clearImageCache) |
void |
renderAll() |
void |
repaintPanel() |
void |
setMaxFeatures(int maxFeatures) |
void |
setPaintingEnabled(boolean paintingEnabled) |
static void |
setRendererFactory(java.lang.Class clazz,
RendererFactory factory)
Set the renderer factory for the class.
|
void |
setRenderingMode(int mode)
Set the rendering mode
|
void |
setRenderingMode(java.lang.Runnable notify,
int mode)
Set the rendering mode
|
protected static java.util.HashMap layerableClassToRendererFactoryMap
public static final java.lang.String USE_MULTI_RENDERING_THREAD_QUEUE_KEY
ThreadQueue
public static final int INTERACTIVE
public static final int SINGLE_THREAD_QUEUE
public static final int EXECUTE_ON_EVENT_THREAD
public RenderingManager(LayerViewPanel panel)
public void setRenderingMode(int mode)
mode
- : INTERACTIVE, SINGLE_THREAD_QUEUE, or EXECUTE_ON_EVENT_THREADpublic void setRenderingMode(java.lang.Runnable notify, int mode)
mode
- : INTERACTIVE, SINGLE_THREAD_QUEUE, or EXECUTE_ON_EVENT_THREADpublic int getRenderingMode()
public void putBelowLayerables(java.lang.Object contentID, Renderer.Factory factory)
public void putAboveLayerables(java.lang.Object contentID, Renderer.Factory factory)
public void renderAll()
protected java.util.List contentIDs()
public Renderer getRenderer(java.lang.Object contentID)
public void render(java.lang.Object contentID)
public void render(java.lang.Object contentID, boolean clearImageCache)
public void repaintPanel()
public static Renderer.ContentDependendFactory getRenderFactoryForLayerable(java.lang.Class clss)
getRendererFactory(Class)
public static void putRendererForLayerable(java.lang.Class clss, Renderer.ContentDependendFactory rendererFactory)
setRendererFactory(Class, RendererFactory)
clss
- rendererFactory
- public Renderer createRenderer(java.lang.Object contentID)
contentID
- public void setPaintingEnabled(boolean paintingEnabled)
public void copyTo(java.awt.Graphics2D destination)
public ThreadQueue getDefaultRendererThreadQueue()
public void dispose()
public LayerViewPanel getPanel()
public int getMaxFeatures()
public void setMaxFeatures(int maxFeatures)
maxFeatures
- The maximum number of Features to render as vector
graphic.
Use this method before using method render(Object contentID) or render(Object contentID, boolean clearImageCache)
public void removeLayerRenderer(java.lang.Object contentID)
contentID
- layer to removepublic static RendererFactory getRendererFactory(java.lang.Class clazz)
clazz
- The classpublic static void setRendererFactory(java.lang.Class clazz, RendererFactory factory)
clazz
- The classfactory
- The renderer factory.