snap.graph
Class Graph

java.lang.Object
  |
  +--snap.graph.Graph
Direct Known Subclasses:
CoordinationGraph

public class Graph
extends java.lang.Object

This is the graph structure to manage the CoordinationNodes and their connections. Each CoordinationNode stores the information about the visualization and the one directional link out from the node.

Author:
Nathan Conklin - nathan@conklinfamily.net, Chris North - north@cs.vt.edu, Varun Saini - vsaini@vt.edu, Umer Farooq - ufarooq@vt.edu, Aniket Prabhune - aprabhun@vt.edu

Constructor Summary
Graph()
           
 
Method Summary
 void addGraphChangeEventListener(snap.graph.GraphChangeEventListener gcel)
          Installs the listener for GraphChangeEvents
 snap.graph.Monitor getMonitor()
          Returns the monitor for locking the entire graph
 snap.graph.Node getNode(java.lang.String name)
           
 java.util.Enumeration nodes()
           
 void removeGraphChangeEventListener(snap.graph.GraphChangeEventListener gcel)
          Removes the listener for GraphChangeEvents
 snap.graph.Node removeNode(java.lang.String name)
           
 void setNode(java.lang.String name, snap.graph.Node node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph

public Graph()
Method Detail

removeGraphChangeEventListener

public void removeGraphChangeEventListener(snap.graph.GraphChangeEventListener gcel)
Removes the listener for GraphChangeEvents


addGraphChangeEventListener

public void addGraphChangeEventListener(snap.graph.GraphChangeEventListener gcel)
Installs the listener for GraphChangeEvents


getMonitor

public snap.graph.Monitor getMonitor()
Returns the monitor for locking the entire graph


getNode

public snap.graph.Node getNode(java.lang.String name)

setNode

public void setNode(java.lang.String name,
                    snap.graph.Node node)

removeNode

public snap.graph.Node removeNode(java.lang.String name)

nodes

public java.util.Enumeration nodes()