|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--quicktime.app.image.ImagePresenter
This class represents an image that is loaded into memory. Its focus is on performance so if the image data that is presented to the ImagePresenter is in a format that is non-optimal for drawing the data will generally be converted to a format that is optimal, at the expense of a greater usage of memory (see setImageData methods). This process is controlled by the optimised redrawing flag, which if true (the default), may convert the image to a better format for drawing performance.
| Constructor Summary | |
ImagePresenter(QDRect initialSize)
Deprecated. since QTJava 6.1 |
|
| Method Summary | |
void |
addedTo(java.lang.Object interest)
Deprecated. since QTJava 6.1 |
protected void |
doDraw()
Deprecated. since QTJava 6.1 |
static ImagePresenter |
fromFile(QTFile qtFile)
Deprecated. since QTJava 6.1 |
static ImagePresenter |
fromGraphicsImporter(GraphicsImporter importer)
Deprecated. since QTJava 6.1 |
static ImagePresenter |
fromGraphicsImporterDrawer(GraphicsImporterDrawer imageFile)
Deprecated. since QTJava 6.1 |
static ImagePresenter |
fromGWorld(QDGraphics grafPort)
Deprecated. since QTJava 6.1 |
static ImagePresenter |
fromGWorld(QDGraphics port,
QDRect rect,
int colorDepth,
int quality,
int codecType,
CodecComponent codec)
Deprecated. since QTJava 6.1 |
static ImagePresenter |
fromImageSequence(ImageDataSequence image,
int nth)
Deprecated. since QTJava 6.1 |
static ImagePresenter |
fromImageSpec(ImageSpec image)
Deprecated. since QTJava 6.1 |
static ImagePresenter |
fromPict(Pict p)
Deprecated. since QTJava 6.1 |
static ImagePresenter |
fromQTImage(EncodedImage data,
ImageDescription desc)
Deprecated. since QTJava 6.1 |
Region |
getClip()
Deprecated. since QTJava 6.1 |
ImageDescription |
getDescription()
Deprecated. since QTJava 6.1 |
QDRect |
getDisplayBounds()
Deprecated. since QTJava 6.1 |
DSequence |
getDSequence()
Deprecated. since QTJava 6.1 |
GraphicsMode |
getGraphicsMode()
Deprecated. since QTJava 6.1 |
QDGraphics |
getGWorld()
Deprecated. since QTJava 6.1 |
EncodedImage |
getImage()
Deprecated. since QTJava 6.1 |
java.awt.Dimension |
getInitialSize()
Deprecated. since QTJava 4.0 |
Matrix |
getMatrix()
Deprecated. since QTJava 6.1 |
QDDimension |
getOriginalSize()
Deprecated. since QTJava 6.1 |
boolean |
isRedrawOptimised()
Deprecated. since QTJava 6.1 |
void |
redraw(Region invalidRgn)
Deprecated. since QTJava 6.1 |
void |
removedFrom(java.lang.Object interest)
Deprecated. since QTJava 6.1 |
void |
removeImageData()
Deprecated. since QTJava 6.1 |
void |
setClip(Region reg)
Deprecated. since QTJava 6.1 |
void |
setDisplayBounds(QDRect bounds)
Deprecated. since QTJava 6.1 |
void |
setGraphicsMode(GraphicsMode mode)
Deprecated. since QTJava 6.1 |
void |
setGWorld(QDGraphics cgp)
Deprecated. since QTJava 6.1 |
void |
setImageData(EncodedImage ei)
Deprecated. since QTJava 6.1 |
void |
setImageData(EncodedImage data,
ImageDescription desc)
Deprecated. since QTJava 6.1 |
void |
setLocation(int x,
int y)
Deprecated. since QTJava 6.1 |
void |
setMatrix(Matrix matrix)
Deprecated. since QTJava 6.1 |
void |
setRedrawOptimised(boolean flag)
Deprecated. since QTJava 6.1 |
java.lang.String |
toString()
Deprecated. since QTJava 6.1 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ImagePresenter(QDRect initialSize)
| Method Detail |
public static ImagePresenter fromFile(QTFile qtFile)
throws java.io.IOException,
QTException
qtFile - the QTFile.
java.io.IOException
QTException
public static ImagePresenter fromGraphicsImporter(GraphicsImporter importer)
throws java.io.IOException,
QTException
importer - the GraphicsImporter object.
java.io.IOException
QTException
public static ImagePresenter fromGraphicsImporterDrawer(GraphicsImporterDrawer imageFile)
throws java.io.IOException,
QTException
imageFile - the image file object
java.io.IOException
QTException
public static ImagePresenter fromImageSpec(ImageSpec image)
throws QTException
image - the image
QTException
public static ImagePresenter fromImageSequence(ImageDataSequence image,
int nth)
throws QTException
image - the imagenth - the index into the ImageDataSequence object of the image data that should be used
QTException
public static ImagePresenter fromGWorld(QDGraphics grafPort)
throws QTException
grafPort - the grafPort that will be used to create the ImagePresenter object from.
QTException
public static ImagePresenter fromGWorld(QDGraphics port,
QDRect rect,
int colorDepth,
int quality,
int codecType,
CodecComponent codec)
throws QTException
port - a QDGraphics object from which the PixMap will be used.rect - the QDRect object - this may not be nullcolorDepth - the int value.quality - the int value.codecType - the int value.codec - the CodecComponent object.
QTException
public static ImagePresenter fromPict(Pict p)
throws QTException
p - the pict handle
QTException
public static ImagePresenter fromQTImage(EncodedImage data,
ImageDescription desc)
throws QTException
data - the image data.desc - the ImageDescription object.
QTException
public void setImageData(EncodedImage data,
ImageDescription desc)
throws QTException
setImageData in interface ImageSettabledata - the new image data for display or null to allow the application to keep the data in its preferred format.desc - describes the format of the image data - this may NOT be null.
QTException
public void setImageData(EncodedImage ei)
throws QTException
ei - the new encoded image data
QTExceptionpublic void setRedrawOptimised(boolean flag)
flag - the new setting.public boolean isRedrawOptimised()
public void removeImageData()
throws QTException
QTExceptionpublic ImageDescription getDescription()
getDescription in interface ImageSpecpublic DSequence getDSequence()
public Region getClip()
throws QTException
getClip in interface QTDrawableQTException
public void setClip(Region reg)
throws StdQTException
setClip in interface QTDrawablereg - the new clipping region
StdQTExceptionpublic void addedTo(java.lang.Object interest)
addedTo in interface Listenerinterest - 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 Listenerinterest - the object that was the source of interest for the
the object that implements this interface.
public Matrix getMatrix()
throws StdQTException
getMatrix in interface TransformableStdQTException
public void setMatrix(Matrix matrix)
throws QTException
setMatrix in interface Transformablematrix - a Matrix object that specifies how to transform the image during
decompression
QTException
public java.awt.Dimension getInitialSize()
throws QTException
QTException()
public QDDimension getOriginalSize()
throws QTException
getOriginalSize in interface TransformableQTExceptionpublic EncodedImage getImage()
getImage in interface ImageSpecpublic QDGraphics getGWorld()
getGWorld in interface QTDrawable
public void setGWorld(QDGraphics cgp)
throws QTException
setGWorld in interface QTDrawablecgp - a QDGraphics object
QTException
public void setDisplayBounds(QDRect bounds)
throws StdQTException
setDisplayBounds in interface Drawablebounds - the new size and location.
StdQTException
public void setLocation(int x,
int y)
throws QTException
setLocation in interface QTDrawablex - the new x locationy - the new y location
QTExceptionpublic QDRect getDisplayBounds()
getDisplayBounds in interface Drawable
public void redraw(Region invalidRgn)
throws QTException
redraw in interface DrawableinvalidRgn - the invalidRgn that the client should redraw
QTException
protected final void doDraw()
throws QTException
QTException
public void setGraphicsMode(GraphicsMode mode)
throws QTException
setGraphicsMode in interface Compositablemode - the new GraphicsMode for this presenter
QTExceptionpublic GraphicsMode getGraphicsMode()
getGraphicsMode in interface Compositablepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||