uk.ac.starlink.xdoc.fig
Class Arrow.FilledArrow

java.lang.Object
  extended by uk.ac.starlink.xdoc.fig.Arrow
      extended by uk.ac.starlink.xdoc.fig.Arrow.FilledArrow
Enclosing class:
Arrow

public static class Arrow.FilledArrow
extends Arrow

Arrow instance with a filled triangular head.


Nested Class Summary
 
Nested classes/interfaces inherited from class uk.ac.starlink.xdoc.fig.Arrow
Arrow.FilledArrow
 
Constructor Summary
Arrow.FilledArrow(int lpar, int lperp)
          Constructor.
 
Method Summary
protected  void drawArrow(Graphics2D g2, int x1)
          Does the shape-specific work of drawing the arrow.
 
Methods inherited from class uk.ac.starlink.xdoc.fig.Arrow
createFilledArrow, drawArrow, setPad
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Arrow.FilledArrow

public Arrow.FilledArrow(int lpar,
                         int lperp)
Constructor.

Parameters:
lpar - head length parallel to the trajectory
lperp - head half-width perpendicular to the trajectory
Method Detail

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 context
x1 - X coordinate of tail of arrow; x1 >= 0


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.