Class SetupPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class SetupPanel extends JPanel
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: 7059 $
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

    • setExperiment

      public void setExperiment(Experiment exp)
      Sets the experiment to configure.
      Parameters:
      exp - a value of type 'Experiment'
    • getExperiment

      public Experiment getExperiment()
      Gets the currently configured experiment.
      Returns:
      the currently configured experiment.
    • addPropertyChangeListener

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

      public void removePropertyChangeListener(PropertyChangeListener l)
      Removes a PropertyChangeListener.
      Overrides:
      removePropertyChangeListener in class Component
      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.