Class MotionAnimation


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

      Constructors 
      Constructor Description
      MotionAnimation​(ej.mwt.animation.Animator animator, ej.motion.Motion motion, MotionAnimationListener listener)
      Creates a motion animation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void start()
      Starts (or restarts) this motion animation.
      void stop()
      Stops this motion animation.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MotionAnimation

        public MotionAnimation​(ej.mwt.animation.Animator animator,
                               ej.motion.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:
        java.lang.IllegalStateException - if this method is called in an other thread than the MicroUI thread or during an animation tick.