public interface Motion
| Modifier and Type | Method and Description | 
|---|---|
| int | getCurrentValue()Computes the current value of the motion. | 
| long | getDuration()Gets the motion duration. | 
| int | getStartValue()Gets the start value of the motion. | 
| int | getStopValue()Gets the stop value of the motion. | 
| int | getValue(long elapsed)Gets the value of the motion for a specific elapsed time. | 
| boolean | isFinished()Gets whether the motion is finished or not. | 
| void | start()Starts (or starts again) the motion. | 
int getCurrentValue()
If the motion is finished, returns the stop value.
isFinished()long getDuration()
int getStartValue()
int getStopValue()
int getValue(long elapsed)
elapsed - the absolute elapsed time.boolean isFinished()
A motion is finished when the current value is the stop one.
true if the motion is finished, false otherwise.void start()