snap
Class Snap

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--snap.Snap
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable

public class Snap
extends javax.swing.JApplet

Applet for coordinating the multiple components as a single, multiple-view visualization.

Author:
Nathan Conklin - nathan@conklinfamily.net, Varun Saini - vsaini@vt.edu, Chris North - north@cs.vt.edu, Umer Farooq - ufarooq@vt.edu, Aniket Prabhune - aprabhun@vt.edu, Matt Clement - macleme2@vt.edu
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Snap()
          Constructor and applet initialization
Snap(boolean inAnApplet)
          Constructor and applet initialization.
 
Method Summary
 snap.coordination.CoordinationManager getCoordinationManager()
          Returns the CoordinationManager that will handle coordination events.
 snap.database.DatabaseManager getDatabaseManager()
          Returns the DatabaseManager
 snap.ui.SnapPanel getFeedbackPanel()
          Returns the SnapPanel of the Snap user interface
 snap.graph.Graph getGraph()
          Returns the Graph used in coordination
 java.lang.String getHost()
          Returns the host that Snap has been loaded from.
 void init()
          JApplet's init() method.
static void main(java.lang.String[] args)
          Starts up the applet if it is not in a browser
 void setCoordinationManager(snap.coordination.CoordinationManager manager)
          Sets the CoordinationManager that will handle coordination events.
 void setDatabaseManager(snap.database.DatabaseManager manager)
          Sets the DatabaseManager
 void setFeedbackPanel(snap.ui.SnapPanel feedbackPanel)
          Sets the SnapPanel of the Snap user interface
 void setGraph(snap.graph.Graph graph)
          Sets the Graph used in coordination
 void setHost(java.lang.String host)
          Sets the host that Snap has been loaded from.
 
Methods inherited from class javax.swing.JApplet
getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Snap

public Snap()
Constructor and applet initialization


Snap

public Snap(boolean inAnApplet)
Constructor and applet initialization. inAnApplet is true if Snap has been started as an applet

Method Detail

getHost

public java.lang.String getHost()
Returns the host that Snap has been loaded from. This host is the server that will hold the Visualization database.


setHost

public void setHost(java.lang.String host)
Sets the host that Snap has been loaded from. This host is the server that will hold the Visualization database.


getFeedbackPanel

public snap.ui.SnapPanel getFeedbackPanel()
Returns the SnapPanel of the Snap user interface


setFeedbackPanel

public void setFeedbackPanel(snap.ui.SnapPanel feedbackPanel)
Sets the SnapPanel of the Snap user interface


setGraph

public void setGraph(snap.graph.Graph graph)
Sets the Graph used in coordination


getGraph

public snap.graph.Graph getGraph()
Returns the Graph used in coordination


setCoordinationManager

public void setCoordinationManager(snap.coordination.CoordinationManager manager)
Sets the CoordinationManager that will handle coordination events.


getCoordinationManager

public snap.coordination.CoordinationManager getCoordinationManager()
Returns the CoordinationManager that will handle coordination events.


setDatabaseManager

public void setDatabaseManager(snap.database.DatabaseManager manager)
Sets the DatabaseManager


getDatabaseManager

public snap.database.DatabaseManager getDatabaseManager()
Returns the DatabaseManager


main

public static void main(java.lang.String[] args)
Starts up the applet if it is not in a browser


init

public void init()
JApplet's init() method. This should not be explicitly called.

Overrides:
init in class java.applet.Applet