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

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
      extended by com.vividsolutions.jump.workbench.ui.renderer.style.LineStringSegmentStyle
All Implemented Interfaces:
ChoosableStyle, Style, java.lang.Cloneable
Direct Known Subclasses:
ArrowLineStringSegmentStyle, MetricsLineStringSegmentStyle, SegmentDownhillArrowStyle

public abstract class LineStringSegmentStyle
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
LineStringSegmentStyle(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  void paint(com.vividsolutions.jts.geom.Coordinate p0, com.vividsolutions.jts.geom.Coordinate p1, Viewport viewport, java.awt.Graphics2D graphics)
           
protected abstract  void paint(java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, 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

LineStringSegmentStyle

public LineStringSegmentStyle(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 void paint(com.vividsolutions.jts.geom.Coordinate p0,
                     com.vividsolutions.jts.geom.Coordinate p1,
                     Viewport viewport,
                     java.awt.Graphics2D graphics)
              throws java.lang.Exception
Throws:
java.lang.Exception

paint

protected abstract void paint(java.awt.geom.Point2D p0,
                              java.awt.geom.Point2D p1,
                              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