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

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.AnovaTwoWay
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 AnovaTwoWay
extends Analysis
implements java.beans.PropertyChangeListener

One-Way ANOVA

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
static java.lang.String INTERACTION_SWITCH
           
protected  java.lang.String INTERACTIONOFF
           
protected  java.lang.String INTERACTIONON
           
 javax.swing.JTabbedPane tabbedPanelContainer
           
 
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, 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, rowNumber, SECOND_BUTTON_LABEL, SELECT, selectedInd, selectPanel, SHOW_ALL, showData, showDendro, showGraph, showInput, showMapping, showSelect, showVisualize, stopNow, SURVIVAL_LIST_LENGTH, 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
AnovaTwoWay()
           
 
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.
protected  void doGraph()
           
 java.awt.Container getDisplayPane()
           
 java.lang.String getOnlineDescription()
          This method returns an online description of this Statistical Analysis.
 void init()
          Initialize the Analysis
 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 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 resetGraph()
           
protected  void setMappingPanel()
           
 void start()
          This method sets up the analysis protocol, when the applet starts
 void turnInteractionOff()
           
 void turnInteractionOn()
           
 void updateResults()
           
 
Methods inherited from class edu.ucla.stat.SOCR.analyses.gui.Analysis
addButtonCensor, addButtonDependent, addButtonGroupNames, addButtonTime, addTabbedPane, addTabbedPane, appendTableColumns, appendTableRows, chkDataIntegrity, format, getAppletInfo, getDistinctElements, getInstance, getOnlineHelp, getSelectedHeaderColumn, getStaticExample, getTime, hookTableAction, initialize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paintTable, removeButtonCensor, removeButtonDependent, removeButtonDependentAll, removeButtonGroupNames, removeButtonIndependent, removeButtonIndependentAll, removeButtonTime, removeTabbedPane, resetDendro, resetMappingList, resetMappingListGUI, resetParameterSelect, resetTable, resetTableColumns, resetTableColumns, resetTableRows, resetVisualize, run, setDataPanel, setDecimalFormat, setDendroPanel, setFormat, setGraphPanel, setInputPanel, setMainPanel, 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
 

Field Detail

tabbedPanelContainer

public javax.swing.JTabbedPane tabbedPanelContainer

INTERACTIONON

protected final java.lang.String INTERACTIONON
See Also:
Constant Field Values

INTERACTIONOFF

protected final java.lang.String INTERACTIONOFF
See Also:
Constant Field Values

INTERACTION_SWITCH

public static final java.lang.String INTERACTION_SWITCH
See Also:
Constant Field Values
Constructor Detail

AnovaTwoWay

public AnovaTwoWay()
Method Detail

init

public void init()
Initialize the Analysis

Overrides:
init 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

setMappingPanel

protected void setMappingPanel()
Overrides:
setMappingPanel in class Analysis

turnInteractionOn

public void turnInteractionOn()

turnInteractionOff

public void turnInteractionOff()

createActionComponents

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

Overrides:
createActionComponents 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

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

doGraph

protected void doGraph()
Overrides:
doGraph 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

resetGraph

protected void resetGraph()
Overrides:
resetGraph in class Analysis