|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.app.image.ImageViewer
This class presents a sequence of Images that a user can view
by simply clicking the mouse, or option clicking to view backwards.
It takes an ImageSequencer object as its source images, and uses
an ImagePresenter object internally to present the current image.
Field Summary | |
protected ImagePresenter |
imagePresenter
This is the ImagePresenter object that presents the current image. |
Constructor Summary | |
ImageViewer(ImageSequencer images)
Creates a viewer for a sequence of images. |
Method Summary | |
void |
addedTo(java.lang.Object interest)
This method is called by the specified object when the instance of the class that implements this interface is added to the object that is the source of the interest. |
Region |
getClip()
This method allows you to get the current clipped Region of the QTDrawable. |
QDRect |
getDisplayBounds()
QTCanvas calls this method when it needs to ask the client for its boundary. |
GraphicsMode |
getGraphicsMode()
This gets the current GraphicsMode for the compositor. |
QDGraphics |
getGWorld()
QTCanvas calls this method to get the destination QDGraphics of its client. |
ImageSequencer |
getImages()
Returns the current collection of images that the Viewer is presenting |
java.awt.Dimension |
getInitialSize()
Deprecated. since QTJava 4.0 |
Matrix |
getMatrix()
This will return the client's current display transformations |
QDDimension |
getOriginalSize()
This method returns the original size before the transformations specified in the returned matrix are applied. |
void |
redraw(Region invalidRgn)
QTCanvas calls this method when the client should redraw itself. |
void |
removedFrom(java.lang.Object interest)
This method is called by the specified object when the instance of the class that implements this interface is removed from the object that is the source of the interest. |
void |
setClip(Region theClip)
This method allows you to set a QTDrawable's clipping region. |
void |
setDisplayBounds(QDRect bounds)
QTCanvas calls this method when it needs to tell the client to adjust its location, width and/or height. |
void |
setGraphicsMode(GraphicsMode mode)
This sets the GraphicsMode for the Compositor when it draws its composited contents to its destination QDGraphics (typically the QTCanvas). |
void |
setGWorld(QDGraphics cgp)
QTCanvas calls this method to give the client the QDGraphics object it should use to do its drawing. |
void |
setImageData(EncodedImage imageData,
ImageDescription desc)
This can be used by subclasses to change the Image that the viewer is presenting. |
void |
setImages(ImageSequencer images)
Sets a new sequence of images for the viewer to present. |
void |
setLocation(int x,
int y)
A convenience method to set the position of a QTDrawable object. |
void |
setMatrix(Matrix matrix)
This method sets the current matrix of the Transformable object to the new matrix. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ImagePresenter imagePresenter
Constructor Detail |
public ImageViewer(ImageSequencer images) throws QTException
Method Detail |
public ImageSequencer getImages()
public void setImageData(EncodedImage imageData, ImageDescription desc) throws QTException, StdQTException
setImageData
in interface ImageSettable
quicktime.app.image.ImageSettable
imageData
- the new image data that the object should make its current image.desc
- this is the description that describes the image datapublic void setImages(ImageSequencer images) throws QTException
public void addedTo(java.lang.Object interest)
addedTo
in interface Listener
interest
- the object that is to be the source of interest for the
the object that implements this interface.public void removedFrom(java.lang.Object interest)
removedFrom
in interface Listener
interest
- the object that was the source of interest for the
the object that implements this interface.public void setGWorld(QDGraphics cgp) throws QTException
setGWorld
in interface QTDrawable
cgp
- a QDGraphics objectpublic QDGraphics getGWorld()
getGWorld
in interface QTDrawable
public void setDisplayBounds(QDRect bounds) throws StdQTException
setDisplayBounds
in interface Drawable
bounds
- the new size and location.public void setLocation(int x, int y) throws QTException
setLocation
in interface QTDrawable
x
- the new x locationy
- the new y locationpublic QDRect getDisplayBounds()
getDisplayBounds
in interface Drawable
public void setClip(Region theClip) throws QTException
setClip
in interface QTDrawable
theClip
- a Region that defines the new clipping region.public Region getClip() throws QTException
getClip
in interface QTDrawable
public java.awt.Dimension getInitialSize() throws QTException
()
public QDDimension getOriginalSize() throws QTException
getOriginalSize
in interface Transformable
public Matrix getMatrix() throws StdQTException
getMatrix
in interface Transformable
public void setMatrix(Matrix matrix) throws QTException
setMatrix
in interface Transformable
matrix
- the new matrixpublic void setGraphicsMode(GraphicsMode mode) throws QTException
mode
- the Graphics mode for the Compositorpublic GraphicsMode getGraphicsMode()
public final void redraw(Region invalidRgn) throws QTException
redraw
in interface Drawable
invalidRgn
- the invalidRgn that the client should redraw
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |