|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCH.ifa.draw.figures.AbstractLineDecoration
CH.ifa.draw.figures.ArrowTip
public class ArrowTip
An arrow tip line decoration.
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 | |
|---|---|
protected double |
getAngle()
Returns point angle of arrow. |
protected double |
getInnerRadius()
Returns the inner radius |
protected double |
getOuterRadius()
Returns the outer radius |
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. |
protected void |
setAngle(double newAngle)
Sets point angle of arrow. |
protected void |
setInnerRadius(double newInnerRadius)
Sets the inner radius |
protected void |
setOuterRadius(double newOuterRadius)
Sets the outer radius |
void |
write(StorableOutput dw)
Stores the arrow tip to a StorableOutput. |
| Methods inherited from class CH.ifa.draw.figures.AbstractLineDecoration |
|---|
draw, getBorderColor, getFillColor, setBorderColor, setFillColor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrowTip()
public ArrowTip(double angle,
double outerRadius,
double innerRadius)
| Method Detail |
|---|
public java.awt.Polygon outline(int x1,
int y1,
int x2,
int y2)
outline in class AbstractLineDecorationpublic void write(StorableOutput dw)
write in interface Storablewrite in class AbstractLineDecoration
public void read(StorableInput dr)
throws java.io.IOException
read in interface Storableread in class AbstractLineDecorationjava.io.IOExceptionprotected void setAngle(double newAngle)
protected double getAngle()
protected void setInnerRadius(double newInnerRadius)
protected double getInnerRadius()
protected void setOuterRadius(double newOuterRadius)
protected double getOuterRadius()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||