notio
Class Node

java.lang.Object
  |
  +--notio.Node
Direct Known Subclasses:
Concept, Relation

public abstract class Node
extends java.lang.Object

The base class for graph nodes. Provides the admittedly tiny amount of common functionality and serves chiefly to make collections of nodes simpler to manage.


Constructor Summary
Node()
           
 
Method Summary
 java.lang.String getComment()
          Returns the comment string for this node.
 Graph getEnclosingGraph()
          Returns the graph that encloses this node or null if the node does not currently belong to a graph.
 void setComment(java.lang.String newComment)
          Sets the comment string for this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node()
Method Detail

getEnclosingGraph

public Graph getEnclosingGraph()
Returns the graph that encloses this node or null if the node does not currently belong to a graph.
Returns:
the node's enclosing graph.

setComment

public void setComment(java.lang.String newComment)
Sets the comment string for this node.
Parameters:
newComment - the new comment string for this node.

getComment

public java.lang.String getComment()
Returns the comment string for this node.
Returns:
the comment string associated with this node or null.


Copyright 1998-1999 Finnegan Southey