All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.app.QTDrawableMaker
java.lang.Object
|
+----quicktime.app.QTDrawableMaker
- public class QTDrawableMaker
- extends Object
This class is used in the making of QTDrawable objects by the QTFactory.makeDrawable methods
when a GraphicsImporter or Movie is made from the user's input. Applications can
subclass this class and pass it in to the makeDrawable methods to overide the method
that is of particular concern to return an object that is more appropriate to their
use. For example an ImagePresenter object could be returned from the GraphicsImporter that
yields better drawing performance but uses more memory.
class MyQTDrawableMaker extends QTDrawableMaker {
public QTDrawable fromGraphicsImporter (GraphicsImporter gi) throws QTException {
return ImagePresenter.fromGraphicsImporter (gi);
}
}
And this class is used with the factory methods like this:
QTDrawable d = QTFactory.makeDrawable (..., new MyQTDrawable());
-
QTDrawableMaker()
-
-
fromGraphicsImporter(GraphicsImporter)
-
-
fromMovie(Movie)
-
QTDrawableMaker
public QTDrawableMaker()
fromGraphicsImporter
public QTDrawable fromGraphicsImporter(GraphicsImporter gi) throws QTException
- Parameters:
- gi - the GraphicsImporter from which to construct a QTDrawable object which is capable of
presenting the image data imported by the GraphicsImporter.
- Returns:
- an GraphicsImporterDrawer object from the supplied GraphicsImporter
fromMovie
public QTDrawable fromMovie(Movie m) throws QTException
- Parameters:
- m - the Movie from which to construct a QTDrawable object which is capable of
presenting the Movie.
- Returns:
- a QTPlayer object from the supplied Movie
All Packages Class Hierarchy This Package Previous Next Index