All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.figures.ArrowTip

java.lang.Object
   |
   +----CH.ifa.draw.figures.ArrowTip

public class ArrowTip
extends Object
implements LineDecoration
An arrow tip line decoration.

See Also:
PolyLineFigure

Constructor Index

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

Method Index

 o draw(Graphics, int, int, int, int)
Draws the arrow tip in the direction specified by the given two points..
 o outline(int, int, int, int)
Calculates the outline of an arrow tip.
 o read(StorableInput)
Reads the arrow tip from a StorableInput.
 o write(StorableOutput)
Stores the arrow tip to a StorableOutput.

Constructors

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

Methods

 o draw
 public void draw(Graphics g,
                  int x1,
                  int y1,
                  int x2,
                  int y2)
Draws the arrow tip in the direction specified by the given two points..

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

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

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index