Class AbstractMovement
java.lang.Object
org.eclipse.nebula.animation.movement.AbstractMovement
- All Implemented Interfaces:
IMovement
- Direct Known Subclasses:
BounceOut
,ElasticOut
,ExpoOut
,LinearInOut
,QuartIn
,QuartInOut
,QuartOut
,SinusDecreaseVariation
,SinusVariation
public abstract class AbstractMovement extends java.lang.Object implements IMovement
Abstract implementation of IMovement.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractMovement()
-
Method Summary
-
Field Details
-
Constructor Details
-
AbstractMovement
public AbstractMovement()
-
-
Method Details
-
getValue
public abstract double getValue(double step)Description copied from interface:IMovement
Get value at step 'step'- Specified by:
getValue
in interfaceIMovement
- Returns:
- current value.
- See Also:
IMovement.getValue(double)
-
init
public void init(double minValue, double maxValue, int steps)Description copied from interface:IMovement
Set 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- Specified by:
init
in interfaceIMovement
- Parameters:
minValue
- - min (start) valuemaxValue
- - max( end ) valuesteps
- - number of steps- See Also:
IMovement.init(double, double, int)
-