|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.tools.time.interpolator.LinearTime
public class LinearTime
Interpolates a value linear from 0.0 to 1.0 with the given time parameters.
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 |
---|
public LinearTime()
Method Detail |
---|
public void initialize(Properties parameter)
initialize
in interface Interpolator
parameter
- Propertiespublic void start()
Interpolator
start
in interface Interpolator
public final float getValue(long lengthParam, long timePassed)
getValue
in interface Interpolator
lengthParam
- max length in mstimePassed
- time already passed in ms
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |