Class ExpoOut

All Implemented Interfaces:

public class ExpoOut
extends AbstractMovement
Implementation of an exponential movement. The object will move quickly at first, and slow down until it reaches the max value.
  • Field Summary

    Modifier and Type Field Description
    (package private) float increment  

    Fields inherited from class org.eclipse.nebula.cwt.animation.movement.AbstractMovement

    duration, max, min
  • Constructor Summary

    Constructor Description
  • Method Summary

    Modifier and Type Method Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getValue

      public double getValue​(double step)
      Description copied from interface: IMovement
      Get value at step 'step'
      Specified by:
      getValue in interface IMovement
      Specified by:
      getValue in class AbstractMovement
      current value.
    • init

      public void init​(double min, double max, 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 interface IMovement
      init in class AbstractMovement
      min - - min (start) value
      max - - max( end ) value
      steps - - number of steps