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
-
ArrowTip()
-
-
ArrowTip(double, double, double)
- Constructs an arrow tip with the given angle and radius.
-
draw(Graphics, int, int, int, int)
- Draws the arrow tip in the direction specified by the given two
points..
-
outline(int, int, int, int)
- Calculates the outline of an arrow tip.
-
read(StorableInput)
- Reads the arrow tip from a StorableInput.
-
write(StorableOutput)
- Stores the arrow tip to a StorableOutput.
ArrowTip
public ArrowTip()
ArrowTip
public ArrowTip(double angle,
double outerRadius,
double innerRadius)
- Constructs an arrow tip with the given angle and radius.
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..
outline
public Polygon outline(int x1,
int y1,
int x2,
int y2)
- Calculates the outline of an arrow tip.
write
public void write(StorableOutput dw)
- Stores the arrow tip to a StorableOutput.
read
public void read(StorableInput dr) throws IOException
- Reads the arrow tip from a StorableInput.
All Packages Class Hierarchy This Package Previous Next Index