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

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
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.io.Serializable, java.lang.Runnable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer
Direct Known Subclasses:
AnovaOneWay, AnovaTwoWay, CategoricalAnalysis, ChiSquareContingencyTable, ChiSquareModelFit, Clustering, ConfidenceIntervalAnalysis, DichotomousProportion, FisherExact, FlignerKilleen, Friedman, KolmogorovSmirnoff, KruskalWallis, LogisticRegression, MultiLinearRegression, NormalPower, OneT, OneZ, SimpleLinearRegression, Survival, TwoIndependentT, TwoIndependentTPooled, TwoIndependentTUnpooled, TwoIndependentWilcoxon, TwoPairedSignedRank, TwoPairedSignTest, TwoPairedT

public class Analysis
extends javax.swing.JApplet
implements java.lang.Runnable, java.awt.event.MouseListener, java.awt.event.ActionListener, java.awt.event.MouseMotionListener, java.awt.event.WindowListener, java.awt.event.KeyListener

This class defines a basic type of Statistical Analysis procedure that can be subclassed by the specific types of analyses (e.g., ANOVA, Regression, prediction, etc.)

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
protected  java.lang.String ADD
           
 javax.swing.JButton addButton1
           
 javax.swing.JButton addButton2
           
 javax.swing.JButton addButton3
           
protected  java.lang.Thread analysis
           
protected  java.lang.String analysisDescription1
           
protected  java.lang.String analysisDescription2
           
protected  java.lang.String analysisDescription3
           
protected  java.lang.String analysisDescription4
           
protected  java.lang.String analysisDescription5
           
protected  java.lang.String analysisDescription6
           
protected  java.lang.String analysisDescription7
           
protected  java.lang.String analysisName
           
protected  short analysisType
           
protected  javax.swing.JPanel bPanel
           
protected  java.lang.String CALCULATE
           
protected  javax.swing.Action callServerAction
           
protected  int censorIndex
           
protected  Chart chartFactory
           
protected  java.lang.String CLEAR
           
protected  javax.swing.Action clearAction
           
protected  javax.swing.table.TableColumnModel columnModel
           
 java.lang.String[] columnNames
           
protected  int columnNumber
           
protected  javax.swing.Action computeAction
           
protected static javax.swing.JPanel controlPanel
           
protected  int currentDepIndex
           
protected  int currentIndepIndex
           
protected  Data data
           
protected  java.lang.String DATA
           
protected  java.lang.String DATA_COLINEAR_MESSAGE
           
protected  java.lang.String DATA_ERROR_MESSAGE
           
protected  java.lang.String DATA_MISSING_MESSAGE
           
 java.lang.Object[][] dataObject
           
protected static javax.swing.JPanel dataPanel
           
static javax.swing.JTable dataTable
           
protected  java.lang.String dataText
           
static int DEFAULT_DATA_PANEL_HEIGHT
           
static int DEFAULT_DATA_PANEL_WIDTH
           
static java.lang.String DEFAULT_HEADER
           
static java.lang.String DEFAULT_HEADER_1
           
static java.lang.String DEFAULT_HEADER_2
           
static int DEFAULT_MAX_COLUMN_NUMBER
           
static int DEFAULT_PANE_HEIGHT
           
static int DEFAULT_PANE_WIDTH
          Start Variable Declaration
protected static int DEFAULT_RESULT_PANEL_HEIGHT
           
protected static int DEFAULT_RESULT_PANEL_WIDTH
           
protected  java.lang.String DENDRO
           
static javax.swing.JPanel dendroPanel
           
protected  int dependentIndex
           
protected  javax.swing.JScrollPane dependentPane
           
protected  javax.swing.JLabel depLabel
           
protected  int depMax
           
protected  java.text.DecimalFormat dFormat
           
protected  EditableHeader dTableHeader
           
protected  java.lang.String EXAMPLE_1
           
protected  java.lang.String EXAMPLE_2
           
protected  java.lang.String EXAMPLE_3
           
protected  java.lang.String EXAMPLE_4
           
protected  java.lang.String EXAMPLE_5
           
protected  java.lang.String EXAMPLE_6
           
