edu.ucla.stat.SOCR.chart.j3d
Class Chart3D

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.chart.j3d.Chart3D
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.AdjustmentListener, 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:
NoChart3D, Super3DChart

public class Chart3D
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.AdjustmentListener, java.awt.event.KeyListener

This class defines a basic type of Statistical Chart that can be subclassed by the specific types of chart

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
           
protected  javax.swing.JPanel bPanel
           
protected  java.lang.Thread chart
           
protected  int CHART_SIZE_X
           
protected  int CHART_SIZE_Y
           
protected  java.lang.String chartDescription
           
protected  java.lang.String chartTitle
           
protected  java.lang.String CLEAR
           
protected  boolean CLEAR_BUTTON
           
protected  javax.swing.Action clearAction
           
protected  javax.swing.table.TableColumnModel columnModel
           
 java.lang.String[] columnNames
           
protected  int columnNumber
           
protected  javax.swing.Action computeAction
           
static java.lang.String DATA
           
protected  java.lang.String DATA_MISSING_MESSAGE
           
 java.lang.Object[][] dataObject
           
protected  javax.swing.JPanel dataPanel
           
 javax.swing.JTable dataTable
           
protected  java.lang.String dataText
           
protected  java.lang.String DELIMITERS
           
protected  java.lang.String DEPENDENT
           
protected  java.lang.String[] dependentHeaders
           
protected  int dependentIndex
           
protected  int dependentLength
           
protected  java.util.ArrayList<java.lang.Integer> dependentList
           
protected  int dependentListCursor
           
protected  int dependentVarLength
           
protected  javax.swing.JLabel depLabel
           
protected  int depMax
           
protected  java.lang.String[][] depValues
           
protected  java.lang.String DOCHART
           
protected  java.lang.String EXAMPLE
           
protected  javax.swing.Action exampleStaticAction
           
protected  javax.swing.Action fileLoadAction
           
static java.awt.Font font
           
protected  java.lang.String GRAPH
           
protected  javax.swing.JPanel graphPanel
           
protected  boolean hasExample
           
 java.lang.Object[][] headerDataObject
           
 javax.swing.JTable headerTable
           
 javax.swing.table.DefaultTableModel hModel
           
protected  java.lang.String INDEPENDENT
           
protected  java.lang.String[] independentHeaders
           
protected  int independentIndex
           
protected  int independentLength
           
protected  java.util.ArrayList<java.lang.Integer> independentList
           
protected  int independentListCursor
           
protected  int independentVarLength
           
protected  java.lang.String[][] indepValues
           
protected static int INDEX_0
           
protected static int INDEX_1
           
protected  javax.swing.JLabel indLabel
           
protected  int indMax
           
protected  java.lang.String INPUT
           
protected  int inputFileType
           
protected  javax.swing.JPanel inputPanel
           
protected  boolean isDemo
           
 javax.swing.JList listAdded
           
 javax.swing.JList listDepRemoved
           
 javax.swing.JList listIndepRemoved
           
protected  int[] listIndex
           
protected  javax.swing.DefaultListModel lModelAdded
           
protected  javax.swing.DefaultListModel lModelDep
           
protected  javax.swing.DefaultListModel lModelIndep
           
protected  boolean mapDep
           
protected  boolean mapIndep
           
protected  javax.swing.JPanel mapPanel
           
protected  java.lang.String MAPPING
           
protected  java.lang.String onlineDescription
           
protected  java.lang.String onlineHelp
           
protected static java.lang.String outputFontFace
           
protected static int outputFontSize
           
protected  javax.swing.JApplet parentApplet
           
protected  boolean printError
           
protected  java.lang.String REMOVE
           
 javax.swing.JButton removeButton1
           
 javax.swing.JButton removeButton2
           
protected  int rowNumber
           
 int selectedInd
           
protected  boolean SHOW_MAP_PANEL
           
protected  boolean SHOW_STATUS_TEXTAREA
           
protected  boolean stopNow
           
protected  javax.swing.JTextArea summaryPanel
           
protected  int tabbedPaneCount
           
 javax.swing.JTabbedPane tabbedPanelContainer
           
protected  java.lang.String TEST
           
protected static boolean TEST_API
           
protected  javax.swing.Action testAction
           
 javax.swing.table.DefaultTableModel tModel
           
protected  javax.swing.JToolBar toolBar
           
protected  javax.swing.JToolBar tools1
           
protected  javax.swing.JToolBar tools2
           
protected  java.net.URL url
           
protected  javax.swing.Action userDataAction
           
protected  boolean useStaticExample
           
