public abstract class AbstractSelectionRenderer extends FeatureCollectionRenderer implements Style
Renderer.ContentDependendFactory, Renderer.Factory
Modifier and Type | Field and Description |
---|---|
static int |
HANDLE_WIDTH |
protected LayerViewPanel |
panel |
Constructor and Description |
---|
AbstractSelectionRenderer(java.lang.Object contentID,
LayerViewPanel panel,
java.awt.Color color,
boolean paintingHandles,
boolean filling) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
protected abstract java.util.Map<Feature,java.util.List<com.vividsolutions.jts.geom.Geometry>> |
featureToSelectedItemsMap(Layer layer) |
java.awt.Color |
getFillColor()
Get the fillColor variable of selectedFeatures
|
javax.swing.Icon |
getIcon() |
java.lang.String |
getName() |
void |
initialize(Layer layer)
Called before #paint is applied to each Feature.
|
boolean |
isEnabled() |
protected java.util.Map |
layerToFeaturesMap() |
void |
paint(Feature f,
java.awt.Graphics2D g,
Viewport viewport) |
void |
paint(com.vividsolutions.jts.geom.Geometry geometry,
java.awt.Graphics2D g,
Viewport viewport) |
static void |
paintHandles(java.awt.Graphics2D g,
com.vividsolutions.jts.geom.Coordinate[] coordinates,
java.awt.Stroke stroke,
java.awt.Color fillColor,
java.awt.Color lineColor,
Viewport viewport) |
void |
setEnabled(boolean enabled) |
void |
setSelectionFillColor(java.awt.Color color)
Sets the fillColor variable of selectedFeatures
|
void |
setSelectionLineColor(java.awt.Color color)
Sets the Color for the Selection rendering.
|
void |
setSelectionPointForm(java.lang.String selectionPointForm)
Sets the point form.
|
void |
setSelectionPointSize(int selectionPointSize)
Sets the pointsize for selected features.
|
protected java.util.Collection |
styles() |
protected boolean |
useImageCaching(java.util.Map layerToFeaturesMap) |
cancel, clearImageCache, copyTo, createRunnable, getContentID, getMaxFeatures, getSimpleFeatureCollectionRenderer, isRendering, setMaxFeatures
public static final int HANDLE_WIDTH
protected LayerViewPanel panel
public AbstractSelectionRenderer(java.lang.Object contentID, LayerViewPanel panel, java.awt.Color color, boolean paintingHandles, boolean filling)
public java.lang.String getName()
public javax.swing.Icon getIcon()
public void setEnabled(boolean enabled)
setEnabled
in interface Style
public boolean isEnabled()
public java.lang.Object clone()
public void initialize(Layer layer)
Style
initialize
in interface Style
public void paint(Feature f, java.awt.Graphics2D g, Viewport viewport) throws java.awt.geom.NoninvertibleTransformException
public void paint(com.vividsolutions.jts.geom.Geometry geometry, java.awt.Graphics2D g, Viewport viewport) throws java.awt.geom.NoninvertibleTransformException
java.awt.geom.NoninvertibleTransformException
protected java.util.Collection styles()
styles
in class FeatureCollectionRenderer
protected java.util.Map layerToFeaturesMap()
layerToFeaturesMap
in class FeatureCollectionRenderer
protected abstract java.util.Map<Feature,java.util.List<com.vividsolutions.jts.geom.Geometry>> featureToSelectedItemsMap(Layer layer)
public static void paintHandles(java.awt.Graphics2D g, com.vividsolutions.jts.geom.Coordinate[] coordinates, java.awt.Stroke stroke, java.awt.Color fillColor, java.awt.Color lineColor, Viewport viewport) throws java.awt.geom.NoninvertibleTransformException
java.awt.geom.NoninvertibleTransformException
protected boolean useImageCaching(java.util.Map layerToFeaturesMap)
useImageCaching
in class FeatureCollectionRenderer
public void setSelectionLineColor(java.awt.Color color)
color
- public void setSelectionPointSize(int selectionPointSize)
selectionPointSize
- public void setSelectionFillColor(java.awt.Color color)
public java.awt.Color getFillColor()
public void setSelectionPointForm(java.lang.String selectionPointForm)
selectionPointForm
-