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

java.lang.Object
  extended bycom.vividsolutions.jump.workbench.ui.renderer.style.VertexStyle
All Implemented Interfaces:
java.lang.Cloneable, Style
Direct Known Subclasses:
DelineationVertexStyle, RingVertexStyle, SquareVertexStyle

public abstract class VertexStyle
extends java.lang.Object
implements Style


Field Summary
protected  java.awt.geom.RectangularShape shape
           
protected  int size
           
 
Constructor Summary
protected VertexStyle(java.awt.geom.RectangularShape shape)
           
 
Method Summary
 java.lang.Object clone()
           
 int getSize()
           
 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(java.awt.Graphics2D g, java.awt.geom.Point2D p)
           
protected  void render(java.awt.Graphics2D g)
           
 void setEnabled(boolean enabled)
           
 void setSize(int size)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shape

protected java.awt.geom.RectangularShape shape

size

protected int size
Constructor Detail

VertexStyle

protected VertexStyle(java.awt.geom.RectangularShape shape)
Method Detail

setEnabled

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

isEnabled

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

setSize

public void setSize(int size)

getSize

public int getSize()

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.

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

paint

public void paint(java.awt.Graphics2D g,
                  java.awt.geom.Point2D p)

render

protected void render(java.awt.Graphics2D g)

clone

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