Class AbstractSelectionRenderer
java.lang.Object
com.vividsolutions.jump.workbench.ui.renderer.FeatureCollectionRenderer
com.vividsolutions.jump.workbench.ui.renderer.AbstractSelectionRenderer
- Direct Known Subclasses:
FeatureSelectionRenderer, LineStringSelectionRenderer, PartSelectionRenderer, SelectionBackgroundRenderer
-
Nested Class Summary
Nested classes/interfaces inherited from interface Renderer
Renderer.ContentDependendFactory, Renderer.Factory -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSelectionRenderer(Object contentID, LayerViewPanel panel, Color color, boolean paintingHandles, boolean filling) -
Method Summary
Modifier and TypeMethodDescriptionclone()featureToSelectedItemsMap(Layer layer) Get the fillColor variable of selectedFeaturesgetIcon()getName()voidinitialize(Layer layer) Called before #paint is applied to each Feature.booleanprotected Map<Layer, Collection<Feature>> voidpaint(Feature f, Graphics2D g, Viewport viewport) voidpaint(org.locationtech.jts.geom.Geometry geometry, Graphics2D g, Viewport viewport) static voidpaintHandles(Graphics2D g, org.locationtech.jts.geom.Coordinate[] coordinates, Stroke stroke, Color fillColor, Color lineColor, Viewport viewport) voidsetEnabled(boolean enabled) voidsetSelectionFillColor(Color color) Sets the fillColor variable of selectedFeaturesvoidsetSelectionLineColor(Color color) Sets the Color for the Selection rendering.voidsetSelectionPointForm(String selectionPointForm) Sets the point form.voidsetSelectionPointSize(int selectionPointSize) Sets the pointsize for selected features.protected Collection<Style> styles()protected booleanuseImageCaching(Map<Layer, List<Feature>> layerToFeaturesMap) Methods inherited from class FeatureCollectionRenderer
cancel, clearImageCache, copyTo, createRunnable, getContentID, getMaxFeatures, getSimpleFeatureCollectionRenderer, isRendering, setMaxFeatures
-
Field Details
-
HANDLE_WIDTH
public static final int HANDLE_WIDTH- See Also:
-
panel
-
-
Constructor Details
-
AbstractSelectionRenderer
public AbstractSelectionRenderer(Object contentID, LayerViewPanel panel, Color color, boolean paintingHandles, boolean filling)
-
-
Method Details
-
getName
-
getIcon
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceStyle
-
isEnabled
-
clone
-
initialize
Description copied from interface:StyleCalled before #paint is applied to each Feature.- Specified by:
initializein interfaceStyle- Parameters:
layer- the layer on which to apply this style
-
paint
public void paint(Feature f, Graphics2D g, Viewport viewport) throws NoninvertibleTransformException - Specified by:
paintin interfaceStyle- Throws:
NoninvertibleTransformException
-
paint
public void paint(org.locationtech.jts.geom.Geometry geometry, Graphics2D g, Viewport viewport) throws NoninvertibleTransformException - Throws:
NoninvertibleTransformException
-
styles
- Specified by:
stylesin classFeatureCollectionRenderer
-
layerToFeaturesMap
- Specified by:
layerToFeaturesMapin classFeatureCollectionRenderer
-
featureToSelectedItemsMap
-
paintHandles
public static void paintHandles(Graphics2D g, org.locationtech.jts.geom.Coordinate[] coordinates, Stroke stroke, Color fillColor, Color lineColor, Viewport viewport) throws NoninvertibleTransformException - Throws:
NoninvertibleTransformException
-
useImageCaching
- Overrides:
useImageCachingin classFeatureCollectionRenderer
-
setSelectionLineColor
Sets the Color for the Selection rendering.- Parameters:
color- the Color to be used for selected features
-
setSelectionPointSize
public void setSelectionPointSize(int selectionPointSize) Sets the pointsize for selected features.- Parameters:
selectionPointSize- the point size for selected features
-
setSelectionFillColor
Sets the fillColor variable of selectedFeatures -
getFillColor
Get the fillColor variable of selectedFeatures -
setSelectionPointForm
Sets the point form. For possible forms please see VertexStylesFactory constants.- Parameters:
selectionPointForm- the form to use for selected features
-