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

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

public class OneTime
extends Object
implements Interpolator


Constructor Summary
OneTime()
           
 
Method Summary
 float getValue(long lengthParam, long timePassed)
          get a new 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

OneTime

public OneTime()
Method Detail

initialize

public final void initialize(Properties parameter)
Description copied from interface: Interpolator
initialize.

Specified by:
initialize in interface Interpolator
Parameters:
parameter - Properties used to parameterize this class

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)
Description copied from interface: Interpolator
get a new value.

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


Copyright © 2012. All Rights Reserved.