All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface quicktime.app.time.Taskable

public interface Taskable
An object can implement this interface to have a managed periodic call of the task method from the TaskThread class


Variable Index

 o tasker
The "system" creates a default TaskThread for all taskable objects.

Method Index

 o addedToTasker(TaskThread)
This is called by a TaskThread when an object is added to a TaskThread.
 o getTasker()
This should return the task thread that the Taskable object is currently being tasked by or null if not being tasked.
 o removedFromTasker()
This is called by a TaskThread when an object is removed from a TaskThread.
 o startTasking()
This will start tasking the Timeable object.
 o stopTasking()
This will stop tasking the Timeable object.
 o task()
This method is defined as a method that is called periodically to perform tasks.

Variables

 o tasker
 public static final TaskThread tasker
The "system" creates a default TaskThread for all taskable objects.

Methods

 o task
 public abstract void task() throws QTException
This method is defined as a method that is called periodically to perform tasks. For example MoviePlayer's task method calls MoviesTask to draw the movie to the screen.

 o getTasker
 public abstract TaskThread getTasker()
This should return the task thread that the Taskable object is currently being tasked by or null if not being tasked.

Returns:
a TaskThread object or null.
 o addedToTasker
 public abstract void addedToTasker(TaskThread t)
This is called by a TaskThread when an object is added to a TaskThread. The parameter is the TaskThread that the object is being added to.

Parameters:
t - the TaskThread
 o removedFromTasker
 public abstract void removedFromTasker()
This is called by a TaskThread when an object is removed from a TaskThread. It is removedFrom the TaskThread that it was added to and a Taskable can only be in one TaskThread object.

Parameters:
t - the TaskThread
 o startTasking
 public abstract void startTasking()
This will start tasking the Timeable object.

 o stopTasking
 public abstract void stopTasking()
This will stop tasking the Timeable object.


All Packages  Class Hierarchy  This Package  Previous  Next  Index