de.lessvoid.nifty.tools.time.interpolator
Class LinearTime

java.lang.Object
  extended by de.lessvoid.nifty.tools.time.interpolator.LinearTime
All Implemented Interfaces:
Interpolator

public class LinearTime
extends Object
implements Interpolator

Interpolates a value linear from 0.0 to 1.0 with the given time parameters.

Author:
void

Constructor Summary
LinearTime()
           
 
Method Summary
 float getValue(long lengthParam, long timePassed)
          get value.
 void initialize(Properties parameter)
          initialize.
 void start()
          In case the Interpolator wants to set some value when started.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearTime

public LinearTime()
Method Detail

initialize

public void initialize(Properties parameter)
initialize.

Specified by:
initialize in interface Interpolator
Parameters:
parameter - Properties

start

public void start()
Description copied from interface: Interpolator
In case the Interpolator wants to set some value when started.

Specified by:
start in interface Interpolator

getValue

public final float getValue(long lengthParam,
                            long timePassed)
get value.

Specified by:
getValue in interface Interpolator
Parameters:
lengthParam - max length in ms
timePassed - time already passed in ms
Returns:
calculated value


Copyright © 2012. All Rights Reserved.