de.lessvoid.nifty.tools.time.interpolator
Class OneTime
java.lang.Object
de.lessvoid.nifty.tools.time.interpolator.OneTime
- All Implemented Interfaces:
- Interpolator
public class OneTime
- extends Object
- implements Interpolator
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 |
OneTime
public OneTime()
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 mstimePassed
- time already passed in ms
- Returns:
- the value
Copyright © 2011. All Rights Reserved.