jview
Class Arrow

java.lang.Object
  extended by java.awt.geom.Path2D
      extended by java.awt.geom.Path2D.Double
          extended by jview.Arrow
All Implemented Interfaces:
Shape, Serializable, Cloneable

public class Arrow
extends Path2D.Double

A simple class that allows construction of arrow shapes. The arrow is horizontally, 1 pixel long and has arrowheads as indicated. For unknown reasons, general path is final, thus we cannot extend this, but rather extend object and implement shape.

This has changed with java 1.6, we now extends Path2D.Double

See Also:
Serialized Form

Nested Class Summary
static class Arrow.Show
           
 
Nested classes/interfaces inherited from class java.awt.geom.Path2D
Path2D.Double, Path2D.Float
 
Field Summary
static double ARROWHEAD
          Default arrow head length in normalized coordinates.
static double ARROWTILT
          Default arrow head tilt in degrees.
static double ARROWTIP
          Default arrow head tip in degrees.
 
Fields inherited from class java.awt.geom.Path2D
WIND_EVEN_ODD, WIND_NON_ZERO
 
Constructor Summary
Arrow()
          Constructs a new default arrow.
Arrow(boolean open)
          Constructs a new default arrow with the specified filling attribute.
Arrow(double head)
          Constructs a new arrow specifying the arrow head length in normalized coordinates.
Arrow(double head, boolean open)
          Constructs a new arrow specifying the arrow head length in normalized coordinates.
Arrow(double head, double tip, double tilt)
          Constructs a new arrow with a detailed shape.
Arrow(double head, double tip, double tilt, boolean open)
          Constructs a enw arrow with a detailed shape and a opening attribute.
Arrow(double head, double tip, double tilt, boolean open, boolean tail, boolean lead)
          Constructs a enw arrow with a detailed shape and a opening attribute.
 
Method Summary
 
Methods inherited from class java.awt.geom.Path2D.Double
append, clone, curveTo, getBounds2D, getPathIterator, lineTo, moveTo, quadTo, transform
 
Methods inherited from class java.awt.geom.Path2D
append, closePath, contains, contains, contains, contains, contains, contains, contains, contains, createTransformedShape, getBounds, getCurrentPoint, getPathIterator, getWindingRule, intersects, intersects, intersects, intersects, reset, setWindingRule
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARROWHEAD

public static final double ARROWHEAD
Default arrow head length in normalized coordinates.

See Also:
Constant Field Values

ARROWTIP

public static final double ARROWTIP
Default arrow head tip in degrees.

See Also:
Constant Field Values

ARROWTILT

public static final double ARROWTILT
Default arrow head tilt in degrees.

See Also:
Constant Field Values
Constructor Detail

Arrow

public Arrow()
Constructs a new default arrow.


Arrow

public Arrow(boolean open)
Constructs a new default arrow with the specified filling attribute.


Arrow

public Arrow(double head)
Constructs a new arrow specifying the arrow head length in normalized coordinates.


Arrow

public Arrow(double head,
             boolean open)
Constructs a new arrow specifying the arrow head length in normalized coordinates.


Arrow

public Arrow(double head,
             double tip,
             double tilt)
Constructs a new arrow with a detailed shape.


Arrow

public Arrow(double head,
             double tip,
             double tilt,
             boolean open)
Constructs a enw arrow with a detailed shape and a opening attribute.


Arrow

public Arrow(double head,
             double tip,
             double tilt,
             boolean open,
             boolean tail,
             boolean lead)
Constructs a enw arrow with a detailed shape and a opening attribute. The arrow shows on the leading and/or/not on the following edge.