Class AnimationPropertiesDialog

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, RootPaneContainer, WindowConstants

public class AnimationPropertiesDialog extends JDialog implements ActionListener, ChangeListener
A widget to get properties for animation from the user. A popup widget to set animation forward looping time intervals (typically 0.5 sec), backward looping time intervals (typically 0.5 sec), looping direction (forward or backward), first dwell time (time viewing first frame, typically 0.5 second), last dwell time (time viewing last frame, typically 1.5 second). In future plan to provide a graphic list of frames to allow user to toggle some off or "out of loop".

Invoked by an AnimationWidget object.

Version:
$Revision: 1.83 $
Author:
IDV Development Team
See Also:
  • Constructor Details

    • AnimationPropertiesDialog

      public AnimationPropertiesDialog(AnimationWidget animationWidget, JFrame parent, AnimationBoxPanel boxPanel)
      Constuctor with input string naming for what data
      Parameters:
      animationWidget - the AnimationWidget
      parent - the original parent JFrame
      boxPanel - The box panel
  • Method Details

    • popupPredefinedMenu

      public void popupPredefinedMenu()
      Popup predefined menu
    • predefinedDataRange

      public void predefinedDataRange()
      Set up the predefined data range
    • predefinedRealTime

      public void predefinedRealTime()
      Set up the predefined real time
    • applyAnimationSetProperties

      protected boolean applyAnimationSetProperties()
      Apply the properties
      Returns:
      success
    • setVisible

      public void setVisible(boolean visible)
      Show or hide the properties dialog. Also, if visible is true, updateTimeline() is called.
      Overrides:
      setVisible in class Dialog
      Parameters:
      visible - if true, call updateTimeline() and makes the properties dialog visible. Otherwise hides the properties dialog.
    • checkEnabled

      protected void checkEnabled()
      Enable/disable the gui
    • updateAnimationSetProperties

      protected void updateAnimationSetProperties()
      Update the gui
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Something changed
      Specified by:
      stateChanged in interface ChangeListener
      Parameters:
      e - event
    • actionPerformed

      public void actionPerformed(ActionEvent evt)
      Public due to implementing of ActionListener
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      evt - action event
    • setInfo

      protected void setInfo(AnimationInfo transfer)
      set the gui widgets value.
      Parameters:
      transfer - The info to use
    • getBoxPanel

      public AnimationBoxPanel getBoxPanel()
      Get the box panel
      Returns:
      The box panel