Class AbstractMovement
- java.lang.Object
-
- org.eclipse.nebula.cwt.animation.movement.AbstractMovement
-
- All Implemented Interfaces:
IMovement
- Direct Known Subclasses:
BounceOut,ElasticOut,ExpoOut,LinearInOut,SinusDecreaseVariation,SinusVariation
public abstract class AbstractMovement extends java.lang.Object implements IMovement
Abstract implementation of IMovement.
-
-
Constructor Summary
Constructors Constructor Description AbstractMovement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract doublegetValue(double step)Get value at step 'step'voidinit(double minValue, double maxValue, int steps)Set up the movement.
-
-
-
Method Detail
-
getValue
public abstract double getValue(double step)
Description copied from interface:IMovementGet value at step 'step'
-
init
public void init(double minValue, double maxValue, int steps)Description copied from interface:IMovementSet up the movement. with init( 0, 1, 50), it will take 50 steps to go from 0 to 1. There is no garanties that getValue will return only values between min and max. The only thing you know is : getValue( 0 ) = 0 and getValue( 50 ) = 1
-
-