org.jhotdraw.figures
Class ArrowTip

java.lang.Object
  extended by org.jhotdraw.figures.AbstractLineDecoration
      extended by org.jhotdraw.figures.ArrowTip
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, LineDecoration, Storable

public class ArrowTip
extends AbstractLineDecoration

An arrow tip line decoration.

Version:
<$CURRENT_VERSION$>
See Also:
PolyLineFigure, Serialized Form

Constructor Summary
ArrowTip()
           
ArrowTip(double angle, double outerRadius, double innerRadius)
          Constructs an arrow tip with the given angle and radius.
 
Method Summary
 java.awt.Polygon outline(int x1, int y1, int x2, int y2)
          Calculates the outline of an arrow tip.
 void read(StorableInput dr)
          Reads the arrow tip from a StorableInput.
 void write(StorableOutput dw)
          Stores the arrow tip to a StorableOutput.
 
Methods inherited from class org.jhotdraw.figures.AbstractLineDecoration
displayBox, draw, getBorderColor, getFillColor, setBorderColor, setFillColor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrowTip

public ArrowTip()

ArrowTip

public ArrowTip(double angle,
                double outerRadius,
                double innerRadius)
Constructs an arrow tip with the given angle and radius.

Method Detail

outline

public java.awt.Polygon outline(int x1,
                                int y1,
                                int x2,
                                int y2)
Calculates the outline of an arrow tip.

Specified by:
outline in class AbstractLineDecoration

write

public void write(StorableOutput dw)
Stores the arrow tip to a StorableOutput.

Specified by:
write in interface Storable
Overrides:
write in class AbstractLineDecoration

read

public void read(StorableInput dr)
          throws java.io.IOException
Reads the arrow tip from a StorableInput.

Specified by:
read in interface Storable
Overrides:
read in class AbstractLineDecoration
Throws:
java.io.IOException