diva.graph.modular
Interface Node

All Superinterfaces:
PropertyContainer, SemanticObjectContainer
All Known Subinterfaces:
CompositeNode
All Known Implementing Classes:
BasicGraphModel.BasicCompositeNode, BasicGraphModel.BasicNode

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.

Version:
$Id: Node.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Michael Shilman
Accepted Rating:
Red

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.
 
Methods inherited from interface diva.util.SemanticObjectContainer
getSemanticObject, setSemanticObject
 
Methods inherited from interface diva.util.PropertyContainer
getProperty, propertyNames, setProperty
 

Method Detail

inEdges

java.util.Iterator inEdges()
Return an iterator over the edges coming into this node.


outEdges

java.util.Iterator outEdges()
Return an iterator over the edges coming out of this node.


getParent

Graph getParent()
Return the graph parent of this node.


setParent

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.