org.openjump.core.ui.style.decoration
Class SegmentDownhillArrowStyle

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
      extended by com.vividsolutions.jump.workbench.ui.renderer.style.LineStringSegmentStyle
          extended by org.openjump.core.ui.style.decoration.SegmentDownhillArrowStyle
All Implemented Interfaces:
ChoosableStyle, Style, java.lang.Cloneable
Direct Known Subclasses:
SegmentDownhillArrowStyle.NarrowSolidMiddle, SegmentDownhillArrowStyle.Open, SegmentDownhillArrowStyle.Solid

public abstract class SegmentDownhillArrowStyle
extends LineStringSegmentStyle

Author:
Paul Austin

Nested Class Summary
static class SegmentDownhillArrowStyle.NarrowSolidMiddle
           
static class SegmentDownhillArrowStyle.Open
           
static class SegmentDownhillArrowStyle.Solid
           
 
Field Summary
protected  double finLength
           
 
Fields inherited from class com.vividsolutions.jump.workbench.ui.renderer.style.LineStringSegmentStyle
icon, name
 
Fields inherited from class com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
enabled, fillColorWithAlpha, lineColorWithAlpha, stroke
 
Constructor Summary
SegmentDownhillArrowStyle(java.lang.String name, java.lang.String iconFile, double finAngle, double finLength, boolean filled)
           
 
Method Summary
protected  void paint(com.vividsolutions.jts.geom.Coordinate terminal, com.vividsolutions.jts.geom.Coordinate next, Viewport viewport, java.awt.Graphics2D graphics)
           
protected  void paint(java.awt.geom.Point2D terminal, java.awt.geom.Point2D next, Viewport viewport, java.awt.Graphics2D graphics)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.renderer.style.LineStringSegmentStyle
getIcon, getName, paintLineString
 
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

finLength

protected double finLength
Constructor Detail

SegmentDownhillArrowStyle

public SegmentDownhillArrowStyle(java.lang.String name,
                                 java.lang.String iconFile,
                                 double finAngle,
                                 double finLength,
                                 boolean filled)
Method Detail

paint

protected void paint(com.vividsolutions.jts.geom.Coordinate terminal,
                     com.vividsolutions.jts.geom.Coordinate next,
                     Viewport viewport,
                     java.awt.Graphics2D graphics)
              throws java.lang.Exception
Overrides:
paint in class LineStringSegmentStyle
Throws:
java.lang.Exception

paint

protected void paint(java.awt.geom.Point2D terminal,
                     java.awt.geom.Point2D next,
                     Viewport viewport,
                     java.awt.Graphics2D graphics)
              throws java.awt.geom.NoninvertibleTransformException
Specified by:
paint in class LineStringSegmentStyle
Throws:
java.awt.geom.NoninvertibleTransformException