|
diva.graph.modular
Interface Node
- All Superinterfaces:
- PropertyContainer, SemanticObjectContainer
- All Known Subinterfaces:
- CompositeNode
- public interface Node
- extends SemanticObjectContainer, PropertyContainer
A node is an object that is contained by a graph
and is connected to other nodes by edges. A node
has a semantic object that is its semantic equivalent
in the application and may have a visual object which
is its syntactic representation in the user interface.
|
Method Summary |
Graph |
getParent()
Return the graph parent of this node. |
java.util.Iterator |
inEdges()
Return an iterator over the edges coming into this node. |
java.util.Iterator |
outEdges()
Return an iterator over the edges coming out of this node. |
void |
setParent(Graph parent)
Set the graph parent of this node. |
inEdges
public java.util.Iterator inEdges()
- Return an iterator over the edges coming into this node.
outEdges
public java.util.Iterator outEdges()
- Return an iterator over the edges coming out of this node.
getParent
public Graph getParent()
- Return the graph parent of this node.
setParent
public void setParent(Graph parent)
- Set the graph parent of this node. Implementors of this method
are also responsible for insuring that it is set properly as
the child of the graph in the graph.
|