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

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
      extended by com.vividsolutions.jump.workbench.ui.renderer.style.LineStringVertexStyle
All Implemented Interfaces:
ChoosableStyle, Style, java.lang.Cloneable
Direct Known Subclasses:
VertexIndexLineSegmentStyle, VertexXYLineSegmentStyle, VertexZValueStyle

public abstract class LineStringVertexStyle
extends LineStringStyle
implements ChoosableStyle

Base class for styles painting linestring vertices.

Version:
1.0
Author:
Martin Davis

Field Summary
protected  javax.swing.Icon icon
           
protected  java.lang.String name
           
 
Fields inherited from class com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
enabled, fillColorWithAlpha, lineColorWithAlpha, stroke
 
Constructor Summary
LineStringVertexStyle(java.lang.String name, javax.swing.Icon icon)
           
 
Method Summary
 javax.swing.Icon getIcon()
          For display. 20 x 20 pixels.
 java.lang.String getName()
          For display.
protected abstract  void paint(java.awt.geom.Point2D p0, com.vividsolutions.jts.geom.LineString line, int index, Viewport viewport, java.awt.Graphics2D graphics)
           
protected  void paintLineString(com.vividsolutions.jts.geom.LineString lineString, Viewport viewport, java.awt.Graphics2D graphics)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
clone, initialize, isEnabled, paint, paintGeometry, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vividsolutions.jump.workbench.ui.renderer.style.Style
clone, initialize, isEnabled, paint, setEnabled
 

Field Detail

name

protected java.lang.String name

icon

protected javax.swing.Icon icon
Constructor Detail

LineStringVertexStyle

public LineStringVertexStyle(java.lang.String name,
                             javax.swing.Icon icon)
Method Detail

paintLineString

protected void paintLineString(com.vividsolutions.jts.geom.LineString lineString,
                               Viewport viewport,
                               java.awt.Graphics2D graphics)
                        throws java.lang.Exception
Specified by:
paintLineString in class LineStringStyle
Parameters:
lineString - has 2 or more points
Throws:
java.lang.Exception

paint

protected abstract void paint(java.awt.geom.Point2D p0,
                              com.vividsolutions.jts.geom.LineString line,
                              int index,
                              Viewport viewport,
                              java.awt.Graphics2D graphics)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getName

public java.lang.String getName()
Description copied from interface: ChoosableStyle
For display.

Specified by:
getName in interface ChoosableStyle

getIcon

public javax.swing.Icon getIcon()
Description copied from interface: ChoosableStyle
For display. 20 x 20 pixels.

Specified by:
getIcon in interface ChoosableStyle