edu.ucla.stat.SOCR.analyses.gui
Class FisherExact

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by java.applet.Applet
                  extended by javax.swing.JApplet
                      extended by edu.ucla.stat.SOCR.analyses.gui.Analysis
                          extended by edu.ucla.stat.SOCR.analyses.gui.FisherExact
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Runnable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer

public class FisherExact
extends Analysis
implements java.awt.event.MouseListener, java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.MouseMotionListener, java.beans.PropertyChangeListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JApplet
javax.swing.JApplet.AccessibleJApplet
 
Nested classes/interfaces inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class edu.ucla.stat.SOCR.analyses.gui.Analysis
ADD, addButton1, addButton2, addButton3, analysis, analysisDescription1, analysisDescription2, analysisDescription3, analysisDescription4, analysisDescription5, analysisDescription6, analysisDescription7, analysisName, analysisType, bPanel, CALCULATE, callServerAction, censorIndex, chartFactory, CLEAR, clearAction, columnModel, columnNames, columnNumber, computeAction, controlPanel, currentDepIndex, currentIndepIndex, data, DATA, DATA_COLINEAR_MESSAGE, DATA_ERROR_MESSAGE, DATA_MISSING_MESSAGE, dataObject, dataPanel, dataTable, dataText, DEFAULT_DATA_PANEL_HEIGHT, DEFAULT_DATA_PANEL_WIDTH, DEFAULT_HEADER, DEFAULT_HEADER_1, DEFAULT_HEADER_2, DEFAULT_MAX_COLUMN_NUMBER, DEFAULT_PANE_HEIGHT, DEFAULT_PANE_WIDTH, DEFAULT_RESULT_PANEL_HEIGHT, DEFAULT_RESULT_PANEL_WIDTH, DENDRO, dendroPanel, dependentIndex, dependentPane, depLabel, depMax, dFormat, dTableHeader, EXAMPLE_1, EXAMPLE_2, EXAMPLE_3, EXAMPLE_4, EXAMPLE_5, EXAMPLE_6, EXAMPLE_7, exampleID, exampleInputAction, exampleLocalAction, exampleRandomAction, exampleRemoteAction, exampleSampleSize, exampleStaticAction1, exampleStaticAction2, exampleStaticAction3, exampleStaticAction4, exampleStaticAction5, exampleStaticAction6, exampleStaticAction7, fileLoadAction, FIRST_BUTTON_LABEL, font, FORMAT00001, FORMAT001, FORMATALL, GRAPH, graphPanel, graphRawData, graphSampleMean, graphZScore, groupNamesIndex, hasExample, hasInput, headerTable, hModel, hypothesisType, independentHeaderArray, independentIndex, independentLength, independentList, independentListCursor, indLabel, indMax, INPUT, inputPanel, inputXMLString, isInitialInput, leftAnalysisChoicePanel, leftPanel, listAdded, listCensor, listDepRemoved, listGroupNames, listIndepRemoved, listIndex, listTime, LOAD_FILE, mapDep, mapIndep, MAPPING, mappingInnerPanel, mappingPanel, NULL_VARIABLE_MESSAGE, onlineDescription, onlineHelp, outputFontFace, outputFontSize, plotHeight, plotWidth, RANDOM_EXAMPLE, randomDataStep, REMOVE, removeButton1, removeButton2, removeButton3, RESULT, RESULT_PANEL_COL_SIZE, RESULT_PANEL_ROW_SIZE, resultPanel, resultPanelTextArea, rightPanel, SECOND_BUTTON_LABEL, SELECT, selectedInd, selectPanel, SHOW_ALL, showData, showDendro, showGraph, showInput, showMapping, showSelect, showVisualize, stopNow, SURVIVAL_LIST_LENGTH, tabbedPanelContainer, timeIndex, tModel, USE_SERVER, useGraph, useInputExample, useLocalExample, USER_INPUT, useRandomExample, userDataAction, useServerExample, useStaticExample, VARIABLE, VARIABLE_1, VARIABLE_2, VARIABLE_MISSING_MESSAGE, varLabel, VISUALIZE, visualizePanel, xmlInputString, xmlOutputString
 
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
FisherExact()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          This method handles the action events associated with the action buttons in the Analysis Control JTabbedPane (Panel).
protected  void createActionComponents(javax.swing.JToolBar toolBar)
          Create the actions for the buttons
 void doAnalysis()
          This method defines the specific statistical Analysis to be carried our on the user specified data.
 java.awt.Container getDisplayPane()
           
 java.lang.String getOnlineDescription()
          This method returns an online description of this Statistical Analysis.
 void init()
          Initialize the Analysis
 void keyPressed(java.awt.event.KeyEvent event)
           
 void keyReleased(java.awt.event.KeyEvent event)
           
 void keyTyped(java.awt.event.KeyEvent event)
           
 java.lang.String monoString(double s)
          convert a generic double s to a "nice" fixed length string
 java.lang.String monoString(int s)
          convert a generic integer s to a fixed length string
 java.lang.String monoString(java.lang.String s)
          convert a generic string s to a fixed length one.
 void mouseClicked(java.awt.event.MouseEvent event)
          Mouse events
 void mouseExited(java.awt.event.MouseEvent event)
           
 void mousePressed(java.awt.event.MouseEvent event)
           
 void mouseReleased(java.awt.event.MouseEvent event)
           
 void propertyChange(java.beans.PropertyChangeEvent e)
          Implementation of PropertyChageListener.
 void reset()
          This method is the default reset method, that resets the analysis process to its initial state.