protected  java.lang.String EXAMPLE_7
           
protected  short exampleID
           
protected  javax.swing.Action exampleInputAction
           
protected  javax.swing.Action exampleLocalAction
           
protected  javax.swing.Action exampleRandomAction
           
protected  javax.swing.Action exampleRemoteAction
           
protected  int exampleSampleSize
           
protected  javax.swing.Action exampleStaticAction1
          **************
protected  javax.swing.Action exampleStaticAction2
           
protected  javax.swing.Action exampleStaticAction3
           
protected  javax.swing.Action exampleStaticAction4
           
protected  javax.swing.Action exampleStaticAction5
           
protected  javax.swing.Action exampleStaticAction6
           
protected  javax.swing.Action exampleStaticAction7
           
protected  javax.swing.Action fileLoadAction
           
protected  java.lang.String FIRST_BUTTON_LABEL
           
static java.awt.Font font
           
static java.lang.String FORMAT00001
           
static java.lang.String FORMAT001
           
static java.lang.String FORMATALL
           
protected  java.lang.String GRAPH
           
protected static javax.swing.JPanel graphPanel
           
protected  NormalCurve graphRawData
           
protected  NormalCurve graphSampleMean
           
protected  NormalCurve graphZScore
           
protected  int groupNamesIndex
           
protected  boolean hasExample
           
protected  boolean hasInput
           
static javax.swing.JTable headerTable
           
static javax.swing.table.DefaultTableModel hModel
           
protected  java.lang.String hypothesisType
           
protected  java.lang.String[] independentHeaderArray
           
protected  int independentIndex
           
protected  int independentLength
           
protected  java.util.LinkedList<java.lang.Integer> independentList
           
protected  int independentListCursor
           
protected  javax.swing.JLabel indLabel
           
protected  int indMax
           
protected  java.lang.String INPUT
           
protected static javax.swing.JPanel inputPanel
           
protected  java.lang.String inputXMLString
           
protected  boolean isInitialInput
           
 javax.swing.JPanel leftAnalysisChoicePanel
           
protected  javax.swing.JPanel leftPanel
           
 javax.swing.JList listAdded
           
 javax.swing.JList listCensor
           
 javax.swing.JList listDepRemoved
           
 javax.swing.JList listGroupNames
           
 javax.swing.JList listIndepRemoved
           
 int[] listIndex
           
 javax.swing.JList listTime
           
protected  java.lang.String LOAD_FILE
           
protected  boolean mapDep
           
protected  boolean mapIndep
           
protected  java.lang.String MAPPING
           
protected static javax.swing.JPanel mappingInnerPanel
           
protected static javax.swing.JPanel mappingPanel
           
protected  java.lang.String NULL_VARIABLE_MESSAGE
           
protected  java.lang.String onlineDescription
           
protected  java.lang.String onlineHelp
           
protected static java.lang.String outputFontFace
           
protected static int outputFontSize
           
protected  int plotHeight
           
protected  int plotWidth
           
protected  java.lang.String RANDOM_EXAMPLE
           
protected static boolean randomDataStep
           
protected  java.lang.String REMOVE
           
 javax.swing.JButton removeButton1
           
 javax.swing.JButton removeButton2
           
 javax.swing.JButton removeButton3
           
protected  java.lang.String RESULT
           
protected static int RESULT_PANEL_COL_SIZE
           
protected static int RESULT_PANEL_ROW_SIZE
           
protected static javax.swing.JPanel resultPanel
           
 javax.swing.JTextArea resultPanelTextArea
           
protected  javax.swing.JPanel rightPanel
           
protected  int rowNumber
           
protected  java.lang.String SECOND_BUTTON_LABEL
           
protected  java.lang.String SELECT
           
 int selectedInd
           
protected static javax.swing.JPanel selectPanel
           
protected  java.lang.String SHOW_ALL
           
protected  boolean showData
           
protected  boolean showDendro
           
protected  boolean showGraph
           
protected  boolean showInput
           
protected  boolean showMapping
           
protected  boolean showSelect
           
protected  boolean showVisualize
           
protected  boolean stopNow
           
static int SURVIVAL_LIST_LENGTH
           
 javax.swing.JTabbedPane tabbedPanelContainer
           
