com.yost.util
Interface AnimationExecutor.Task

Enclosing class:
AnimationExecutor

public static interface AnimationExecutor.Task

The animation task to be run.


Method Summary
 void run(boolean isQueueEmpty, Runnable taskIsDone)
          Run a task in the Event thread.
 void thereAreTasksWaiting()
          Called to notify the task that at least one task is now waiting in the executor's queue.
 

Method Detail

run

void run(boolean isQueueEmpty,
         Runnable taskIsDone)
Run a task in the Event thread.

Parameters:
isQueueEmpty - the executor's queue is empty at the time of this call
taskIsDone - Runnable that must be called when the task is done

thereAreTasksWaiting

void thereAreTasksWaiting()
Called to notify the task that at least one task is now waiting in the executor's queue. If an animation is in progress, it should probably be cut short.