Class Animation

All Implemented Interfaces:
RMAnimator.Listener, EventListener

public class Animation extends SwingOwner implements RMAnimator.Listener
This class provides Swing UI editing for shape animation.
  • Constructor Details

    • Animation

      public Animation()
  • Method Details

    • initUI

      protected void initUI()
      Initialize UI for this inspector.
      Overrides:
      initUI in class UIOwner<SwingEvent,JComponent>
    • updateInterpolatorCombobox

      public void updateInterpolatorCombobox()
      Populates the combobox with all the interpolator names if necessary.
    • resetUI

      public void resetUI()
      Updates the UI panel controls from the current selection.
      Overrides:
      resetUI in class UIOwner<SwingEvent,JComponent>
    • respondUI

      public void respondUI(SwingEvent anEvent)
      Responds to changes from UI controls.
      Overrides:
      respondUI in class UIOwner<SwingEvent,JComponent>
    • setTime

      public void setTime(int aTime)
      Sets the time of the current animator to the given time.
    • setTimeForScopedKeyFrame

      public void setTimeForScopedKeyFrame(int aTime, Integer aScope)
      Sets the time of the current animator to the given time.
    • setTimeSeconds

      public void setTimeSeconds(float aTime)
      Sets the time of the current animator to the given time.
    • delete

      public void delete()
      Handles delete of key frame(s) or change(s).
    • animatorStarted

      public void animatorStarted(RMAnimator anAnimator)
      Animator Listener method.
      Specified by:
      animatorStarted in interface RMAnimator.Listener
    • animatorStopped

      public void animatorStopped(RMAnimator anAnimator)
      Specified by:
      animatorStopped in interface RMAnimator.Listener
    • animatorUpdated

      public void animatorUpdated(RMAnimator anAnimator)
      Animator Listener method : updates time slider and time text when animator has been updated.
      Specified by:
      animatorUpdated in interface RMAnimator.Listener
    • getWindowTitle

      public String getWindowTitle()
      Returns the name for this inspector.