org.ceryle.graph.tm
Class TM4JVisualizerImpl.DeferredNodeSet

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by org.ceryle.graph.tm.TM4JVisualizerImpl.DeferredNodeSet
All Implemented Interfaces:
Serializable, Cloneable, Map
Enclosing class:
TM4JVisualizerImpl

protected class TM4JVisualizerImpl.DeferredNodeSet
extends Hashtable

Internal class extends Hashtable as a container for deferred addition of GraphNodes to the graph.

See Also:
Serialized Form

Constructor Summary
TM4JVisualizerImpl.DeferredNodeSet()
           
TM4JVisualizerImpl.DeferredNodeSet(int initialCapacity)
           
 
Method Summary
 boolean addNode(GraphNode node)
          Adds the GraphNode to the DeferredNodeSet, returning true if added.
 GraphNode findNode(Association assoc)
          Returns the ANode containing Association assoc, null if not found.
 GraphNode findNode(String id)
          Returns the GraphNode whose ID is id, null if not found.
 GraphNode findNode(Topic topic)
          Returns the TNode containing Topic topic, null if not found.
 Collection getNodes()
          Returns a Collection of the contained GraphNodes.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TM4JVisualizerImpl.DeferredNodeSet

public TM4JVisualizerImpl.DeferredNodeSet()

TM4JVisualizerImpl.DeferredNodeSet

public TM4JVisualizerImpl.DeferredNodeSet(int initialCapacity)
Method Detail

addNode

public boolean addNode(GraphNode node)
Adds the GraphNode to the DeferredNodeSet, returning true if added.


findNode

public GraphNode findNode(String id)
Returns the GraphNode whose ID is id, null if not found.


findNode

public GraphNode findNode(Topic topic)
Returns the TNode containing Topic topic, null if not found.


findNode

public GraphNode findNode(Association assoc)
Returns the ANode containing Association assoc, null if not found.


getNodes

public Collection getNodes()
Returns a Collection of the contained GraphNodes.



The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.