Inside Macintosh: QuickTime Reference

| Previous | Chapter Contents | Chapter Top | Next |

New DragAdaptor and TranslateMatrix Classes

The DraggingSprites sample code has been rewritten to support the new controllers; other SDK examples will also be rewritten.

There are new classes in the quicktime.app.actions package. To support the dragging behavior previously provided, a DragAdaptor class and a TranslateMatrix class are provided.

The dragging support has been enhanced to support the new event model.

DragAction is a new class that is a DragAdapter and uses TranslateMatrix, which is a subclass of a generic TransformMatrix class.

TransformMatrix provides a general service to applications wishing to provide custom matrix manipulations. More specifically, TransformMatrix provides an uniform means of applying matrix transformations to a quicktime.app.image.Transformable object. It possesses a number of settings for constraints testing and provides a dual mechanism for usage in both a time-based repetitive transformation (such as the BounceAction usage) as well as user-based transformations (such as dragging).

The DraggingSprites sample code in the SDK (which also defines a time-based RotateMatrix class as well as a user-based ScaleMatrix class) has been re-written to support this new mechanism and provides a useful service in applying matrix transformations.


© 2000 Apple Computer, Inc.

Inside Macintosh: QuickTime Reference

| Previous | Chapter Contents | Chapter Top | Next |