Package ej.widget.motion
Class MotionAnimation
- java.lang.Object
-
- ej.widget.motion.MotionAnimation
-
public class MotionAnimation extends java.lang.Object
A motion animation allows to associate aMotion
and anAnimation
.
-
-
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.
-
-
-
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.
-
-