org.compbio.bioverse.viewer
Class ViewerApplet

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended byjavax.swing.JApplet
                      extended byorg.compbio.bioverse.viewer.ViewerApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.MenuContainer, java.awt.event.MouseListener, javax.swing.RootPaneContainer, java.io.Serializable

public class ViewerApplet
extends javax.swing.JApplet
implements java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.MouseListener, java.awt.event.KeyListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JApplet
javax.swing.JApplet.AccessibleJApplet
 
Nested classes inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 java.awt.Checkbox hide_relax
           
static ViewerApplet selfRef
           
 
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
 
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
ViewerApplet()
          CONSTRUCTOR
ViewerApplet(java.util.ArrayList intList)
          overload contructor to allow data to be PUSHED into the viewer from Action class
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          ActionListener implementation method
 void addSortedGoCatsToMenu()
          add sorted GO cats to menu bar
 void clearScreen()
          clear screen method
 void destroy()
          destroy panel
 void getFunctionKeysFromHtml()
          data read in at init()
 void getFunctionListFromHtml()
          data read in at init()
 void getInteractionsFromHtml()
          for init() data read in
 void init()
          init() method
 void itemStateChanged(java.awt.event.ItemEvent e)
          itemListener implementation
 void keyPressed(java.awt.event.KeyEvent e)
          KeyListener implementation - for search field
 void keyReleased(java.awt.event.KeyEvent e)
          keyListener implement
 void keyTyped(java.awt.event.KeyEvent e)
          keyListener
 void mouseClicked(java.awt.event.MouseEvent e)
          handle right button mouse events separates for getting more detail on the protein node
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 int popPartitionIt(int left, int right, int pivot)
          for quicksorting
 void popQuickSort(int left, int right)
          for quicksorting
 void setTableSelectedNodes(java.util.ArrayList tableSelect)
          for external calling from tableapplet - turn on table selected members on viewer
 void showSelectedNodes(java.lang.String gechoiced)
          MENU FUNCTIONALITY - get members of a given GO class
 void start()
          applet
 void stop()
          applet
 void swap(int dex1, int dex2)
          for quicksorting
 
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.applet.Applet
getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
 
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, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

selfRef

public static ViewerApplet selfRef

hide_relax

public java.awt.Checkbox hide_relax
Constructor Detail

ViewerApplet

public ViewerApplet()
CONSTRUCTOR


ViewerApplet

public ViewerApplet(java.util.ArrayList intList)
overload contructor to allow data to be PUSHED into the viewer from Action class

Parameters:
intList -
Method Detail

init

public void init()
init() method


getInteractionsFromHtml

public void getInteractionsFromHtml()
for init() data read in


getFunctionKeysFromHtml

public void getFunctionKeysFromHtml()
data read in at init()


getFunctionListFromHtml

public void getFunctionListFromHtml()
data read in at init()


addSortedGoCatsToMenu

public void addSortedGoCatsToMenu()
add sorted GO cats to menu bar


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
ActionListener implementation method

Specified by:
actionPerformed in interface java.awt.event.ActionListener

clearScreen

public void clearScreen()
clear screen method


destroy

public void destroy()
destroy panel


itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
itemListener implementation

Specified by:
itemStateChanged in interface java.awt.event.ItemListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
KeyListener implementation - for search field

Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
keyListener implement

Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
keyListener

Specified by:
keyTyped in interface java.awt.event.KeyListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
handle right button mouse events separates for getting more detail on the protein node

Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

popPartitionIt

public int popPartitionIt(int left,
                          int right,
                          int pivot)
for quicksorting

Parameters:
left -
right -
pivot -
Returns:

popQuickSort

public void popQuickSort(int left,
                         int right)
for quicksorting

Parameters:
left -
right -

swap

public void swap(int dex1,
                 int dex2)
for quicksorting

Parameters:
dex1 -
dex2 -

setTableSelectedNodes

public void setTableSelectedNodes(java.util.ArrayList tableSelect)
for external calling from tableapplet - turn on table selected members on viewer

Parameters:
tableSelect -

showSelectedNodes

public void showSelectedNodes(java.lang.String gechoiced)
MENU FUNCTIONALITY - get members of a given GO class

Parameters:
gechoiced -

start

public void start()
applet


stop

public void stop()
applet