uk.ac.starlink.xdoc.fig
Class Arrow.FilledArrow
java.lang.Object
uk.ac.starlink.xdoc.fig.Arrow
uk.ac.starlink.xdoc.fig.Arrow.FilledArrow
- Enclosing class:
- Arrow
public static class Arrow.FilledArrow
- extends Arrow
Arrow instance with a filled triangular head.
Method Summary |
protected void |
drawArrow(Graphics2D g2,
int x1)
Does the shape-specific work of drawing the arrow. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Arrow.FilledArrow
public Arrow.FilledArrow(int lpar,
int lperp)
- Constructor.
- Parameters:
lpar
- head length parallel to the trajectorylperp
- head half-width perpendicular to the trajectory
drawArrow
protected void drawArrow(Graphics2D g2,
int x1)
- Description copied from class:
Arrow
- Does the shape-specific work of drawing the arrow.
Draws an arrow line and head from (x1, 0) to the origin.
- Specified by:
drawArrow
in class Arrow
- Parameters:
g2
- graphics contextx1
- X coordinate of tail of arrow; x1 >= 0
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.