protected  javax.swing.JTextField valueField
           
protected  java.lang.String VARIABLE
           
protected  java.lang.String VARIABLE_MISSING_MESSAGE
           
protected  javax.swing.JLabel varLabel
           
protected  java.lang.String view
           
protected  javax.swing.JTextField xIndexField
           
protected  java.lang.String xLabel
           
protected  int xyLength
           
protected  javax.swing.JTextField yIndexField
           
protected  java.lang.String yLabel
           
protected  java.lang.String zLabel
           
 
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
Chart3D()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
protected  void addButtonDependent()
           
protected  void addButtonIndependent()
           
 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 adjustJTable(int row, int column)
           
 void adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
           
 void appendTableColumns(int n)
           
 void appendTableRows(int n)
           
 double[] calculate_power(java.lang.String[] raw_x, int row_count, double power)
           
protected  void createActionComponents(javax.swing.JToolBar toolBar)
          add the tabs to the toolbar
 void doChart()
           
 void doTest()
           
 java.lang.String getAppletInfo()
          This method returns basic copyright, author, and other metadata information
 java.awt.Container getDisplayPane()
           
 int getInputFileType()
           
static Chart3D getInstance(java.lang.String classname)
           
 java.lang.String getLocalAbout()
           
 java.lang.String getLocalHelp()
           
protected  void getMapping()
           
 double getMax(double[] raw, int count)
           
 double getMax(java.lang.String[] raw, int count)
           
 double getMin(double[] raw, int count)
           
 double getMin(java.lang.String[] raw, int count)
           
 java.lang.String getOnlineDescription()
          This method returns an online description
 java.lang.String getOnlineHelp()
           
 java.lang.String getWikiAbout()
           
 java.lang.String getWikiHelp()
           
protected  void hookTableAction()
          Add customized table actions.
 void init()
          This method initializes the Gui, by setting up the basic tabbedPanes.
protected  void initGraphPanel()
           
protected  void initInputPanel()
           
 void initMapPanel()
           
protected  void initTable()
          setup GUI layout for the data panel including datatable and summary textArea
 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)
           
 double[] normalize(java.lang.String[] raw_x, double[] transformed_x, int row_count)
          calculation needed by PowerTransformed Charts
 void paintMappingLists(int[] lstInd)
           
 void popInfo(java.lang.String noConnectionInfo, java.net.URL isConnectedUrl, java.lang.String target)
           
protected  void removeButtonDependent()
           
protected  void removeButtonDependentAll()
           
protected  void removeButtonIndependent()
           
protected  void removeButtonIndependentAll()
           
 void removeTabbedPane(int index)
          This method removes a component from the tabbed panel.
 void reset()
           
protected  void resetChart()
           
 void resetExample()
           
 void resetMappingList()
           
 void resetTable()
          clear data panel
 void resetTableColumns(int n)
           
protected  void resetTableRows(int n)
           
 void run()
          This method runs the chart thread
 void setApplet(javax.swing.JApplet applet)
           
protected  void setChart()
           
 void setChoice(java.lang.String choice)
           
 void setDataTable(java.lang.String input)
           
 void setIsDemo(boolean in)
           
 void setJTable(SOCRBinned2DData data)
           
protected  void setJTableAt()
           
 void setMapping()
           
 void setStopNow(boolean b)
          This method defines the boolean variable that stops the process 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 setTablePane()
           
 void setTitle(java.lang.String title)
           
protected  void setValueField()
           
 void setView(java.lang.String tabName)
           
 void setXLabel(java.lang.String label)
           
 void setYLabel(java.lang.String label)
           
 void setZLabel(java.lang.String label)
           
protected  void showError(java.lang.String message)
           
 void showMessageDialog(java.lang.String m)
          make the content of the popup dialog highlightable
 void stop()
          This method stops the chart thread
 void update()
           
 void updateExample(ChartExampleData example)
           
 void updateStatus()
          update the content displayed in the right-buttom status panel
 void updateStatus(java.lang.String msg)
          update the status panel's content with the provided message
 void updateStatus(java.net.URL sourceURL)
          update the status panel's content using the given html page
 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

TEST_API

protected static final boolean TEST_API
See Also:
Constant Field Values

CLEAR_BUTTON

protected boolean CLEAR_BUTTON

SHOW_STATUS_TEXTAREA

protected boolean SHOW_STATUS_TEXTAREA

SHOW_MAP_PANEL

protected boolean SHOW_MAP_PANEL

CHART_SIZE_X

protected final int CHART_SIZE_X
See Also:
Constant Field Values

CHART_SIZE_Y

protected final int CHART_SIZE_Y
See Also:
Constant Field Values

EXAMPLE

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

DOCHART

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

CLEAR

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

TEST

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

DATA

public static final java.lang.String DATA
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

INPUT

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

view

protected java.lang.String view

parentApplet

protected javax.swing.JApplet parentApplet

inputFileType

protected int inputFileType

ADD

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

REMOVE

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

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

DELIMITERS

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

hasExample

protected boolean hasExample

chartTitle

protected java.lang.String chartTitle

xLabel

protected java.lang.String xLabel

yLabel

protected java.lang.String yLabel

zLabel

protected java.lang.String zLabel

isDemo

protected boolean isDemo

useStaticExample

protected boolean useStaticExample

exampleStaticAction

protected javax.swing.Action exampleStaticAction

onlineDescription

protected java.lang.String onlineDescription

onlineHelp

protected java.lang.String onlineHelp

computeAction

protected javax.swing.Action computeAction

testAction

protected javax.swing.Action testAction

clearAction

protected javax.swing.Action clearAction

userDataAction

protected javax.swing.Action userDataAction

fileLoadAction

protected javax.swing.Action fileLoadAction

printError

protected boolean printError

outputFontFace

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

outputFontSize

protected static int outputFontSize

chartDescription

protected java.lang.String chartDescription

tabbedPaneCount

protected int tabbedPaneCount

selectedInd

public int selectedInd

dataTable

public javax.swing.JTable dataTable

headerTable

public javax.swing.JTable headerTable

dataObject

public java.lang.Object[][] dataObject

headerDataObject

public java.lang.Object[][] headerDataObject

dataText

protected java.lang.String dataText

columnNumber

protected int columnNumber

rowNumber

protected int rowNumber

columnNames

public java.lang.String[] columnNames

columnModel

protected javax.swing.table.TableColumnModel columnModel

tModel

public javax.swing.table.DefaultTableModel tModel

hModel

public javax.swing.table.DefaultTableModel hModel

dataPanel

protected javax.swing.JPanel dataPanel

graphPanel

protected javax.swing.JPanel graphPanel

mapPanel

protected javax.swing.JPanel mapPanel

bPanel

protected javax.swing.JPanel bPanel

inputPanel

protected javax.swing.JPanel inputPanel

summaryPanel

protected javax.swing.JTextArea summaryPanel

xIndexField

protected javax.swing.JTextField xIndexField

yIndexField

protected javax.swing.JTextField yIndexField

valueField

protected javax.swing.JTextField valueField

listAdded

public javax.swing.JList listAdded

listDepRemoved

public javax.swing.JList listDepRemoved

listIndepRemoved

public javax.swing.JList listIndepRemoved

addButton1

public javax.swing.JButton addButton1

addButton2

public javax.swing.JButton addButton2

removeButton1

public javax.swing.JButton removeButton1

removeButton2

public javax.swing.JButton removeButton2

INDEX_0

protected static final int INDEX_0
See Also:
Constant Field Values

INDEX_1

protected static final int INDEX_1
See Also:
Constant Field Values

independentLength

protected int independentLength

dependentLength

protected int dependentLength

independentIndex

protected int independentIndex

dependentIndex

protected int dependentIndex

lModelAdded

protected javax.swing.DefaultListModel lModelAdded

lModelDep

protected javax.swing.DefaultListModel lModelDep

lModelIndep

protected javax.swing.DefaultListModel lModelIndep

depMax

protected int depMax

indMax

protected int indMax

independentList

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

independentListCursor

protected int independentListCursor

dependentList

protected java.util.ArrayList<java.lang.Integer> dependentList

dependentListCursor

protected int dependentListCursor

listIndex

protected int[] listIndex

tools1

protected javax.swing.JToolBar tools1

tools2

protected javax.swing.JToolBar tools2

chart

protected java.lang.Thread chart

stopNow

protected boolean stopNow

toolBar

protected javax.swing.JToolBar toolBar

tabbedPanelContainer

public javax.swing.JTabbedPane tabbedPanelContainer

font

public static java.awt.Font font

url

protected java.net.URL url

depLabel

protected javax.swing.JLabel depLabel

indLabel

protected javax.swing.JLabel indLabel

varLabel

protected javax.swing.JLabel varLabel

indepValues

protected java.lang.String[][] indepValues

depValues

protected java.lang.String[][] depValues

dependentHeaders

protected java.lang.String[] dependentHeaders

independentHeaders

protected java.lang.String[] independentHeaders

independentVarLength

