All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.app.time.TaskAllMovies

java.lang.Object
   |
   +----quicktime.app.time.Tasking
           |
           +----quicktime.app.time.TaskAllMovies

public class TaskAllMovies
extends Tasking
QuickTime's MoviesTask call can be called in two ways. This class creates a single Taskable object that will use this second alternative, making the single Movie.taskAll call and allowing the MovieToolbox to task all of the exisiting and active Movies and TimeBases in a single native call.

Classes in the quicktime.app packages (notably MoviePlayer, Timer, MoviePresenter) default behaviour is not to task themselves individually but to register with the TaskAllMovies class that they have a requirement for tasking. The TaskAllMovies call then has a single thread and taskable object (itself) that calls the Moive.taskAll to let QuickTime's MovieTask call do the required tasks for any of these active Movies and TimeBases.

An application can retrieve the Tasking object and set its default thread to a TaskThread object of its choice.

See Also:
MoviePlayer, Timer, MoviePresenter

Method Index

 o addMovieAndStart()
Informs the TaskAllMovies object that another Movie or TimeBase is active and would require tasking.
 o currentMovieCount()
Returns the current number of active Movies and/or TimeBases that the TaskAllMovies object is registered to count.
 o get()
Returns the TaskAllMovies Tasking object that is used to call Movie.taskAll.
 o removeMovie()
Informs the TaskAllMovies object that a Movie or TimeBase that was active is no longer.
 o task()
Calls Movie.taskAll to task all active Movies and TimeBases.

Methods

 o get
 public static TaskAllMovies get()
Returns the TaskAllMovies Tasking object that is used to call Movie.taskAll.

Returns:
a TaskAllMovies object
 o addMovieAndStart
 public static void addMovieAndStart()
Informs the TaskAllMovies object that another Movie or TimeBase is active and would require tasking. If this is the only active Movie or TimeBase the TaskAllMovies' TaskThread will be started.

 o removeMovie
 public static void removeMovie()
Informs the TaskAllMovies object that a Movie or TimeBase that was active is no longer. If this was the only active Movie or TimeBase the TaskAllMovies' TaskThread will be stopped.

 o currentMovieCount
 public static int currentMovieCount()
Returns the current number of active Movies and/or TimeBases that the TaskAllMovies object is registered to count.

Returns:
an int
 o task
 public void task() throws QTException
Calls Movie.taskAll to task all active Movies and TimeBases.

Overrides:
task in class Tasking

All Packages  Class Hierarchy  This Package  Previous  Next  Index