|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.valuemanagers.ValueInterpolater
public class ValueInterpolater
Interpolates a float value along time.
Nested Class Summary | |
---|---|
static class |
ValueInterpolater.BoundaryType
|
Constructor Summary | |
---|---|
ValueInterpolater(ValueInterpolater.BoundaryType boundaryType,
float minValue,
float maxValue,
float startValue,
float speed)
|
Method Summary | |
---|---|
ValueInterpolater.BoundaryType |
getBoundaryType()
Gets the used ValueInterpolater.BoundaryType . |
float |
getMaxValue()
Gets the maxmum value. |
float |
getMinValue()
Gets the minimum value. |
float |
getSpeed()
Gets the speed. |
float |
getStartValue()
Gets the start value (set by the init(long) method). |
float |
getValue()
Gets the current value. |
void |
init(long nanoTime)
Initializes/resets the ManagedValue . |
void |
update(long nanoTime)
|
void |
update(long nanoTime,
long frameCounter,
boolean force)
Invokes the implementation specific update code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueInterpolater(ValueInterpolater.BoundaryType boundaryType, float minValue, float maxValue, float startValue, float speed)
Method Detail |
---|
public final ValueInterpolater.BoundaryType getBoundaryType()
ValueInterpolater.BoundaryType
.
ValueInterpolater.BoundaryType
.public final float getMinValue()
public final float getMaxValue()
public final float getStartValue()
init(long)
method).
public final float getSpeed()
public final float getValue()
public void init(long nanoTime)
ManagedValue
.
init
in interface ManagedValue
nanoTime
- the starting time stamppublic void update(long nanoTime, long frameCounter, boolean force)
update
in interface ManagedValue
nanoTime
- the current timestamp in nano secondsframeCounter
- the current frame indexforce
- force clock to true
.public final void update(long nanoTime)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |