Class SetupPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Comparable<AbstractSetupPanel>, Accessible

public class SetupPanel extends AbstractSetupPanel
This panel controls the configuration of an experiment.

If KOML is in the classpath the experiments can also be saved to XML instead of a binary format.

Version:
$Revision: 15302 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz), Mark Hall (mhall@cs.waikato.ac.nz), FracPete (fracpete at waikato dot ac dot nz)
See Also:
  • Constructor Details

    • SetupPanel

      public SetupPanel(Experiment exp)
      Creates the setup panel with the supplied initial experiment.
      Parameters:
      exp - a value of type 'Experiment'
    • SetupPanel

      public SetupPanel()
      Creates the setup panel with no initial experiment.
  • Method Details

    • terminate

      public void terminate()
      Terminates this panel, which means, in the case of this panel, that it sets all references to associated JFrame objects to null.
      Specified by:
      terminate in class AbstractSetupPanel
    • getName

      public String getName()
      Returns the name of the panel.
      Specified by:
      getName in class AbstractSetupPanel
      Returns:
      the name
    • setModePanel

      public void setModePanel(SetupModePanel modePanel)
      Sets the panel used to switch between simple and advanced modes.
      Specified by:
      setModePanel in class AbstractSetupPanel
      Parameters:
      modePanel - the panel
    • setExperiment

      public boolean setExperiment(Experiment exp)
      Sets the experiment to configure.
      Specified by:
      setExperiment in class AbstractSetupPanel
      Parameters:
      exp - a value of type 'Experiment'
      Returns:
      true if experiment could be configured, false otherwise
    • getExperiment

      public Experiment getExperiment()
      Gets the currently configured experiment.
      Specified by:
      getExperiment in class AbstractSetupPanel
      Returns:
      the currently configured experiment.
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener l)
      Adds a PropertyChangeListener who will be notified of value changes.
      Specified by:
      addPropertyChangeListener in class AbstractSetupPanel
      Parameters:
      l - a value of type 'PropertyChangeListener'
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener l)
      Removes a PropertyChangeListener.
      Specified by:
      removePropertyChangeListener in class AbstractSetupPanel
      Parameters:
      l - a value of type 'PropertyChangeListener'
    • main

      public static void main(String[] args)
      Tests out the experiment setup from the command line.
      Parameters:
      args - arguments to the program.
    • cleanUpAfterSwitch

      public void cleanUpAfterSwitch()
      Hook method for cleaning up the interface after a switch.
      Overrides:
      cleanUpAfterSwitch in class AbstractSetupPanel