com.hp.hpl.guess.piccolo
Class Arrow

java.lang.Object
  extended bycom.hp.hpl.guess.piccolo.Arrow

public class Arrow
extends Object

This pluggable utility paints either a "classic" or a "sleek" filled arrow on a given edge. To use, create an instance of the Arrow object with your preferred thickness, and then call arrow.drawArrow( graphics, source_x1, source_y1, dest_x, dest_y2 ) for the edge. Note that the arrow simply uses the color currently set in the graphics context.

Author:
Jon Froehlich

Field Summary
static int CLASSIC
           
static int SLEEK
           
 
Constructor Summary
Arrow()
           
 
Method Summary
static void drawArrow(Graphics2D g2d, Point2D point1, Point2D point2, int type, double width)
           
static void overrideArrowLength(int length)
           
static void overrideArrowWidth(int width)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSIC

public static final int CLASSIC
See Also:
Constant Field Values

SLEEK

public static final int SLEEK
See Also:
Constant Field Values
Constructor Detail

Arrow

public Arrow()
Method Detail

overrideArrowLength

public static void overrideArrowLength(int length)

overrideArrowWidth

public static void overrideArrowWidth(int width)

drawArrow

public static void drawArrow(Graphics2D g2d,
                             Point2D point1,
                             Point2D point2,
                             int type,
                             double width)