protected  int timeIndex
           
static javax.swing.table.DefaultTableModel tModel
           
protected  java.lang.String USE_SERVER
           
protected  boolean useGraph
           
protected  boolean useInputExample
           
protected  boolean useLocalExample
           
protected  java.lang.String USER_INPUT
           
protected  boolean useRandomExample
          flags that controls the actions
protected  javax.swing.Action userDataAction
           
protected  boolean useServerExample
           
protected  boolean[] useStaticExample
           
protected  java.lang.String VARIABLE
           
protected  java.lang.String VARIABLE_1
           
protected  java.lang.String VARIABLE_2
           
protected  java.lang.String VARIABLE_MISSING_MESSAGE
           
protected  javax.swing.JLabel varLabel
           
protected  java.lang.String VISUALIZE
           
protected static javax.swing.JPanel visualizePanel
           
protected  java.lang.String xmlInputString
           
protected  java.lang.String 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
Analysis()
           
 
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 addButtonCensor()
           
protected  void addButtonDependent()
           
protected  void addButtonGroupNames()
           
protected  void addButtonTime()
           
 void addTabbedPane(java.lang.String title, javax.swing.Icon icon, javax.swing.JComponent component, java.lang.String tip)
          This method add a new component to the tabbed panel.
 void addTabbedPane(java.lang.String name, javax.swing.JComponent c)
          This method add a new component to the tabbed panel.
 void appendTableColumns(int n)
           
 void appendTableRows(int n)
           
 int chkDataIntegrity()
           
protected  void createActionComponents(javax.swing.JToolBar toolBar)
           
 void doAnalysis()
          This method defines what the analysis really does, and should be overridden by the specific analysis tools.
protected  void doGraph()
           
 java.lang.String format(double x, java.lang.String precision)
           
 java.lang.String getAppletInfo()
          This method returns basic copyright, author, and other metadata information
 java.awt.Container getDisplayPane()
           
 int getDistinctElements(Matrix Cl)
           
static Analysis getInstance(java.lang.String classname)
           
 java.lang.String getOnlineDescription()
          This method returns an online description of this Statistical Analysis.
 java.lang.String getOnlineHelp()
           
 int getSelectedHeaderColumn()
           
static ExampleData getStaticExample(short analysisType, short exampleID)
           
 int getTime()
          This method gets the time parameter of the analysis process.
protected  void hookTableAction()
          Add customized table actions.
 void init()
          This method initializes the Analysis, by setting up the basic tabbedPanes.
 void initialize()
          used for some sublcass to initialize befrore be used
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void mouseClicked(java.awt.event.MouseEvent event)
          Mouse events
 void mouseDragged(java.awt.event.MouseEvent event)
           
 void mouseEntered(java.awt.event.MouseEvent event)
           
 void mouseExited(java.awt.event.MouseEvent event)
           
 void mouseMoved(java.awt.event.MouseEvent event)
          Mouse motion events
 void mousePressed(java.awt.event.MouseEvent event)
           
 void mouseReleased(java.awt.event.MouseEvent event)
           
 void paintTable(int[] lstInd)
           
protected  void removeButtonCensor()
           
protected  void removeButtonDependent()
           
protected  void removeButtonDependentAll()
           
protected  void removeButtonGroupNames()
           
protected  void removeButtonIndependent()
           
protected  void removeButtonIndependentAll()
           
protected  void removeButtonTime()
           
 void removeTabbedPane(int index)
          This method removes a component from the tabbed panel.
 void reset()
          This method is the default reset method, that resets the analysis process to its initial state.
protected  void resetDendro()
           
protected  void resetGraph()
           
 void resetMappingList()
           
 void resetMappingListGUI()
           
protected  void resetParameterSelect()
           
 void resetTable()
           
 void resetTableColumns(int n)
           
 void resetTableColumns(javax.swing.table.TableColumnModel columnModel)
           
 void resetTableRows(int n)
           
protected  void resetVisualize()
           
 void run()
          This method runs the analysis thread
protected  void setDataPanel()
           
 void setDecimalFormat(java.text.DecimalFormat d)
          This method sets the decimal format, so that the properties of the decimal format can then be changed
protected  void setDendroPanel()
           
 void setFormat(java.lang.String f)
           
protected  void setGraphPanel()
           
protected  void setInputPanel()
           
 void setMainPanel()
          Sets the amin Stat Analysis GUI with left-analysis-choice & right-data-cointrol Jpanel's.
protected  void setMappingPanel()
           
protected  void setResultPanel()
           
protected  void setSelectPanel()
           
 void setStopNow(boolean b)
          This method defines the boolean variable that stops the analysis, when the process is in run mode
 void setTabbedPaneComponent(int index, javax.swing.JComponent c)
          This method sets a component in the tabbed panel to a specified new component.
protected  void setVisualizePanel()
           
 void step()
          This method is the default step method, that runs the analysis one time unit.
 void stop()
          This method stops the analysis thread
 void update()
          This method is the default update method and defines how the display is updated.
 void updateEditableHeader(javax.swing.table.TableColumnModel aColumnModel)
           
 void updateExample(ExampleData example)
           
 void updateResults()
           
 void windowActivated(java.awt.event.WindowEvent event)
           
 void windowClosed(java.awt.event.WindowEvent event)
           
 void windowClosing(java.awt.event.WindowEvent event)
           
 void windowDeactivated(java.awt.event.WindowEvent event)
           
 void windowDeiconified(java.awt.event.WindowEvent event)
           
 void windowIconified(java.awt.event.WindowEvent event)
           
 void windowOpened(java.awt.event.WindowEvent event)
          Window events
 
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, start
 
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

DEFAULT_PANE_WIDTH

public static final int DEFAULT_PANE_WIDTH
Start Variable Declaration


DEFAULT_PANE_HEIGHT

public static final int DEFAULT_PANE_HEIGHT
See Also:
Constant Field Values

DEFAULT_DATA_PANEL_WIDTH

public static final int DEFAULT_DATA_PANEL_WIDTH
See Also:
Constant Field Values

DEFAULT_DATA_PANEL_HEIGHT

public static final int DEFAULT_DATA_PANEL_HEIGHT
See Also:
Constant Field Values

DEFAULT_RESULT_PANEL_WIDTH

protected static final int DEFAULT_RESULT_PANEL_WIDTH
See Also:
Constant Field Values

DEFAULT_RESULT_PANEL_HEIGHT

protected static final int DEFAULT_RESULT_PANEL_HEIGHT
See Also:
Constant Field Values

RESULT_PANEL_ROW_SIZE

protected static final int RESULT_PANEL_ROW_SIZE
See Also:
Constant Field Values

RESULT_PANEL_COL_SIZE

protected static final int RESULT_PANEL_COL_SIZE
See Also:
Constant Field Values

EXAMPLE_1

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

EXAMPLE_2

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

EXAMPLE_3

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

EXAMPLE_4

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

EXAMPLE_5

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

EXAMPLE_6

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

EXAMPLE_7

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

VARIABLE

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

VARIABLE_1

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

VARIABLE_2

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

CALCULATE

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

CLEAR

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

LOAD_FILE

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

USER_INPUT

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

USE_SERVER

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

DATA

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

RESULT

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

GRAPH

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

DENDRO

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

MAPPING

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

SELECT

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

ADD

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

REMOVE

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

VISUALIZE

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

INPUT

protected java.lang.String INPUT

SHOW_ALL

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

showData

protected boolean showData

showInput

protected boolean showInput

showMapping

protected boolean showMapping

showVisualize

protected boolean showVisualize

showSelect

protected boolean showSelect

showGraph

protected boolean showGraph

showDendro

protected boolean showDendro

RANDOM_EXAMPLE

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

FIRST_BUTTON_LABEL

protected java.lang.String FIRST_BUTTON_LABEL

SECOND_BUTTON_LABEL

protected java.lang.String SECOND_BUTTON_LABEL

DEFAULT_HEADER

public static final java.lang.String DEFAULT_HEADER
See Also:
Constant Field Values

DEFAULT_HEADER_1

public static final java.lang.String DEFAULT_HEADER_1
See Also:
Constant Field Values

DEFAULT_HEADER_2

public static final java.lang.String DEFAULT_HEADER_2
See Also:
Constant Field Values

DATA_MISSING_MESSAGE

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

VARIABLE_MISSING_MESSAGE

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

DATA_COLINEAR_MESSAGE

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

DATA_ERROR_MESSAGE

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

NULL_VARIABLE_MESSAGE

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

outputFontFace

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

outputFontSize

protected static final int outputFontSize
See Also:
Constant Field Values

SURVIVAL_LIST_LENGTH

public static final int SURVIVAL_LIST_LENGTH
See Also:
Constant Field Values

onlineDescription

protected java.lang.String onlineDescription

onlineHelp

protected java.lang.String onlineHelp

independentLength

protected int independentLength

plotWidth

protected int plotWidth

plotHeight

protected int plotHeight

independentIndex

protected int independentIndex

dependentIndex

protected int dependentIndex

timeIndex

protected int timeIndex

censorIndex

protected int censorIndex

groupNamesIndex

protected int groupNamesIndex

analysisName

protected java.lang.String analysisName

useRandomExample

protected boolean useRandomExample
flags that controls the actions


useLocalExample

protected boolean useLocalExample

useInputExample

protected boolean useInputExample

useServerExample

protected boolean useServerExample

useGraph

protected boolean useGraph

useStaticExample

protected boolean[] useStaticExample

isInitialInput

protected boolean isInitialInput

hasExample

protected boolean hasExample

hasInput

protected boolean hasInput

exampleStaticAction1

protected javax.swing.Action exampleStaticAction1
**************


exampleStaticAction2

protected javax.swing.Action exampleStaticAction2

exampleStaticAction3

protected javax.swing.Action exampleStaticAction3

exampleStaticAction4

protected javax.swing.Action exampleStaticAction4

exampleStaticAction5

protected javax.swing.Action exampleStaticAction5

exampleStaticAction6

protected javax.swing.Action exampleStaticAction6

exampleStaticAction7

protected javax.swing.Action exampleStaticAction7

exampleRandomAction

protected javax.swing.Action exampleRandomAction

exampleLocalAction

protected javax.swing.Action exampleLocalAction

exampleRemoteAction

protected javax.swing.Action exampleRemoteAction

exampleInputAction

protected javax.swing.Action exampleInputAction

callServerAction

protected javax.swing.Action callServerAction

computeAction

protected javax.swing.Action computeAction

clearAction

protected javax.swing.Action clearAction

userDataAction

protected javax.swing.Action userDataAction

fileLoadAction

protected javax.swing.Action fileLoadAction

analysisType

protected short analysisType

exampleID

protected short exampleID

analysisDescription1

protected java.lang.String analysisDescription1

analysisDescription2

protected java.lang.String analysisDescription2

analysisDescription3

protected java.lang.String analysisDescription3

analysisDescription4

protected java.lang.String analysisDescription4

analysisDescription5

protected java.lang.String analysisDescription5

analysisDescription6

protected java.lang.String analysisDescription6

analysisDescription7

protected java.lang.String analysisDescription7

independentHeaderArray

protected java.lang.String[] independentHeaderArray

exampleSampleSize

protected int exampleSampleSize

selectedInd

public int selectedInd

dataTable

public static javax.swing.JTable dataTable

headerTable

public static javax.swing.JTable headerTable

dTableHeader

protected EditableHeader dTableHeader

dataObject

public java.lang.Object[][] dataObject

dataText

protected java.lang.String dataText

DEFAULT_MAX_COLUMN_NUMBER

public static int DEFAULT_MAX_COLUMN_NUMBER

columnNumber

protected int columnNumber

rowNumber

protected int rowNumber

columnNames

public java.lang.String[] columnNames

tModel

public static javax.swing.table.DefaultTableModel tModel

hModel

public static javax.swing.table.DefaultTableModel hModel

controlPanel

protected static javax.swing.JPanel controlPanel

dataPanel

protected static javax.swing.JPanel dataPanel

resultPanel

protected static javax.swing.JPanel resultPanel

graphPanel

protected static javax.swing.JPanel graphPanel

mappingInnerPanel

protected static javax.swing.JPanel mappingInnerPanel

mappingPanel

protected static javax.swing.JPanel mappingPanel

inputPanel

protected static javax.swing.JPanel inputPanel

selectPanel

protected static javax.swing.JPanel selectPanel

visualizePanel

protected static javax.swing.JPanel visualizePanel

dendroPanel

public static javax.swing.JPanel dendroPanel

bPanel

protected javax.swing.JPanel bPanel

resultPanelTextArea

public javax.swing.JTextArea resultPanelTextArea

columnModel

protected javax.swing.table.TableColumnModel columnModel

listAdded

public javax.swing.JList listAdded

listDepRemoved

public javax.swing.JList listDepRemoved

listIndepRemoved

public javax.swing.JList listIndepRemoved

listTime

public javax.swing.JList listTime

listCensor

public javax.swing.JList listCensor

listGroupNames

public javax.swing.JList listGroupNames

addButton1

public javax.swing.JButton addButton1

addButton2

public javax.swing.JButton addButton2

addButton3

public javax.swing.JButton addButton3

removeButton1

public javax.swing.JButton removeButton1

removeButton2

public javax.swing.JButton removeButton2

removeButton3

public javax.swing.JButton removeButton3

depMax

protected int depMax

indMax

protected int indMax

currentDepIndex

protected int currentDepIndex

currentIndepIndex

protected int currentIndepIndex

independentList

protected java.util.LinkedList<java.lang.Integer> independentList

mapDep

protected boolean mapDep

mapIndep

protected boolean mapIndep

independentListCursor

protected int independentListCursor

listIndex

public int[] listIndex

dependentPane

protected javax.swing.JScrollPane dependentPane

analysis

protected java.lang.Thread analysis

stopNow

protected boolean stopNow

tabbedPanelContainer

public javax.swing.JTabbedPane tabbedPanelContainer

chartFactory

protected Chart chartFactory

font

public static java.awt.Font font

FORMAT001

public static java.lang.String FORMAT001

FORMAT00001

public static java.lang.String FORMAT00001

FORMATALL

public static java.lang.String FORMATALL

dFormat

protected java.text.DecimalFormat dFormat

leftAnalysisChoicePanel

public javax.swing.JPanel leftAnalysisChoicePanel

depLabel

protected javax.swing.JLabel depLabel

indLabel

protected javax.swing.JLabel indLabel

varLabel

protected javax.swing.JLabel varLabel

inputXMLString

protected java.lang.String inputXMLString

data

protected Data data

xmlInputString

protected java.lang.String xmlInputString

xmlOutputString

protected java.lang.String xmlOutputString

randomDataStep

protected static boolean randomDataStep

hypothesisType

protected java.lang.String hypothesisType

graphRawData

protected NormalCurve graphRawData

graphSampleMean

protected NormalCurve graphSampleMean

graphZScore

protected NormalCurve graphZScore

leftPanel

protected javax.swing.JPanel leftPanel

rightPanel

protected javax.swing.JPanel rightPanel
Constructor Detail

Analysis

public Analysis()
Method Detail

setFormat

public void setFormat(java.lang.String f)

init

public void init()
This method initializes the Analysis, by setting up the basic tabbedPanes.

Overrides:
init in class java.applet.Applet

setDataPanel

protected void setDataPanel()

hookTableAction

protected void hookTableAction()
Add customized table actions. Clicking tab in the last cell will add one new column. Clicking return in the last cell will add one new row.


resetTableColumns

public void resetTableColumns(int n)

resetTableColumns

public void resetTableColumns(javax.swing.table.TableColumnModel columnModel)

setResultPanel

protected void setResultPanel()

setGraphPanel

protected void setGraphPanel()

setDendroPanel

protected void setDendroPanel()

setVisualizePanel

protected void setVisualizePanel()

setSelectPanel

protected void setSelectPanel()

setInputPanel

protected void setInputPanel()

setMainPanel

public void setMainPanel()
Sets the amin Stat Analysis GUI with left-analysis-choice & right-data-cointrol Jpanel's.


getAppletInfo

public java.lang.String getAppletInfo()
This method returns basic copyright, author, and other metadata information

Overrides:
getAppletInfo in class java.applet.Applet

format

public java.lang.String format(double x,
                               java.lang.String precision)

setDecimalFormat

public void setDecimalFormat(java.text.DecimalFormat d)
This method sets the decimal format, so that the properties of the decimal format can then be changed


addTabbedPane

public void addTabbedPane(java.lang.String name,
                          javax.swing.JComponent c)
This method add a new component to the tabbed panel.


addTabbedPane

public void addTabbedPane(java.lang.String title,
                          javax.swing.Icon icon,
                          javax.swing.JComponent component,
                          java.lang.String tip)
This method add a new component to the tabbed panel.


removeTabbedPane

public void removeTabbedPane(int index)
This method removes a component from the tabbed panel.


setTabbedPaneComponent

public void setTabbedPaneComponent(int index,
                                   javax.swing.JComponent c)
This method sets a component in the tabbed panel to a specified new component.


getTime

public int getTime()
This method gets the time parameter of the analysis process. May have to be overwritten .


run

public void run()
This method runs the analysis thread

Specified by:
run in interface java.lang.Runnable

stop

public void stop()
This method stops the analysis thread

Overrides:
stop in class java.applet.Applet

setStopNow

public void setStopNow(boolean b)
This method defines the boolean variable that stops the analysis, when the process is in run mode


update

public void update()
This method is the default update method and defines how the display is updated. This method should be overridden by the specific analysis.


reset

public void reset()
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.


updateEditableHeader

public void updateEditableHeader(javax.swing.table.TableColumnModel aColumnModel)

getSelectedHeaderColumn

public int getSelectedHeaderColumn()

resetTable

public void resetTable()

resetMappingList

public void resetMappingList()

resetMappingListGUI

public void resetMappingListGUI()

doAnalysis

public void doAnalysis()
This method defines what the analysis really does, and should be overridden by the specific analysis tools.


updateResults

public void updateResults()

step

public void step()
This method is the default step method, that runs the analysis one time unit. This method may be overridden by the specific analysis tools.


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
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

addButtonDependent

protected void addButtonDependent()

removeButtonDependent

protected void removeButtonDependent()

removeButtonIndependent

protected void removeButtonIndependent()

removeButtonDependentAll

protected void removeButtonDependentAll()

removeButtonIndependentAll

protected void removeButtonIndependentAll()

getOnlineDescription

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


getOnlineHelp

public java.lang.String getOnlineHelp()

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent event)
Mouse events

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

mouseEntered

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

mouseExited

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

mousePressed

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

mouseReleased

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

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent event)
Mouse motion events

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent event)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent event)
Window events

Specified by:
windowOpened in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent event)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent event)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent event)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent event)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent event)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent event)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

setMappingPanel

protected void setMappingPanel()

paintTable

public void paintTable(int[] lstInd)

appendTableRows

public void appendTableRows(int n)

resetTableRows

public void resetTableRows(int n)

appendTableColumns

public void appendTableColumns(int n)

getDistinctElements

public int getDistinctElements(Matrix Cl)

updateExample

public void updateExample(ExampleData example)

chkDataIntegrity

public int chkDataIntegrity()

getInstance

public static Analysis getInstance(java.lang.String classname)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getDisplayPane

public java.awt.Container getDisplayPane()

initialize

public void initialize()
used for some sublcass to initialize befrore be used


createActionComponents

protected void createActionComponents(javax.swing.JToolBar toolBar)

doGraph

protected void doGraph()

resetGraph

protected void resetGraph()

resetDendro

protected void resetDendro()

resetVisualize

protected void resetVisualize()

resetParameterSelect

protected void resetParameterSelect()

addButtonTime

protected void addButtonTime()

removeButtonTime

protected void removeButtonTime()

addButtonCensor

protected void addButtonCensor()

removeButtonCensor

protected void removeButtonCensor()

addButtonGroupNames

protected void addButtonGroupNames()

removeButtonGroupNames

protected void removeButtonGroupNames()

getStaticExample

public static ExampleData getStaticExample(short analysisType,
                                           short exampleID)

keyPressed

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

keyReleased

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

keyTyped

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