edu.ucla.stat.SOCR.analyses.jri.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.jri.gui.Analysis
All Implemented Interfaces:
java.awt.event.ActionListener, 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:
LogisticRegression, SimpleLinearRegression

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

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 analysisDescription
           
protected  java.lang.String analysisName
           
protected  short analysisType
           
protected  java.lang.String CALCULATE
           
protected  boolean callServer
           
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_MISSING_MESSAGE
           
 java.lang.Object[][] dataObject
           
protected static javax.swing.JPanel dataPanel
           
static javax.swing.JTable dataTable
           
protected  java.lang.String dataText
           
protected  java.lang.String DEFAULT_HEADER
           
protected  java.lang.String DEPENDENT
           
protected  int dependentIndex
           
protected  javax.swing.JLabel depLabel
           
protected  int depMax
           
protected  java.lang.String EXAMPLE
           
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 exampleStaticAction
          **************
protected  javax.swing.Action fileLoadAction
           
static java.awt.Font font
           
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  java.lang.String hypothesisType
           
protected  java.lang.String INDEPENDENT
           
protected  java.lang.String[] independentHeaderArray
           
protected  int independentIndex
           
protected  int independentLength
           
protected  java.util.ArrayList<java.lang.Integer> independentList
           
protected  int independentListCursor
           
protected  javax.swing.JLabel indLabel
           
protected  int indMax
           
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  java.lang.String MAPPING
           
protected static javax.swing.JPanel mappingInnerPanel
           
protected static javax.swing.JPanel mappingPanel
           
protected static javax.swing.JPanel mixPanel
           
protected  javax.swing.JScrollPane mixPanelContainer
           
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 javax.swing.JPanel resultPanel
           
 javax.swing.JTextArea resultPanelTextArea
           
protected  javax.swing.JPanel rightPanel
           
protected  int rowNumber
           
 int selectedInd
           
protected static javax.swing.JPanel selectPanel
           
protected  java.lang.String SHOW_ALL
           
protected  boolean stopNow
           
 javax.swing.JTabbedPane tabbedPanelContainer
           
protected static javax.swing.JButton test1
           
protected static javax.swing.JButton test2
           
protected  int timeIndex
           
static javax.swing.table.DefaultTableModel tModel
           
protected  java.lang.String USE_SERVER
           
protected  boolean useDataPanel
           
protected  boolean useGraph
           
protected  boolean useGraphPanel
           
protected  boolean useInputExample
           
protected  boolean useLocalExample
           
protected  boolean useMapPanel
           
protected  boolean usemixPanel
           
protected  java.lang.String USER_INPUT
           
protected  boolean useRandomExample
           
protected  javax.swing.Action userDataAction
           
protected  boolean useResultPanel
           
protected  boolean useSelectPanel
           
protected  boolean useServerExample
           
protected  boolean useStaticExample
          flags that controls the actions
protected  boolean useVisualizePanel
           
protected  java.lang.String VARIABLE
           
protected  java.lang.String VARIABLE_MISSING_MESSAGE
           
protected  javax.swing.JLabel varLabel
           
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).
 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 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)
           
protected  java.lang.String getAnalysisOutputFromServer(java.lang.String input)
           
protected  java.io.ByteArrayOutputStream getAnalysisOutputStreamFromServer(java.io.ByteArrayOutputStream input)
           
 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 getTime()
          This method gets the time parameter of the analysis process.
protected  java.lang.String getXMLInputString()
           
protected  java.lang.String getXMLOutputString()
           
 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 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 removeButtonDependent()
           
protected  void removeButtonIndependentAll()
           
 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 resetGraph()
           
 void resetMappingList()
           
 void resetMappingListGUI()
           
protected  void resetParameterSelect()
           
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 setGraphPanel()
           
 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()
           
protected  void setShowAllPanel()
           
 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()
           
protected  void setXMLInputString(java.lang.String input)
           
protected  void setXMLOutputString(java.lang.String input)
           
 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 updateExample(ExampleData example)
           
 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

EXAMPLE

protected final java.lang.String EXAMPLE
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

MAPPING

protected final java.lang.String MAPPING
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

SHOW_ALL

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

RANDOM_EXAMPLE

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

DEPENDENT

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

INDEPENDENT

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

VARIABLE

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

DEFAULT_HEADER

protected final java.lang.String DEFAULT_HEADER
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

outputFontFace

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

outputFontSize

protected static final int outputFontSize
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

useStaticExample

protected boolean useStaticExample
flags that controls the actions


useRandomExample

protected boolean useRandomExample

useLocalExample

protected boolean useLocalExample

useInputExample

protected boolean useInputExample

useServerExample

protected boolean useServerExample

callServer

protected boolean callServer

useGraph

protected boolean useGraph

useDataPanel

protected boolean useDataPanel

useResultPanel

protected boolean useResultPanel

useGraphPanel

protected boolean useGraphPanel

useMapPanel

protected boolean useMapPanel

useSelectPanel

protected boolean useSelectPanel

useVisualizePanel

protected boolean useVisualizePanel

usemixPanel

protected boolean usemixPanel

isInitialInput

protected boolean isInitialInput

hasExample

protected boolean hasExample

exampleStaticAction

protected javax.swing.Action exampleStaticAction
**************


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

analysisDescription

protected java.lang.String analysisDescription

independentHeaderArray

protected java.lang.String[] independentHeaderArray

exampleSampleSize

protected int exampleSampleSize

selectedInd

public int selectedInd

dataTable

public static javax.swing.JTable dataTable

dataObject

public java.lang.Object[][] dataObject

dataText

protected java.lang.String dataText

columnNumber

protected int columnNumber

rowNumber

protected int rowNumber

columnNames

public java.lang.String[] columnNames

tModel

public static javax.swing.table.DefaultTableModel tModel

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

selectPanel

protected static javax.swing.JPanel selectPanel

visualizePanel

protected static javax.swing.JPanel visualizePanel

mixPanel

protected static javax.swing.JPanel mixPanel

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

removeButton1

public javax.swing.JButton removeButton1

removeButton2

public javax.swing.JButton removeButton2

addButton3

public javax.swing.JButton addButton3

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.ArrayList<java.lang.Integer> independentList

independentListCursor

protected int independentListCursor

listIndex

public int[] listIndex

mixPanelContainer

protected javax.swing.JScrollPane mixPanelContainer

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

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

test1

protected static javax.swing.JButton test1

test2

protected static javax.swing.JButton test2
Constructor Detail

Analysis

public Analysis()
Method Detail

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()

setResultPanel

protected void setResultPanel()

setGraphPanel

protected void setGraphPanel()

setVisualizePanel

protected void setVisualizePanel()

setSelectPanel

protected void setSelectPanel()

setShowAllPanel

protected void setShowAllPanel()

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.


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.


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

removeButtonDependent

protected void removeButtonDependent()

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)

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()

resetVisualize

protected void resetVisualize()

resetParameterSelect

protected void resetParameterSelect()

getAnalysisOutputStreamFromServer

protected java.io.ByteArrayOutputStream getAnalysisOutputStreamFromServer(java.io.ByteArrayOutputStream input)

getAnalysisOutputFromServer

protected java.lang.String getAnalysisOutputFromServer(java.lang.String input)

getXMLInputString

protected java.lang.String getXMLInputString()

setXMLInputString

protected void setXMLInputString(java.lang.String input)

setXMLOutputString

protected void setXMLOutputString(java.lang.String input)

getXMLOutputString

protected java.lang.String getXMLOutputString()