|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsource.ucregents.playground.gui.Arrow
public class Arrow
Draws an arrow
Constructor Summary | |
---|---|
Arrow()
|
Method Summary | |
---|---|
static void |
drawArrow(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
Draws a line with an arrowhead at its terminal end (x2,y2) |
static void |
drawArrow(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2,
boolean start,
boolean end,
double place)
Draws line with arrow heads at either end. |
static void |
drawArrow(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2,
double place)
Draws a line with an arrowhead at its end (x2,y2) adjusted by place |
static void |
drawArrowhead(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
Just draws an arrowhead at the end |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Arrow()
Method Detail |
---|
public static void drawArrow(java.awt.Graphics g, int x1, int y1, int x2, int y2)
g
- The graphics world to draw inx1
- Coords of the linex2
- Coords of the liney1
- Coords of the liney2
- Coords of the linepublic static void drawArrow(java.awt.Graphics g, int x1, int y1, int x2, int y2, boolean start, boolean end, double place)
g
- The graphics world to draw inx1
- Coords of the linex2
- Coords of the liney1
- Coords of the liney2
- Coords of the linestart
- Arrowhead at startend
- Arrowhead at endplace
- A double [0-1] indicating the line length percentage (from start) at which the arrow tip will be placed.public static void drawArrow(java.awt.Graphics g, int x1, int y1, int x2, int y2, double place)
g
- The graphics world to draw inx1
- Coords of the linex2
- Coords of the liney1
- Coords of the liney2
- Coords of the lineplace
- A double [0-1] indicating the line length percentage (from start) at which the arrow tip will be placed.public static void drawArrowhead(java.awt.Graphics g, int x1, int y1, int x2, int y2)
g
- The graphics world to draw inx1
- Coords of the linex2
- Coords of the liney1
- Coords of the liney2
- Coords of the line
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |