|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.slides.items.Arrow
public class Arrow
Class Arrow provides various kinds of arrowheads that can be added to the
ends of a LineItem
.
Field Summary | |
---|---|
static Arrow |
NONE
A nonexistent arrow. |
static Arrow |
OPEN
An open arrow in the shape of a narrow triangle. |
static Arrow |
SOLID
A solid arrow in the shape of a narrow triangle. |
Constructor Summary | |
---|---|
Arrow()
Construct a new nonexistent arrow. |
Method Summary | |
---|---|
void |
draw(Graphics2D g2d,
float width,
double x,
double y,
double phi)
Draw this arrow in the given graphics context. |
void |
readExternal(ObjectInput in)
Read this arrow from the given object input stream. |
void |
writeExternal(ObjectOutput out)
Write this arrow to the given object output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Arrow NONE
public static final Arrow SOLID
public static final Arrow OPEN
Constructor Detail |
---|
public Arrow()
Method Detail |
---|
public void draw(Graphics2D g2d, float width, double x, double y, double phi)
g2d
- 2-D graphics context.width
- Stroke width.x
- X coordinate of the arrow's tip.y
- Y coordinate of the arrow's tip.phi
- Angle in which the arrow points (radians).public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- Object output stream.
IOException
- Thrown if an I/O error occurred.public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
in
- Object input stream.
IOException
- Thrown if an I/O error occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |