|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.stat.SOCR.core.SOCRValueSettable edu.ucla.stat.SOCR.core.MultiplePartsPanel
public class MultiplePartsPanel
This class will be used for game and experiment, basically it has three parts. the upmost part is a simulated toolbar, which is populated by addTool(). It also can contain multiple toolbars, you can call addToolBar() to add more. The middle part is for graph, you can add your component there by addGraph(); The lowest part is for TextArea, you can add your component there by addTable()
Nested Class Summary | |
---|---|
static class |
MultiplePartsPanel.SOCRToolBar
|
Field Summary | |
---|---|
static javax.swing.JApplet |
applet
|
protected java.lang.String |
fName
|
protected javax.swing.JPanel |
graphs
|
protected javax.swing.JPanel |
mainPane
|
protected SOCRApplet.SOCRTextArea |
recordTable
|
protected javax.swing.JPanel |
tables
|
protected MultiplePartsPanel.SOCRToolBar |
toolbar
|
protected MultiplePartsPanel.SOCRToolBar |
toolbar2
|
protected javax.swing.JPanel |
toolbars
|
Constructor Summary | |
---|---|
MultiplePartsPanel()
|
Method Summary | |
---|---|
void |
addGraph(java.awt.Component c)
This method adds a new component usually a graph to the center panel. |
void |
addTable(java.awt.Component c)
This method adds a new component usually a text areas to the bottom panel |
void |
addTool(java.awt.Component c)
This method adds a new component (such as a button) to the main toolbar. |
void |
addTool2(java.awt.Component c)
This method adds a new component (such as a button) to the second toolbar. |
void |
addToolbar(java.awt.Component c)
to add the second tool bar |
java.lang.String |
format(double d)
|
javax.swing.JComponent |
getMainPanel()
|
java.lang.String |
getName()
|
javax.swing.JTextArea |
getRecordTable()
This method returns the record table |
javax.swing.JComponent |
getTextPanel()
|
void |
mouseClicked(java.awt.event.MouseEvent event)
|
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)
|
void |
mousePressed(java.awt.event.MouseEvent event)
|
void |
mouseReleased(java.awt.event.MouseEvent event)
|
static void |
play(java.lang.String audiofile)
|
void |
removeToolbar()
|
void |
setApplet(javax.swing.JApplet a)
|
void |
setName(java.lang.String name)
|
void |
update(java.util.Observable o,
java.lang.Object arg)
|
Methods inherited from class edu.ucla.stat.SOCR.core.SOCRValueSettable |
---|
createComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static javax.swing.JApplet applet
protected javax.swing.JPanel mainPane
protected MultiplePartsPanel.SOCRToolBar toolbar
protected MultiplePartsPanel.SOCRToolBar toolbar2
protected javax.swing.JPanel toolbars
protected javax.swing.JPanel graphs
protected javax.swing.JPanel tables
protected SOCRApplet.SOCRTextArea recordTable
protected java.lang.String fName
Constructor Detail |
---|
public MultiplePartsPanel()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The fName to set.public javax.swing.JComponent getMainPanel()
public void addToolbar(java.awt.Component c)
public void removeToolbar()
public void addTable(java.awt.Component c)
public void addGraph(java.awt.Component c)
public void addTool(java.awt.Component c)
public void addTool2(java.awt.Component c)
public javax.swing.JTextArea getRecordTable()
public void setApplet(javax.swing.JApplet a)
public static void play(java.lang.String audiofile)
public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent event)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent event)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
public java.lang.String format(double d)
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
public javax.swing.JComponent getTextPanel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |