com.hp.hpl.guess.piccolo
Class Arrow
java.lang.Object
com.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
|
Constructor Summary |
Arrow()
|
CLASSIC
public static final int CLASSIC
- See Also:
- Constant Field Values
SLEEK
public static final int SLEEK
- See Also:
- Constant Field Values
Arrow
public Arrow()
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)