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

java.lang.Object
  extended bycom.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
      extended bycom.vividsolutions.jump.workbench.ui.renderer.style.LineStringEndpointStyle
All Implemented Interfaces:
ChoosableStyle, java.lang.Cloneable, Style
Direct Known Subclasses:
ArrowLineStringEndpointStyle, CircleLineStringEndpointStyle

public abstract class LineStringEndpointStyle
extends LineStringStyle
implements ChoosableStyle


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
LineStringEndpointStyle(java.lang.String name, javax.swing.Icon icon, boolean start)
           
 
Method Summary
 javax.swing.Icon getIcon()
          For display.
 java.lang.String getName()
          For display.
protected abstract  void paint(java.awt.geom.Point2D terminal, java.awt.geom.Point2D next, 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

LineStringEndpointStyle

public LineStringEndpointStyle(java.lang.String name,
                               javax.swing.Icon icon,
                               boolean start)
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 terminal,
                              java.awt.geom.Point2D next,
                              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