Class LayerRenderer
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.renderer.FeatureCollectionRenderer
-
- com.vividsolutions.jump.workbench.ui.renderer.LayerRenderer
-
- All Implemented Interfaces:
Renderer
public class LayerRenderer extends FeatureCollectionRenderer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vividsolutions.jump.workbench.ui.renderer.Renderer
Renderer.ContentDependendFactory, Renderer.Factory
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALWAYS_USE_IMAGE_CACHING_KEY
-
Constructor Summary
Constructors Constructor Description LayerRenderer(Layer layer, LayerViewPanel panel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyTo(Graphics2D graphics)
Runnable
createRunnable()
int
getMaxFeatures()
protected Map<Layer,Collection<Feature>>
layerToFeaturesMap()
static boolean
render(Layerable layerable, LayerViewPanel panel)
void
setMaxFeatures(int maxFeatures)
protected Collection<Style>
styles()
protected boolean
useImageCaching(Map<Layer,List<Feature>> layerToFeaturesMap)
static boolean
withinVisibleScaleRange(Layerable layerable, LayerViewPanel panel)
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.renderer.FeatureCollectionRenderer
cancel, clearImageCache, getContentID, getSimpleFeatureCollectionRenderer, isRendering
-
-
-
-
Field Detail
-
ALWAYS_USE_IMAGE_CACHING_KEY
public static final String ALWAYS_USE_IMAGE_CACHING_KEY
-
-
Constructor Detail
-
LayerRenderer
public LayerRenderer(Layer layer, LayerViewPanel panel)
-
-
Method Detail
-
createRunnable
public Runnable createRunnable()
- Specified by:
createRunnable
in interfaceRenderer
- Overrides:
createRunnable
in classFeatureCollectionRenderer
- Returns:
- null if no rendering work needs to be done
-
copyTo
public void copyTo(Graphics2D graphics)
- Specified by:
copyTo
in interfaceRenderer
- Overrides:
copyTo
in classFeatureCollectionRenderer
-
render
public static boolean render(Layerable layerable, LayerViewPanel panel)
-
withinVisibleScaleRange
public static boolean withinVisibleScaleRange(Layerable layerable, LayerViewPanel panel)
-
styles
protected Collection<Style> styles()
- Specified by:
styles
in classFeatureCollectionRenderer
-
useImageCaching
protected boolean useImageCaching(Map<Layer,List<Feature>> layerToFeaturesMap)
- Overrides:
useImageCaching
in classFeatureCollectionRenderer
-
layerToFeaturesMap
protected Map<Layer,Collection<Feature>> layerToFeaturesMap()
- Specified by:
layerToFeaturesMap
in classFeatureCollectionRenderer
-
getMaxFeatures
public int getMaxFeatures()
- Overrides:
getMaxFeatures
in classFeatureCollectionRenderer
- Returns:
- Returns the number of maxFeatures to render as vector graphic.
-
setMaxFeatures
public void setMaxFeatures(int maxFeatures)
- Overrides:
setMaxFeatures
in classFeatureCollectionRenderer
- Parameters:
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)
-
-