|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Drawable
Interface to Respresent Drawable Objects (Nodes and Links).
| Method Summary | |
|---|---|
void |
drawSelf(java.awt.Graphics g,
boolean clear)
Draws a shape. |
void |
move(int dX,
int dY)
Changes the co-dinates of the location of Node. |
boolean |
within(int X,
int Y)
Returns True if the point defined by the arguments (x,y) are within a shape. |
| Method Detail |
|---|
boolean within(int X,
int Y)
X - X-coordinate.Y - Y-coordinate.
void drawSelf(java.awt.Graphics g,
boolean clear)
g - Reference to the Graphics object.clear - Set it to false to erase the Node.drawSelf(java.awt.Graphics, boolean)
void move(int dX,
int dY)
dX - - change in x co-ordinate.dY - - change in y co-ordinate.move(int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||