|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.claribole.zgrviewer.dot.Node
Abstract node class containing basic common attributes and accessing methods
| Constructor Summary | |
protected |
Node(java.lang.Object root)
|
|
Node(java.lang.Object root,
java.lang.String id)
Create a new Node instance |
| Method Summary | |
protected void |
addInEdge(Edge edge)
Add an incoming edge to the node |
protected void |
addOutEdge(Edge edge)
Add an outcoming edge to the node |
protected void |
changeOption(java.lang.String name,
java.lang.String value)
|
Edge[] |
getIn()
Get the edges entering this node |
Edge[] |
getOut()
Get the edges exiting this node |
Graph |
getRootGraph()
|
protected java.lang.String |
nodeOptions()
Write node options |
protected java.lang.String |
printOption(java.lang.String attribute,
boolean value)
Write a boolean option |
protected java.lang.String |
printOption(java.lang.String attribute,
double value)
Write a double option |
protected java.lang.String |
printOption(java.lang.String attribute,
int value)
Write an integer option |
protected java.lang.String |
printOption(java.lang.String attribute,
java.lang.String value)
Write a String option |
protected void |
removeInEdge(Edge edge)
Remove an incoming edge to the node |
protected void |
removeOutEdge(Edge edge)
Remove an outcoming edge to the node |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Node(java.lang.Object root,
java.lang.String id)
throws java.lang.Exception
root - root of the Nodeid - identification string of the node in the graph
java.lang.Exception - the node must have an ID (unless it is a SubRecord node)
protected Node(java.lang.Object root)
throws java.lang.Exception
| Method Detail |
public Edge[] getIn()
public Edge[] getOut()
protected void addInEdge(Edge edge)
edge - protected void addOutEdge(Edge edge)
edge - protected void removeInEdge(Edge edge)
edge - protected void removeOutEdge(Edge edge)
edge -
protected void changeOption(java.lang.String name,
java.lang.String value)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String toString()
Object.toString()protected java.lang.String nodeOptions()
protected java.lang.String printOption(java.lang.String attribute,
boolean value)
attribute - value -
protected java.lang.String printOption(java.lang.String attribute,
double value)
attribute - value -
protected java.lang.String printOption(java.lang.String attribute,
int value)
attribute - value -
protected java.lang.String printOption(java.lang.String attribute,
java.lang.String value)
attribute - value -
public Graph getRootGraph()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||