|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--weka.gui.experiment.RunPanel
This panel controls the running of an experiment.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected Experiment |
m_Exp
The experiment to run |
protected LogPanel |
m_Log
|
protected Thread |
m_RunThread
The thread running the experiment |
protected JButton |
m_StartBut
Click to start running the experiment |
protected JButton |
m_StopBut
Click to signal the running experiment to halt |
protected static String |
NOT_RUNNING
The message displayed when no experiment is running |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
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 | |
RunPanel()
Creates the run panel with no initial experiment. |
|
RunPanel(Experiment exp)
Creates the panel with the supplied initial experiment. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
Controls starting and stopping the experiment. |
protected void |
logMessage(String message)
Sends the supplied message to the log panel log area. |
static void |
main(String[] args)
Tests out the run panel from the command line. |
void |
setExperiment(Experiment exp)
Sets the experiment the panel operates on. |
protected void |
statusMessage(String message)
Sends the supplied message to the log panel status line. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final String NOT_RUNNING
protected JButton m_StartBut
protected JButton m_StopBut
protected LogPanel m_Log
protected Experiment m_Exp
protected Thread m_RunThread
Constructor Detail |
public RunPanel()
public RunPanel(Experiment exp)
exp
- a value of type 'Experiment'Method Detail |
public void setExperiment(Experiment exp)
exp
- a value of type 'Experiment'public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- a value of type 'ActionEvent'protected void logMessage(String message)
message
- the message to logprotected void statusMessage(String message)
message
- the status messagepublic static void main(String[] args)
args
- may contain options specifying an experiment to run.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |