edu.uci.ics.jung.visualization.contrib
Class Arrow
java.lang.Object
edu.uci.ics.jung.visualization.contrib.Arrow
- public class Arrow
- extends java.lang.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 java.lang.String |
CLASSIC
|
static java.lang.String |
SLEEK
|
Constructor Summary |
Arrow(java.lang.String type,
int length,
int width)
|
Method Summary |
void |
drawArrow(java.awt.Graphics2D g2d,
int sourceX,
int sourceY,
int destX,
int destY,
int vertexDiam)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASSIC
public static final java.lang.String CLASSIC
- See Also:
- Constant Field Values
SLEEK
public static final java.lang.String SLEEK
- See Also:
- Constant Field Values
Arrow
public Arrow(java.lang.String type,
int length,
int width)
drawArrow
public void drawArrow(java.awt.Graphics2D g2d,
int sourceX,
int sourceY,
int destX,
int destY,
int vertexDiam)