Class DefaultAnimator

java.lang.Object
org.monte.media.player.DefaultAnimator
All Implemented Interfaces:
Runnable, Animator

public class DefaultAnimator extends Object implements Animator
DefaultAnimator.
Author:
Werner Randelshofer  @version $Id$
  • Field Details

  • Constructor Details

    • DefaultAnimator

      public DefaultAnimator()
      Creates a new instance.
  • Method Details

    • setLock

      public void setLock(Object lock)
      Set the lock object, on which the animator synchronizes while animating the interpolators.
      Specified by:
      setLock in interface Animator
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface Animator
    • start

      public void start()
      Specified by:
      start in interface Animator
    • stop

      public void stop()
      Specified by:
      stop in interface Animator
    • dispatch

      public void dispatch(Interpolator interpolator)
      Dispatches an interpolator for the animation thread. This will launch the animation thread if it is not already active.
      Specified by:
      dispatch in interface Animator
    • animateStep

      public void animateStep()
      Specified by:
      animateStep in interface Animator
    • run

      public void run()
      Specified by:
      run in interface Animator
      Specified by:
      run in interface Runnable
    • addChangeListener

      public void addChangeListener(ChangeListener listener)
      Specified by:
      addChangeListener in interface Animator
    • removeChangeListener

      public void removeChangeListener(ChangeListener listener)
      Specified by:
      removeChangeListener in interface Animator
    • fireStateChanged

      protected void fireStateChanged()
      Notify all listeners that have registered interest for notification on this event type.
    • isSynchronous

      public boolean isSynchronous()
      Specified by:
      isSynchronous in interface Animator