|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnanomunchers.graph.Node
A single node in a graph.
Constructor Summary | |
Node(Graph owner,
int id,
int x,
int y)
|
Method Summary | |
void |
clear()
Removes marking |
Graph |
getGraph()
|
int |
getId()
|
Node[] |
getNeighbors()
|
java.awt.Point |
getPoint()
|
int |
getX()
|
int |
getY()
|
boolean |
isMarked()
|
void |
mark()
Marks the node |
java.lang.String |
toString()
Descriptive string about the node |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Node(Graph owner, int id, int x, int y)
owner
- for the node to know other nodes and edgesid
- internal idx
- virtual positiony
- virtual positionMethod Detail |
public int getId()
public int getX()
public java.awt.Point getPoint()
public int getY()
public void mark()
public boolean isMarked()
public void clear()
public java.lang.String toString()
Object.toString()
public Node[] getNeighbors()
public Graph getGraph()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |