Next: The QTCanvas Class
Up: QuickTime for Java
Previous: The Quicktime for Java
This section discusses the usage of two principal classes and one principal
interface in the QuickTime for Java API.
These are
- QTCanvas
- :
As we saw in the our QTSimpleApplet, the
QTCanvas is a subclass of the java.awt.Canvas and represents primarily
a way to gain access to the underlying native graphics structure of the
platform. QuickTime requires this in order to draw to the screen.
- QTDrawable
- :
an interface that expresses this requirement of QuickTime
objects to draw to this native graphics structure.
- QTFactory
- : a class
that uses the importing capabilities of QuickTime to ``manufacture'' QTDrawable
objects to present that media.
In this section, we discuss how to
- use the QTCanvas class to interact with the Java display and event
system
- use the QTDrawable interface to encapsulate common operations that
can be applied to a QuickTime drawing object
- present media that QuickTime can import by using ``factory'' methods
provided by the QTFactory class
The section also introduces briefly an abstraction known as a space,
which is part of the QuickTime for Java spaces and controllers architecture.
A space defines and organizes the behavior of objects and allows
for the complex representation of disparate media types.
Next: The QTCanvas Class
Up: QuickTime for Java
Previous: The Quicktime for Java
Dave Marshall
10/4/2001