|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.app.image.ImagePresenter | +--quicktime.app.image.QTEffectPresenter
The QTEffectPresenter is used to present typically a QTFilter or QTTransition as a member of a SWCompositor. It will create an Invalidator based on whether the effect is a single or multi-framed effect and the Invalidator will redraw the effect based on the effect's current isRedrawing value. If the effect is redrawn then the TwoDSprite that is presenting the effect in the SWCompositor will be invalidated to update the image it is presenting.
quicktime.app.display.SWCompositor
Constructor Summary | |
QTEffectPresenter(QTEffect ef)
Create a QTEffectPresenter from the supplied effect. |
|
QTEffectPresenter(QTEffect ef,
QDGraphics g)
Create a QTEffectPresenter from the supplied effect. |
Method Summary | |
void |
addDrawingListener(DrawingListener listener)
Registers an object as a listener of the Compositor. |
Invalidator |
addedToCompositor(SWCompositor c,
TwoDSprite s)
Returns an object that invalidates a sprite. |
void |
doTransition()
If the effect being presented by this Presenter is a QTTransition then this call will run the transition. |
QTEffect |
getEffect()
Returns the effect that the QTEffectPresenter is presenting. |
void |
redraw(Region invalidRgn)
QTCanvas calls this method when the client should redraw itself. |
void |
removedFromCompositor(SWCompositor c)
When a dynamic image class is removed from a SWCompositor this method is called to allow the class to cleanup any of the invalidation processes it had established in the addedToCompositor call. |
void |
removeDrawingListener(DrawingListener listener)
Removes an object that is a listener of the Compositor. |
Methods inherited from class quicktime.app.image.ImagePresenter |
addedTo, doDraw, fromFile, fromGraphicsImporter, fromGraphicsImporterDrawer, fromGWorld, fromGWorld, fromImageSequence, fromImageSpec, fromPict, fromQTImage, getClip, getDescription, getDisplayBounds, getDSequence, getGraphicsMode, getGWorld, getImage, getInitialSize, getMatrix, getOriginalSize, isRedrawOptimised, removedFrom, removeImageData, setClip, setDisplayBounds, setGraphicsMode, setGWorld, setImageData, setImageData, setLocation, setMatrix, setRedrawOptimised, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface quicktime.app.image.Compositable |
getGraphicsMode, setGraphicsMode |
Methods inherited from interface quicktime.app.image.ImageSpec |
getDescription, getImage |
Constructor Detail |
public QTEffectPresenter(QTEffect ef) throws QTException
ef
- the effect that is renderedpublic QTEffectPresenter(QTEffect ef, QDGraphics g) throws QTException
ef
- the effect that is renderedg
- the offscreen QDGraphics that the effect is rendered into.Method Detail |
public void redraw(Region invalidRgn) throws QTException
redraw
in class ImagePresenter
invalidRgn
- the invalidRgn that the client should redrawpublic QTEffect getEffect()
public void doTransition() throws QTException
public Invalidator addedToCompositor(SWCompositor c, TwoDSprite s)
The Invalidators provided with objects that implement the DynamicImage interface will execute at the scale and period of the Compositor when they are created.
addedToCompositor
in interface DynamicImage
c
- the Compositor in which the DynamicImage is a members
- the TwoDSprite that is presenting the DynamicImage's image in
the Compositor. This is the sprite that must be invalidated.quicktime.app.display.SWCompositor
public void removedFromCompositor(SWCompositor c)
removedFromCompositor
in interface DynamicImage
c
- the SWCompositor it is being removed frompublic void addDrawingListener(DrawingListener listener)
addDrawingListener
in interface DrawingNotifier
quicktime.app.display.DrawingNotifier
source
- the object that is to be the source of interest for the
the Listener object.public void removeDrawingListener(DrawingListener listener)
removeDrawingListener
in interface DrawingNotifier
quicktime.app.display.DrawingNotifier
source
- the object that is to be the source of interest for the
the Listener object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |