public class QuadMotionManager extends Object implements MotionManager
Constructor and Description |
---|
QuadMotionManager() |
Modifier and Type | Method and Description |
---|---|
Motion |
easeIn(int start,
int stop,
long duration)
Moves from start to stop with a time constraint.
|
Motion |
easeInOut(int start,
int stop,
long duration)
Moves from start to stop with a time constraint.
|
Motion |
easeOut(int start,
int stop,
long duration)
Moves from start to stop with a time constraint.
|
Motion |
toss(int start,
int min,
int max,
float initialSpeed,
long duration)
Moves from start with an initial speed.
|
public Motion easeIn(int start, int stop, long duration)
MotionManager
easeIn
in interface MotionManager
start
- the start value.stop
- the stop value.duration
- the duration of the motion.public Motion easeInOut(int start, int stop, long duration)
MotionManager
easeInOut
in interface MotionManager
start
- the start value.stop
- the stop value.duration
- the duration of the motion.public Motion easeOut(int start, int stop, long duration)
MotionManager
easeOut
in interface MotionManager
start
- the start value.stop
- the stop value.duration
- the duration of the motion.public Motion toss(int start, int min, int max, float initialSpeed, long duration)
MotionManager
toss
in interface MotionManager
start
- the start value.min
- the minimum bound.max
- the maximum bound.initialSpeed
- the initial move speed (in pixels/second).duration
- the duration of the motion.