protected  void setInputPanel()
           
 void start()
          This method sets up the analysis protocol, when the applet starts
 void updateResults()
           
 
Methods inherited from class edu.ucla.stat.SOCR.analyses.gui.Analysis
addButtonCensor, addButtonDependent, addButtonGroupNames, addButtonTime, addTabbedPane, addTabbedPane, appendTableColumns, appendTableRows, chkDataIntegrity, doGraph, format, getAppletInfo, getDistinctElements, getInstance, getOnlineHelp, getSelectedHeaderColumn, getStaticExample, getTime, hookTableAction, initialize, mouseDragged, mouseEntered, mouseMoved, paintTable, removeButtonCensor, removeButtonDependent, removeButtonDependentAll, removeButtonGroupNames, removeButtonIndependent, removeButtonIndependentAll, removeButtonTime, removeTabbedPane, resetDendro, resetGraph, resetMappingList, resetMappingListGUI, resetParameterSelect, resetTable, resetTableColumns, resetTableColumns, resetTableRows, resetVisualize, run, setDataPanel, setDecimalFormat, setDendroPanel, setFormat, setGraphPanel, setMainPanel, setMappingPanel, setResultPanel, setSelectPanel, setStopNow, setTabbedPaneComponent, setVisualizePanel, step, stop, update, updateEditableHeader, updateExample, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, 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, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, 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, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, 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
 
Methods inherited from interface java.awt.event.MouseListener
mouseEntered
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
 

Constructor Detail

FisherExact

public FisherExact()
Method Detail

init

public void init()
Initialize the Analysis

Overrides:
init in class Analysis

createActionComponents

protected void createActionComponents(javax.swing.JToolBar toolBar)
Create the actions for the buttons

Overrides:
createActionComponents in class Analysis

start

public void start()
This method sets up the analysis protocol, when the applet starts

Overrides:
start in class java.applet.Applet

doAnalysis

public void doAnalysis()
This method defines the specific statistical Analysis to be carried our on the user specified data. ANOVA is done in this case.

Overrides:
doAnalysis in class Analysis

updateResults

public void updateResults()
Overrides:
updateResults in class Analysis

monoString

public java.lang.String monoString(java.lang.String s)
convert a generic string s to a fixed length one.


monoString

public java.lang.String monoString(double s)
convert a generic double s to a "nice" fixed length string


monoString

public java.lang.String monoString(int s)
convert a generic integer s to a fixed length string


propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Implementation of PropertyChageListener.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener

getDisplayPane

public java.awt.Container getDisplayPane()
Overrides:
getDisplayPane in class Analysis

getOnlineDescription

public java.lang.String getOnlineDescription()
Description copied from class: Analysis
This method returns an online description of this Statistical Analysis. It should be overwritten by each specific analysis method.

Overrides:
getOnlineDescription in class Analysis

setInputPanel

protected void setInputPanel()
Overrides:
setInputPanel in class Analysis

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Description copied from class: Analysis
This method handles the action events associated with the action buttons in the Analysis Control JTabbedPane (Panel). It needs to overridden by the specific analysis tools.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class Analysis

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent event)
Description copied from class: Analysis
Mouse events

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class Analysis

mouseReleased

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

mouseExited

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

mousePressed

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

keyReleased

public void keyReleased(java.awt.event.KeyEvent event)
Specified by:
keyReleased in interface java.awt.event.KeyListener
Overrides:
keyReleased in class Analysis

keyPressed

public void keyPressed(java.awt.event.KeyEvent event)
Specified by:
keyPressed in interface java.awt.event.KeyListener
Overrides:
keyPressed in class Analysis

keyTyped

public void keyTyped(java.awt.event.KeyEvent event)
Specified by:
keyTyped in interface java.awt.event.KeyListener
Overrides:
keyTyped in class Analysis

reset

public void reset()
Description copied from class: Analysis
This method is the default reset method, that resets the analysis process to its initial state. It should be overridden by the specific analysis tools.

Overrides:
reset in class Analysis