snap.adapter
Class TechnologyAdapter

java.lang.Object
  |
  +--snap.adapter.TechnologyAdapter
Direct Known Subclasses:
JavaTechnologyAdapter

public abstract class TechnologyAdapter
extends java.lang.Object

General Adapter that defines Snap's general interface with a visualization.

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

Constructor Summary
TechnologyAdapter()
           
 
Method Summary
 void addSnapEventListener(snap.SnapEventListener sel)
          Installs the listener for SnapEvents
abstract  javax.swing.Icon getIcon()
          Retusn the component's Icon
 snap.graph.Node getNode()
          Returns the TechnologyAdapater's node in the UI/Coordination Graph.
abstract  java.util.Enumeration getSupportedActions()
          Returns a list of Actions supported by a visualization
abstract  void load(snap.database.Query query)
          Called when Snap needs to load data into the visualization
abstract  void performSnapEvent(snap.SnapEvent e)
          Called when Snap needs to fire an event at the visualization
 void removeSnapEventListener(snap.SnapEventListener sel)
          Removes the listener for SnapEvents
 void setNode(snap.graph.Node node)
          Sets the TechnologyAdapater's node in the UI/Coordination Graph
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TechnologyAdapter

public TechnologyAdapter()
Method Detail

load

public abstract void load(snap.database.Query query)
Called when Snap needs to load data into the visualization


performSnapEvent

public abstract void performSnapEvent(snap.SnapEvent e)
Called when Snap needs to fire an event at the visualization


getSupportedActions

public abstract java.util.Enumeration getSupportedActions()
Returns a list of Actions supported by a visualization


getIcon

public abstract javax.swing.Icon getIcon()
Retusn the component's Icon


setNode

public void setNode(snap.graph.Node node)
Sets the TechnologyAdapater's node in the UI/Coordination Graph


getNode

public snap.graph.Node getNode()
Returns the TechnologyAdapater's node in the UI/Coordination Graph. null is returned if the TechnologyAdapter has not been put in the graph.


removeSnapEventListener

public void removeSnapEventListener(snap.SnapEventListener sel)
Removes the listener for SnapEvents


addSnapEventListener

public void addSnapEventListener(snap.SnapEventListener sel)
Installs the listener for SnapEvents