snap
Interface Snapable

All Known Implementing Classes:
Snapplet

public interface Snapable

The interface implemented by any Java-based visualization that wants to be part of the Snap system.

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

Method Summary
 void addSnapEventListener(snap.SnapEventListener sel)
          Method used by Snap to register as a listener for SnapEvents
 javax.swing.Icon getIcon()
          Returns the Icon for the visualization
 java.util.Enumeration getSupportedActions()
          Returns a list of Actions (as Strings) supported by a visualization
 void load(java.sql.ResultSet rs, java.lang.String primaryKeyColumnName)
          Called when Snap needs to load data into the visualization.
 void performSnapEvent(snap.SnapEvent e)
          Method called when a SnapEvent is to handled by the visualization
 void removeSnapEventListener(snap.SnapEventListener sel)
          Method used by Snap to unregister as a listener for SnapEvents
 

Method Detail

load

public void load(java.sql.ResultSet rs,
                 java.lang.String primaryKeyColumnName)
Called when Snap needs to load data into the visualization.

Parameters:
rs - the data to be loaded by the component
primaryKeyColumnName - identifies the column to be used when throwing and receiving SnapEvents.

addSnapEventListener

public void addSnapEventListener(snap.SnapEventListener sel)
Method used by Snap to register as a listener for SnapEvents


removeSnapEventListener

public void removeSnapEventListener(snap.SnapEventListener sel)
Method used by Snap to unregister as a listener for SnapEvents


performSnapEvent

public void performSnapEvent(snap.SnapEvent e)
Method called when a SnapEvent is to handled by the visualization


getSupportedActions

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


getIcon

public javax.swing.Icon getIcon()
Returns the Icon for the visualization