Enum Constant and Description |
---|
BLACK_DIAMOND |
BLACK_TRIANGLE |
DIAMOND |
NONE |
TRIANGLE |
V |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Point2D p,
java.awt.geom.Point2D q)
Draws the arrowhead.
|
java.awt.geom.GeneralPath |
getPath(java.awt.geom.Point2D p,
java.awt.geom.Point2D q)
Gets the path of the arrowhead
|
static ArrowHead |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArrowHead[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArrowHead BLACK_TRIANGLE
public static final ArrowHead BLACK_DIAMOND
public static ArrowHead[] values()
for (ArrowHead c : ArrowHead.values()) System.out.println(c);
public static ArrowHead valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void draw(java.awt.Graphics2D g2, java.awt.geom.Point2D p, java.awt.geom.Point2D q)
g2
- the graphics contextp
- a point on the axis of the arrow headq
- the end point of the arrow headpublic java.awt.geom.GeneralPath getPath(java.awt.geom.Point2D p, java.awt.geom.Point2D q)
p
- a point on the axis of the arrow headq
- the end point of the arrow head