public class ElasticEaseInMotion extends AbstractElasticMotion
Constructor and Description |
---|
ElasticEaseInMotion(int start,
int stop,
long maxDuration)
Creates an elastic motion for a move from start to stop.
|
Modifier and Type | Method and Description |
---|---|
protected int |
computeCurrentValue(long currentTime)
Computes current value.
|
easeIn, easeOut, isFinished
getCurrentValue, getDuration, getStartValue, getStopValue, getValue, isFinished, start
public ElasticEaseInMotion(int start, int stop, long maxDuration)
start
- the start value.stop
- the stop value.maxDuration
- the maximum duration of the motion.protected int computeCurrentValue(long currentTime)
AbstractMotion
computeCurrentValue
in class AbstractMotion
currentTime
- the elapsed time since the beginning.