next up previous
Next: Working with the QTDrawable Up: Quicktime for Java Classes Previous: Interacting With Java Layout

The QTDrawable Interface

The QTDrawable interface encapsulates the common operations that can be applied to a QuickTime drawing object. It also presents an interface that expresses the required methods that the QTCanvas needs to call upon its drawing client.

Objects that implement the QTDrawable interface draw into the QDGraphics object presented to the client by its QTCanvas. As a consequence, this is not an appropriate interface for objects that are not QuickTime-based drawing objects. QTExceptions can be thrown by any of the methods in this interface and would indicate that either the graphics environment has changed in some unexpected way or that the media object itself is in some unexpected state.

Fig 9.2 represents the QTDrawable interfaces and the classes in QuickTime for Java that implement this interface.

QTDrawable interfaces and classes


Dave Marshall