protected int independentVarLength

dependentVarLength

protected int dependentVarLength

xyLength

protected int xyLength

mapDep

protected boolean mapDep

mapIndep

protected boolean mapIndep
Constructor Detail

Chart3D

public Chart3D()
Method Detail

init

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

Overrides:
init in class java.applet.Applet

setMapping

public void setMapping()

setTitle

public void setTitle(java.lang.String title)

setXLabel

public void setXLabel(java.lang.String label)

setYLabel

public void setYLabel(java.lang.String label)

setZLabel

public void setZLabel(java.lang.String label)

setDataTable

public void setDataTable(java.lang.String input)

setIsDemo

public void setIsDemo(boolean in)

setView

public void setView(java.lang.String tabName)

setTablePane

protected void setTablePane()

setApplet

public void setApplet(javax.swing.JApplet applet)

updateStatus

public void updateStatus()
update the content displayed in the right-buttom status panel


updateStatus

public void updateStatus(java.net.URL sourceURL)
update the status panel's content using the given html page

Parameters:
sourceURL -

updateStatus

public void updateStatus(java.lang.String msg)
update the status panel's content with the provided message

Parameters:
msg -

getAppletInfo

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

Overrides:
getAppletInfo in class java.applet.Applet

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.


run

public void run()
This method runs the chart thread

Specified by:
run in interface java.lang.Runnable

stop

public void stop()
This method stops the chart thread

Overrides:
stop in class java.applet.Applet

setStopNow

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


update

public void update()

setChoice

public void setChoice(java.lang.String choice)

reset

public void reset()

initTable

protected void initTable()
setup GUI layout for the data panel including datatable and summary textArea


adjustJTable

public void adjustJTable(int row,
                         int column)

setJTable

public void setJTable(SOCRBinned2DData data)

resetTable

public void resetTable()
clear data panel


resetTableRows

protected void resetTableRows(int n)

resetTableColumns

public void resetTableColumns(int n)

appendTableRows

public void appendTableRows(int n)

appendTableColumns

public void appendTableColumns(int n)

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.


resetMappingList

public void resetMappingList()

doChart

public void doChart()

doTest

public void doTest()

initGraphPanel

protected void initGraphPanel()

initInputPanel

protected void initInputPanel()

setJTableAt

protected void setJTableAt()

setValueField

protected void setValueField()

setChart

protected void setChart()

resetChart

protected void resetChart()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

addButtonDependent

protected void addButtonDependent()

removeButtonDependent

protected void removeButtonDependent()

removeButtonDependentAll

protected void removeButtonDependentAll()

addButtonIndependent

protected void addButtonIndependent()

removeButtonIndependent

protected void removeButtonIndependent()

removeButtonIndependentAll

protected void removeButtonIndependentAll()

getOnlineDescription

public java.lang.String getOnlineDescription()
This method returns an online description


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

initMapPanel

public void initMapPanel()

paintMappingLists

public void paintMappingLists(int[] lstInd)

resetExample

public void resetExample()

updateExample

public void updateExample(ChartExampleData example)

getInstance

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

getDisplayPane

public java.awt.Container getDisplayPane()

showError

protected void showError(java.lang.String message)

createActionComponents

protected void createActionComponents(javax.swing.JToolBar toolBar)
add the tabs to the toolbar

Parameters:
toolBar -

getLocalHelp

public java.lang.String getLocalHelp()

getLocalAbout

public java.lang.String getLocalAbout()

getWikiAbout

public java.lang.String getWikiAbout()

getWikiHelp

public java.lang.String getWikiHelp()

adjustmentValueChanged

public void adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
Specified by:
adjustmentValueChanged in interface java.awt.event.AdjustmentListener

getMapping

protected void getMapping()

showMessageDialog

public void showMessageDialog(java.lang.String m)
make the content of the popup dialog highlightable

Parameters:
m -

popInfo

public void popInfo(java.lang.String noConnectionInfo,
                    java.net.URL isConnectedUrl,
                    java.lang.String target)

normalize

public double[] normalize(java.lang.String[] raw_x,
                          double[] transformed_x,
                          int row_count)
calculation needed by PowerTransformed Charts


calculate_power

public double[] calculate_power(java.lang.String[] raw_x,
                                int row_count,
                                double power)

getMin

public double getMin(java.lang.String[] raw,
                     int count)

getMin

public double getMin(double[] raw,
                     int count)

getMax

public double getMax(java.lang.String[] raw,
                     int count)

getMax

public double getMax(double[] raw,
                     int count)

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

getInputFileType

public int getInputFileType()