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