Class AnimationControl

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, Control, MainFrame, AppFrame, Hidable
Direct Known Subclasses:
SimulationControl

public class AnimationControl extends OSPControl
A GUI consisting of an input text area, a message area, and various buttons to initialize and control an Animation.
Version:
1.0
Author:
Wolfgang Christian, Joshua Gould
See Also:
  • Constructor Details

    • AnimationControl

      public AnimationControl(Animation animation)
      AnimationControl constructor.
      Parameters:
      animation - the animation for this AnimationControl
  • Method Details

    • refreshGUI

      protected void refreshGUI()
      Refreshes the user interface in response to display changes such as Language.
      Overrides:
      refreshGUI in class OSPControl
    • dispose

      public void dispose()
      Disposes all resources.
      Overrides:
      dispose in class OSPFrame
    • calculationDone

      public void calculationDone(String message)
      Signals the control that the animation has completed. The control should reset itself in preparation for a new animation. The given message is printed in the message area.
      Specified by:
      calculationDone in interface Control
      Overrides:
      calculationDone in class OSPControl
      Parameters:
      message -
    • getLoader

      public static XML.ObjectLoader getLoader()
      Returns an XML.ObjectLoader to save and load data for this object.
      Returns:
      the object loader
    • createApp

      public static AnimationControl createApp(Animation model)
      Creates an animation control and establishes communication between the control and the model.
      Parameters:
      model - Animation
      Returns:
      AnimationControl
    • createApp

      public static AnimationControl createApp(Animation model, String[] xml)
      Creates a animation control and establishes communication between the control and the model. Initial parameters are set using the xml data.
      Parameters:
      model - Animation
      xml - String[]
      Returns:
      AnimationControl