|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.xdoc.fig.Arrow
public abstract class Arrow
Draws arrows.
Nested Class Summary | |
---|---|
static class |
Arrow.FilledArrow
Arrow instance with a filled triangular head. |
Constructor Summary | |
---|---|
Arrow()
|
Method Summary | |
---|---|
static Arrow |
createFilledArrow(int lpar,
int lperp)
Returns an arrow instance with a filled head. |
protected abstract void |
drawArrow(Graphics2D g2,
int x1)
Does the shape-specific work of drawing the arrow. |
void |
drawArrow(Graphics2D g2,
int x1,
int y1,
int x2,
int y2)
Draws an arrow. |
void |
setPad(int pad)
Sets padding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Arrow()
Method Detail |
---|
public void drawArrow(Graphics2D g2, int x1, int y1, int x2, int y2)
g2
- graphics contextx1
- nominal X coordinate of start (tail) positiony1
- nominal Y coordinate of start (tail) positionx2
- nominal X coordinate of end (head) positiony2
- nominal Y coordinate of end (head) positionprotected abstract void drawArrow(Graphics2D g2, int x1)
g2
- graphics contextx1
- X coordinate of tail of arrow; x1 >= 0public void setPad(int pad)
pad
- padding in pixelspublic static Arrow createFilledArrow(int lpar, int lperp)
lpar
- head length parallel to the trajectorylperp
- head half-width perpendicular to the trajectory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |