|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.app.image.GraphicsImporterDrawer
This class represents an image that is stored as a file that can be read and drawn using QuickTime GraphicsImporter component
GraphicsImporterDrawer
Constructor Summary | |
GraphicsImporterDrawer(DataRef dataRef)
This constructor creates an GraphicsImporterDrawer object from a data ref. |
|
GraphicsImporterDrawer(GraphicsImporter gi)
This constructor creates an GraphicsImporterDrawer object from an existing GraphicsImporter. |
|
GraphicsImporterDrawer(QTFile file)
This constructor creates an GraphicsImporterDrawer object from a file. |
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()
Returns a region that defines the current clipping region for the object. |
ImageDescription |
getDescription()
This method should return an ImageDescription that describes the image data that the class contains. |
QDRect |
getDisplayBounds()
QTCanvas calls this method when it needs to ask the client for its boundary. |
GraphicsMode |
getGraphicsMode()
Determines the graphics mode for an image. |
QDGraphics |
getGWorld()
QTCanvas calls this method to get the destination QDGraphics of its client. |
EncodedImage |
getImage()
This method returns the actual image data of the GraphicsImporterDrawer's GraphicImporter. |
GraphicsImporter |
getImporter()
This returns the GraphicsImporter object that is responsible for importing and drawing the picture file. |
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 reg)
Sets a region that will define the clipping region for the object |
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 gMode)
Determines the graphics mode for an image. |
void |
setGWorld(QDGraphics cgp)
QTCanvas calls this method to give the client the QDGraphics object it should use to do its drawing. |
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. |
java.lang.String |
toString()
Returns a String representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GraphicsImporterDrawer(GraphicsImporter gi)
gi
- the GraphicsImporterpublic GraphicsImporterDrawer(QTFile file) throws QTException
file
- the QTFile.public GraphicsImporterDrawer(DataRef dataRef) throws QTException
dataRef
- the dataRef that contains the locations of the image data.Method Detail |
public GraphicsImporter getImporter()
public Region getClip() throws QTException
getClip
in interface QTDrawable
public void setClip(Region reg) throws StdQTException
setClip
in interface QTDrawable
reg
- the new clipping regionpublic ImageDescription getDescription() throws StdQTException
getDescription
in interface ImageSpec
public EncodedImage getImage() throws QTException
getImage
in interface ImageSpec
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 QDGraphics getGWorld() throws StdQTException
getGWorld
in interface QTDrawable
public void setGWorld(QDGraphics cgp) throws StdQTException
setGWorld
in interface QTDrawable
cgp
- a QDGraphics objectpublic java.awt.Dimension getInitialSize() throws QTException
()
public QDDimension getOriginalSize() throws QTException
getOriginalSize
in interface Transformable
quicktime.app.image.Transformable
public Matrix getMatrix() throws StdQTException
getMatrix
in interface Transformable
public void setMatrix(Matrix matrix) throws QTException
setMatrix
in interface Transformable
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() throws StdQTException
getDisplayBounds
in interface Drawable
public final void redraw(Region invalidRgn) throws QTException
redraw
in interface Drawable
invalidRgn
- the invalidRgn that the client should redrawpublic GraphicsMode getGraphicsMode() throws StdQTException
getGraphicsMode
in interface Compositable
public void setGraphicsMode(GraphicsMode gMode) throws StdQTException
setGraphicsMode
in interface Compositable
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |