CH.ifa.draw.figures
Class ArrowTip
- java.lang.Object
-
- CH.ifa.draw.figures.AbstractLineDecoration
-
- CH.ifa.draw.figures.ArrowTip
-
- All Implemented Interfaces:
- LineDecoration, Storable, java.io.Serializable, java.lang.Cloneable
public class ArrowTip extends AbstractLineDecoration
An arrow tip line decoration.- See Also:
PolyLineFigure, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ArrowTip()ArrowTip(double angle, double outerRadius, double innerRadius)Constructs an arrow tip with the given angle and radius.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.Polygonoutline(int x1, int y1, int x2, int y2)Calculates the outline of an arrow tip.voidread(StorableInput dr)Reads the arrow tip from a StorableInput.voidwrite(StorableOutput dw)Stores the arrow tip to a StorableOutput.-
Methods inherited from class CH.ifa.draw.figures.AbstractLineDecoration
draw, getBorderColor, getFillColor, setBorderColor, setFillColor
-
-
-
-
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:
outlinein classAbstractLineDecoration
-
write
public void write(StorableOutput dw)
Stores the arrow tip to a StorableOutput.- Specified by:
writein interfaceStorable- Overrides:
writein classAbstractLineDecoration
-
read
public void read(StorableInput dr) throws java.io.IOException
Reads the arrow tip from a StorableInput.- Specified by:
readin interfaceStorable- Overrides:
readin classAbstractLineDecoration- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG