snap.coordination
Class CoordinationManager

java.lang.Object
  |
  +--snap.coordination.CoordinationManager
All Implemented Interfaces:
java.util.EventListener, GraphChangeEventListener, SnapEventListener

public class CoordinationManager
extends java.lang.Object
implements SnapEventListener, GraphChangeEventListener

This is the controlling class to manage the connections and visualization layout.

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

Constructor Summary
CoordinationManager(snap.Snap snap)
          Constructor.
 
Method Summary
 void graphChanged(snap.graph.GraphChangeEvent e)
          Method for the graph changed event.
 void snapEventOccured(snap.SnapEvent userEvent)
          This method is called when a Snap event occurs.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordinationManager

public CoordinationManager(snap.Snap snap)
Constructor. Builds the CoordinationManager.

Method Detail

graphChanged

public void graphChanged(snap.graph.GraphChangeEvent e)
Method for the graph changed event. Called when the graph is changed, e.g. addition/deletion of nodes.

Specified by:
graphChanged in interface GraphChangeEventListener

snapEventOccured

public void snapEventOccured(snap.SnapEvent userEvent)
This method is called when a Snap event occurs.

Specified by:
snapEventOccured in interface SnapEventListener