|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.loop.opscheduler.Interval
public class Interval
You can register an instance of this class to ExtRenderLoop. Each time this interval is hit the appropriate method and listeners will be called.
| Constructor Summary | |
|---|---|
Interval(long timeInterval)
Creates a new Interval instance. |
|
Interval(long timeInterval,
java.lang.String name)
Creates a new Interval instance. |
|
| Method Summary | |
|---|---|
boolean |
check(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Checks wheather this interval is hit. |
long |
getInterval()
|
java.lang.String |
getName()
|
boolean |
isAlive()
If false, the interval will be removed from the ExtRenderLoop |
void |
kill()
Marks this instance to be removed from the ExtRenderLoop. |
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. |
void |
revive()
Revives the Interval to be reused. |
void |
setInterval(long timeInterval)
Sets the time interval (in microseconds) for this instance. |
void |
setName(java.lang.String name)
Sets this instance's name. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Interval(long timeInterval,
java.lang.String name)
timeInterval - the time interval for this instance (in microseconds)name - this instance's namepublic Interval(long timeInterval)
timeInterval - the time interval for this instance (in microseconds)| Method Detail |
|---|
public void setInterval(long timeInterval)
timeInterval - the new time interval (in microseconds)public long getInterval()
public void setName(java.lang.String name)
setName in interface org.jagatoo.datatypes.NamableObjectname - the new namepublic java.lang.String getName()
getName in interface org.jagatoo.datatypes.NamedObjectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isAlive()
public void kill()
public void revive()
protected void onIntervalStarted(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
gameTime - frameTime - timingMode -
protected void onIntervalHit(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
gameTime - frameTime - timingMode -
public boolean check(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
gameTime - the current gameTimeframeTime - the time needed to render the last frametimingMode -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||