com.vividsolutions.jump.workbench.ui.renderer.style
Class PinEqualCoordinatesStyle

java.lang.Object
  extended bycom.vividsolutions.jump.workbench.ui.renderer.style.PinEqualCoordinatesStyle
All Implemented Interfaces:
java.lang.Cloneable, Style

public class PinEqualCoordinatesStyle
extends java.lang.Object
implements Style


Constructor Summary
PinEqualCoordinatesStyle()
          Parameterless constructor for Java2XML persistence.
PinEqualCoordinatesStyle(java.awt.Color color)
           
 
Method Summary
 java.lang.Object clone()
           
static boolean coordinatesEqual(com.vividsolutions.jts.geom.Geometry geometry)
           
 java.awt.Color getColor()
           
 void initialize(Layer layer)
          Called before #paint is applied to each Feature.
 boolean isEnabled()
           
 void paint(Feature f, java.awt.Graphics2D g, Viewport viewport)
           
protected  void paintGeometry(com.vividsolutions.jts.geom.Geometry geometry, java.awt.Graphics2D graphics, Viewport viewport)
           
 void setColor(java.awt.Color color)
           
 void setEnabled(boolean enabled)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PinEqualCoordinatesStyle

public PinEqualCoordinatesStyle()
Parameterless constructor for Java2XML persistence. [Jon Aquino]


PinEqualCoordinatesStyle

public PinEqualCoordinatesStyle(java.awt.Color color)
Method Detail

isEnabled

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

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
Returns:
false if #paint should not be called e.g. because vertices are not shown. Don't need to check whether the layer is visible.

clone

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

paint

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

setEnabled

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

paintGeometry

protected void paintGeometry(com.vividsolutions.jts.geom.Geometry geometry,
                             java.awt.Graphics2D graphics,
                             Viewport viewport)
                      throws java.lang.Exception
Throws:
java.lang.Exception

coordinatesEqual

public static boolean coordinatesEqual(com.vividsolutions.jts.geom.Geometry geometry)

getColor

public java.awt.Color getColor()

setColor

public void setColor(java.awt.Color color)