|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.graphx.toolbox.BasicNodeAdapter
public class BasicNodeAdapter
A node adapter for BasicEdges.
Constructor Summary | |
---|---|
BasicNodeAdapter(BasicNode root)
Create a new adapter. |
Method Summary | |
---|---|
int |
getNodeCount(Object node)
Return the number of nodes contained in this graph or composite node. |
Object |
getParent(Object node)
Return the graph parent of the given node. |
Iterator |
inEdges(Object node)
Return an iterator over the edges coming into the given node. |
boolean |
isComposite(Object node)
Return true. |
Iterator |
nodes(Object node)
Provide an iterator over the nodes in the given graph or composite node. |
Iterator |
outEdges(Object node)
Return an iterator over the edges coming out of the given node. |
void |
setParent(Object node,
Object parent)
Set the graph parent of the given node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicNodeAdapter(BasicNode root)
Method Detail |
---|
public Iterator inEdges(Object node)
inEdges
in interface NodeAdapter
public Iterator outEdges(Object node)
outEdges
in interface NodeAdapter
public Object getParent(Object node)
getParent
in interface NodeAdapter
public void setParent(Object node, Object parent)
setParent
in interface NodeAdapter
public int getNodeCount(Object node)
getNodeCount
in interface NodeAdapter
public boolean isComposite(Object node)
isComposite
in interface NodeAdapter
public Iterator nodes(Object node)
nodes
in interface NodeAdapter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |