Class MotionAnimation


  • public class MotionAnimation
    extends Object
    A motion animation allows to associate a Motion and an Animation.
    • Constructor Detail

      • MotionAnimation

        public MotionAnimation​(Animator animator,
                               Motion motion,
                               MotionAnimationListener listener)
        Creates a motion animation.
        Parameters:
        animator - the animator instance with which the animation will be executed.
        motion - the motion of the animation.
        listener - the listener to notify during the animation.
    • Method Detail

      • start

        public void start()
        Starts (or restarts) this motion animation.
      • stop

        public void stop()
        Stops this motion animation.
        Throws:
        IllegalStateException - if this method is called in an other thread than the MicroUI thread or during an animation tick.