public class LayerRenderer extends FeatureCollectionRenderer
Renderer.ContentDependendFactory, Renderer.Factory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALWAYS_USE_IMAGE_CACHING_KEY |
Constructor and Description |
---|
LayerRenderer(Layer layer,
LayerViewPanel panel) |
Modifier and Type | Method and Description |
---|---|
void |
copyTo(java.awt.Graphics2D graphics) |
java.lang.Runnable |
createRunnable() |
int |
getMaxFeatures() |
protected java.util.Map |
layerToFeaturesMap() |
static boolean |
render(Layerable layerable,
LayerViewPanel panel) |
void |
setMaxFeatures(int maxFeatures) |
protected java.util.Collection |
styles() |
protected boolean |
useImageCaching(java.util.Map layerToFeaturesMap) |
static boolean |
withinVisibleScaleRange(Layerable layerable,
LayerViewPanel panel) |
cancel, clearImageCache, getContentID, getSimpleFeatureCollectionRenderer, isRendering
public static final java.lang.String ALWAYS_USE_IMAGE_CACHING_KEY
public LayerRenderer(Layer layer, LayerViewPanel panel)
public java.lang.Runnable createRunnable()
createRunnable
in interface Renderer
createRunnable
in class FeatureCollectionRenderer
public void copyTo(java.awt.Graphics2D graphics)
copyTo
in interface Renderer
copyTo
in class FeatureCollectionRenderer
public static boolean render(Layerable layerable, LayerViewPanel panel)
public static boolean withinVisibleScaleRange(Layerable layerable, LayerViewPanel panel)
protected java.util.Collection styles()
styles
in class FeatureCollectionRenderer
protected boolean useImageCaching(java.util.Map layerToFeaturesMap)
useImageCaching
in class FeatureCollectionRenderer
protected java.util.Map layerToFeaturesMap()
layerToFeaturesMap
in class FeatureCollectionRenderer
public int getMaxFeatures()
getMaxFeatures
in class FeatureCollectionRenderer
public void setMaxFeatures(int maxFeatures)
setMaxFeatures
in class FeatureCollectionRenderer
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)