org.eclipse.nebula.animation.movement
Interface IMovement

All Known Implementing Classes:
AbstractMovement, BounceOut, ElasticOut, ExpoOut, LinearInOut, QuartIn, QuartInOut, QuartOut, SinusDecreaseVariation, SinusVariation

public interface IMovement

Interface for movement implementations. Can be linear, exponential, ...

Author:
Nicolas Richeton

Method Summary
 double getValue(double step)
          Get value at step 'step'
 void init(double min, double max, int steps)
          Set up the movement. with init( 0, 1, 50), it will take 50 steps to go from 0 to 1.
 

Method Detail

init

void init(double min,
          double max,
          int steps)
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

Parameters:
min - - min (start) value
max - - max( end ) value
steps - - number of steps

getValue

double getValue(double step)
Get value at step 'step'

Parameters:
step -
Returns:
current value.


Copyright © 2011. All Rights Reserved.