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.

$Revision: 15302 $
Len Trigg (, Mark Hall (, 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.
      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
      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
      modePanel - the panel
    • setExperiment

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

      public Experiment getExperiment()
      Gets the currently configured experiment.
      Specified by:
      getExperiment in class AbstractSetupPanel
      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
      l - a value of type 'PropertyChangeListener'
    • removePropertyChangeListener

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

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

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