|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcore.VisualNode
VisualNode stores details such as IP Address, Color etc of a node.
| Constructor Summary | |
VisualNode(java.lang.Integer x,
java.lang.Integer y,
java.lang.String IP,
java.awt.Color c)
Create new Visual Node representation. |
|
| Method Summary | |
java.awt.Color |
getColor()
Return the Color of this node. |
java.lang.String |
getIP()
Get the IP Address of this VisualNode. |
int |
getX()
Get the current x position. |
int |
getY()
Get the current y position. |
void |
setIP(java.lang.String s)
Set the IP Address of this VisualNode |
void |
setToX(int x)
Set the x co-ordinate to which this node is heading. |
void |
setToY(int y)
Set the y co-ordinate to which this node is heading. |
void |
setX(int x)
Set the current X co-ordinate of this node. |
void |
setY(int y)
Set the current Y co-ordinate of this node. |
void |
step()
Increment the x and y positions according to position to which they are heading. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VisualNode(java.lang.Integer x,
java.lang.Integer y,
java.lang.String IP,
java.awt.Color c)
x - Initial x co-ordinate of the node.y - Initial y co-ordinate of the node.IP - IP Address of the node.c - The Color of the node.| Method Detail |
public void step()
public java.awt.Color getColor()
public void setToX(int x)
x - co-ordinate to which this node is heading.public void setToY(int y)
y - The y co-ordinate to which this node is heading.public int getX()
public int getY()
public java.lang.String getIP()
public void setIP(java.lang.String s)
s - The IP Address to be set.public void setX(int x)
x - X co-ordinate.public void setY(int y)
y - Y co-ordinate.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||