com.badlogic.gdx.utils
Class Timer.Task

java.lang.Object
  extended by com.badlogic.gdx.utils.Timer.Task
All Implemented Interfaces:
Runnable
Enclosing class:
Timer

public abstract static class Timer.Task
extends Object
implements Runnable

Runnable with a cancel method.

Author:
Nathan Sweet
See Also:
Timer

Constructor Summary
Timer.Task()
           
 
Method Summary
 void cancel()
          Cancels the task.
 boolean isScheduled()
          Returns true if this task is scheduled to be executed in the future by a timer.
abstract  void run()
          If this is the last time the task will be ran or the task is first cancelled, it may be scheduled again in this method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer.Task

public Timer.Task()
Method Detail

run

public abstract void run()
If this is the last time the task will be ran or the task is first cancelled, it may be scheduled again in this method.

Specified by:
run in interface Runnable

cancel

public void cancel()
Cancels the task. It will not be executed until it is scheduled again. This method can be called at any time.


isScheduled

public boolean isScheduled()
Returns true if this task is scheduled to be executed in the future by a timer.



Copyright © 2013. All Rights Reserved.