|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.cog.gui.grapheditor.util.swing.Arrow
Draws an arrow composed of three lines
| Field Summary | |
protected short |
arrowLength
|
protected short |
arrowWidth
|
protected short |
lineWidth
|
protected int[] |
ppx
|
protected int[] |
ppy
|
protected boolean |
valid
|
protected int |
x1
Stores the bounding polygon for the edge with an arrow. |
protected int |
x2
Stores the bounding polygon for the edge with an arrow. |
protected int |
y1
Stores the bounding polygon for the edge with an arrow. |
protected int |
y2
Stores the bounding polygon for the edge with an arrow. |
| Constructor Summary | |
Arrow()
|
|
Arrow(int x1,
int y1,
int x2,
int y2,
short lwidth,
short awidth,
short alen)
|
|
| Method Summary | |
boolean |
contains(int x,
int y)
This method checks whether the given point with coordinates x and y lies on the edge or outside the edge. |
void |
paint(Graphics g)
|
void |
setArrowSize(short awidth,
short alen)
|
void |
setCoords(int x1,
int y1,
int x2,
int y2)
|
void |
setLineWidth(short lwidth)
|
void |
update()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int x1
protected int x2
protected int y1
protected int y2
protected short lineWidth
protected short arrowWidth
protected short arrowLength
protected boolean valid
protected int[] ppx
protected int[] ppy
| Constructor Detail |
public Arrow()
public Arrow(int x1,
int y1,
int x2,
int y2,
short lwidth,
short awidth,
short alen)
| Method Detail |
public void setCoords(int x1,
int y1,
int x2,
int y2)
public void setLineWidth(short lwidth)
public void setArrowSize(short awidth,
short alen)
public void update()
public void paint(Graphics g)
public boolean contains(int x,
int y)
x - - x co-ordinate of the point.y - - y co-ordinate of the point.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||