Class ExpoOut
- java.lang.Object
-
- org.eclipse.nebula.animation.movement.AbstractMovement
-
- org.eclipse.nebula.animation.movement.ExpoOut
-
- All Implemented Interfaces:
IMovement
public class ExpoOut extends AbstractMovement
Moves fast at first then slow down until it reaches the max value.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) floatincrement-
Fields inherited from class org.eclipse.nebula.animation.movement.AbstractMovement
duration, max, min
-
-
Constructor Summary
Constructors Constructor Description ExpoOut()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetValue(double step)Get value at step 'step'voidinit(double min, double max, int steps)Set up the movement.
-
-
-
Method Detail
-
getValue
public double getValue(double step)
Description copied from interface:IMovementGet value at step 'step'- Specified by:
getValuein interfaceIMovement- Specified by:
getValuein classAbstractMovement- Returns:
- current value.
- See Also:
org.sharemedia.gui.viewers.impl.gl.IMovement#getValue(int)
-
init
public void init(double min, double max, 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- Specified by:
initin interfaceIMovement- Overrides:
initin classAbstractMovement- Parameters:
min- - min (start) valuemax- - max( end ) valuesteps- - number of steps- See Also:
org.sharemedia.gui.viewers.impl.gl.IMovement#init(float, float, int)
-
-