next up previous
Next: The Spaces and Controllers Up: Quicktime for Java Classes Previous: Working with the QTDrawable

The QTFactory Class

The QTFactory class provides ``factory'' methods for creating classes used to present media that QuickTime can import. The makeDrawable() methods of QTFactory use the QuickTime importers to return an appropriate QuickTime object that can present any of a wide range of media types (images, movies, sounds, MIDI, and so on) that QuickTime can import.

Given a file, a Java InputStream object, or a URL, the makeDrawable() methods that belong to the QTFactory class examine the contained media and return an object that best presents that kind of media. For example:

Once you have the QTDrawable object, you merely add it to the canvas and the visual component of the media is presented in the canvas' display space.

There are three versions of the makeDrawable() method. The first two methods deal with a file, either local or remote:


next up previous
Next: The Spaces and Controllers Up: Quicktime for Java Classes Previous: Working with the QTDrawable
Dave Marshall
10/4/2001