|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.loop.opscheduler.Interval
org.xith3d.schedops.properties.ValueInterpolator
public abstract class ValueInterpolator
This Interval interpolates a value over a period of time.
| Constructor Summary | |
|---|---|
ValueInterpolator(long totalTime)
|
|
ValueInterpolator(long totalTime,
float startVal,
float endVal)
|
|
ValueInterpolator(long totalTime,
long resolution)
|
|
ValueInterpolator(long totalTime,
long resolution,
float startVal,
float endVal)
|
|
| Method Summary | |
|---|---|
protected void |
applyNormValue(float normValue)
This method is invoked each time slice. |
protected abstract void |
applyValue(float value)
This method is invoked each time slice. |
float |
getDeltaValue()
|
float |
getEndValue()
|
long |
getStartTime()
|
float |
getStartValue()
|
long |
getTotalTime()
|
protected void |
onInterpolationFinished()
This method is invoked, when the interpolation has reached its final value. |
protected void |
onIntervalHit(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
This even is fired internally, when the Interval was hit. |
protected void |
onIntervalStarted(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
This even is fired internally, when the Interval is started. |
| Methods inherited from class org.xith3d.loop.opscheduler.Interval |
|---|
check, getInterval, getName, isAlive, kill, revive, setInterval, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValueInterpolator(long totalTime,
long resolution,
float startVal,
float endVal)
public ValueInterpolator(long totalTime,
float startVal,
float endVal)
public ValueInterpolator(long totalTime,
long resolution)
public ValueInterpolator(long totalTime)
| Method Detail |
|---|
public final long getStartTime()
public final long getTotalTime()
public final float getStartValue()
public final float getEndValue()
public final float getDeltaValue()
protected void onIntervalStarted(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
onIntervalStarted in class Intervalprotected abstract void applyValue(float value)
value - protected void applyNormValue(float normValue)
normValue - the interpolation factor (0.0 .. 1.0)protected void onInterpolationFinished()
protected void onIntervalHit(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
onIntervalHit in class Interval
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||