com.vividsolutions.jump.workbench.ui.renderer
Class AbstractSelectionRenderer

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.renderer.FeatureCollectionRenderer
      extended by com.vividsolutions.jump.workbench.ui.renderer.AbstractSelectionRenderer
All Implemented Interfaces:
Renderer, Style, java.lang.Cloneable
Direct Known Subclasses:
FeatureSelectionRenderer, LineStringSelectionRenderer, PartSelectionRenderer, SelectionBackgroundRenderer

public abstract class AbstractSelectionRenderer
extends FeatureCollectionRenderer
implements Style


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vividsolutions.jump.workbench.ui.renderer.Renderer
Renderer.Factory
 
Field Summary
static int HANDLE_WIDTH
           
 
Constructor Summary
AbstractSelectionRenderer(java.lang.Object contentID, LayerViewPanel panel, java.awt.Color color, boolean paintingHandles, boolean filling)
           
 
Method Summary
 java.lang.Object clone()
           
 javax.swing.Icon getIcon()
           
 java.lang.String getName()
           
 void initialize(Layer layer)
          Called before #paint is applied to each Feature.
 boolean isEnabled()
           
 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)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.renderer.FeatureCollectionRenderer
cancel, clearImageCache, copyTo, createRunnable, getContentID, isRendering
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HANDLE_WIDTH

public static final int HANDLE_WIDTH
See Also:
Constant Field Values
Constructor Detail

AbstractSelectionRenderer

public AbstractSelectionRenderer(java.lang.Object contentID,
                                 LayerViewPanel panel,
                                 java.awt.Color color,
                                 boolean paintingHandles,
                                 boolean filling)
Method Detail

getName

public java.lang.String getName()

getIcon

public javax.swing.Icon getIcon()

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface Style

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface Style

clone

public java.lang.Object clone()
Specified by:
clone in interface Style
Overrides:
clone in class java.lang.Object

initialize

public void initialize(Layer layer)
Description copied from interface: Style
Called before #paint is applied to each Feature.

Specified by:
initialize in interface Style

paint

public void paint(Feature f,
                  java.awt.Graphics2D g,
                  Viewport viewport)
           throws java.awt.geom.NoninvertibleTransformException
Specified by:
paint in interface Style
Throws:
java.awt.geom.NoninvertibleTransformException

paint

public void paint(com.vividsolutions.jts.geom.Geometry geometry,
                  java.awt.Graphics2D g,
                  Viewport viewport)
           throws java.awt.geom.NoninvertibleTransformException
Throws:
java.awt.geom.NoninvertibleTransformException

paintHandles

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
Throws:
java.awt.geom.NoninvertibleTransformException