|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.geom.Path2D
java.awt.geom.Path2D.Double
jview.Arrow
public class Arrow
A simple class that allows construction of arrow shapes. The arrow is horizontally, 1 pixel long and has arrowheads as indicated. For unknown reasons, general path is final, thus we cannot extend this, but rather extend object and implement shape.
This has changed with java 1.6, we now extends Path2D.Double
| Nested Class Summary | |
|---|---|
static class |
Arrow.Show
|
| Nested classes/interfaces inherited from class java.awt.geom.Path2D |
|---|
Path2D.Double, Path2D.Float |
| Field Summary | |
|---|---|
static double |
ARROWHEAD
Default arrow head length in normalized coordinates. |
static double |
ARROWTILT
Default arrow head tilt in degrees. |
static double |
ARROWTIP
Default arrow head tip in degrees. |
| Fields inherited from class java.awt.geom.Path2D |
|---|
WIND_EVEN_ODD, WIND_NON_ZERO |
| Constructor Summary | |
|---|---|
Arrow()
Constructs a new default arrow. |
|
Arrow(boolean open)
Constructs a new default arrow with the specified filling attribute. |
|
Arrow(double head)
Constructs a new arrow specifying the arrow head length in normalized coordinates. |
|
Arrow(double head,
boolean open)
Constructs a new arrow specifying the arrow head length in normalized coordinates. |
|
Arrow(double head,
double tip,
double tilt)
Constructs a new arrow with a detailed shape. |
|
Arrow(double head,
double tip,
double tilt,
boolean open)
Constructs a enw arrow with a detailed shape and a opening attribute. |
|
Arrow(double head,
double tip,
double tilt,
boolean open,
boolean tail,
boolean lead)
Constructs a enw arrow with a detailed shape and a opening attribute. |
|
| Method Summary |
|---|
| Methods inherited from class java.awt.geom.Path2D.Double |
|---|
append, clone, curveTo, getBounds2D, getPathIterator, lineTo, moveTo, quadTo, transform |
| Methods inherited from class java.awt.geom.Path2D |
|---|
append, closePath, contains, contains, contains, contains, contains, contains, contains, contains, createTransformedShape, getBounds, getCurrentPoint, getPathIterator, getWindingRule, intersects, intersects, intersects, intersects, reset, setWindingRule |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double ARROWHEAD
public static final double ARROWTIP
public static final double ARROWTILT
| Constructor Detail |
|---|
public Arrow()
public Arrow(boolean open)
public Arrow(double head)
public Arrow(double head,
boolean open)
public Arrow(double head,
double tip,
double tilt)
public Arrow(double head,
double tip,
double tilt,
boolean open)
public Arrow(double head,
double tip,
double tilt,
boolean open,
boolean tail,
boolean lead)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||