All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.app.image.GraphicsImporterDrawer
java.lang.Object
|
+----quicktime.app.image.GraphicsImporterDrawer
- public class GraphicsImporterDrawer
- extends Object
- implements QTDrawable, Compositable
This class represents an image that is stored as a file that
can be read and drawn using QuickTime GraphicsImporter component
- See Also:
- GraphicsImporterDrawer
-
GraphicsImporterDrawer(DataRef)
- This constructor creates an GraphicsImporterDrawer object from a data ref.
-
GraphicsImporterDrawer(GraphicsImporter)
- This constructor creates an GraphicsImporterDrawer object from an existing GraphicsImporter.
-
GraphicsImporterDrawer(QTFile)
- This constructor creates an GraphicsImporterDrawer object from a file.
-
addedTo(Object)
- 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.
-
getClip()
- Returns a region that defines the current clipping region for the object.
-
getDescription()
- This method should return an ImageDescription that describes
the image data that the class contains.
-
getDisplayBounds()
- QTCanvas calls this method when it needs to ask the client for its boundary.
-
getGraphicsMode()
- Determines the graphics mode for an image.
-
getGWorld()
- QTCanvas calls this method to get the destination QDGraphics of its client.
-
getImage()
- This method returns the actual image data of the GraphicsImporterDrawer's GraphicImporter.
-
getImporter()
- This returns the GraphicsImporter object that is responsible for
importing and drawing the picture file.
-
getInitialSize()
- This method returns the original size before the transformations
specified in the returned matrix are applied.
-
getMatrix()
- This will return the client's current display transformations
-
redraw(Region)
- QTCanvas calls this method when the client should redraw itself.
-
removedFrom(Object)
- 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.
-
setClip(Region)
- Sets a region that will define the clipping region for the object
-
setDisplayBounds(QDRect)
- QTCanvas calls this method when it needs to tell the client to adjust its
location, width and/or height.
-
setGraphicsMode(GraphicsMode)
- Determines the graphics mode for an image.
-
setGWorld(QDGraphics)
- QTCanvas calls this method to give the client the QDGraphics object it should
use to do its drawing.
-
setLocation(int, int)
- A convenience method to set the position of a QTDrawable object.
-
setMatrix(Matrix)
- This method sets the current matrix of the Transformable object to
the new matrix.
-
toString()
- Returns a String representation of this object.
GraphicsImporterDrawer
public GraphicsImporterDrawer(GraphicsImporter gi)
- This constructor creates an GraphicsImporterDrawer object from an existing GraphicsImporter.
- Parameters:
- gi - the GraphicsImporter
GraphicsImporterDrawer
public GraphicsImporterDrawer(QTFile file) throws QTException
- This constructor creates an GraphicsImporterDrawer object from a file.
- Parameters:
- file - the QTFile.
GraphicsImporterDrawer
public GraphicsImporterDrawer(DataRef dataRef) throws QTException
- This constructor creates an GraphicsImporterDrawer object from a data ref.
- Parameters:
- dataRef - the dataRef that contains the locations of the image data.
getImporter
public GraphicsImporter getImporter()
- This returns the GraphicsImporter object that is responsible for
importing and drawing the picture file.
getClip
public Region getClip() throws QTException
- Returns a region that defines the current clipping region for the object.
- Returns:
- the clipping region
setClip
public void setClip(Region reg) throws StdQTException
- Sets a region that will define the clipping region for the object
- Parameters:
- reg - the new clipping region
getDescription
public ImageDescription getDescription() throws StdQTException
- This method should return an ImageDescription that describes
the image data that the class contains.
- Returns:
- the ImageDescription of an Image
getImage
public EncodedImage getImage() throws QTException
- This method returns the actual image data of the GraphicsImporterDrawer's GraphicImporter.
An Exception is throw if there was some problem retrieving the data.
- Returns:
- the image data
addedTo
public void addedTo(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.
- Parameters:
- interest - the object that is to be the source of interest for the
the object that implements this interface.
removedFrom
public void removedFrom(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.
- Parameters:
- interest - the object that was the source of interest for the
the object that implements this interface.
getGWorld
public QDGraphics getGWorld() throws StdQTException
- QTCanvas calls this method to get the destination QDGraphics of its client.
- Returns:
- a QDGraphics object or null
setGWorld
public void setGWorld(QDGraphics cgp) throws StdQTException
- QTCanvas calls this method to give the client the QDGraphics object it should
use to do its drawing. If the incoming QDGraphics is the QDGraphics.scratch then
the drawable will not be visible and can disable itself.
If a client is unable to set the graphics world it should throw an exception.
- Parameters:
- cgp - a QDGraphics object
getInitialSize
public Dimension getInitialSize() throws QTException
- This method returns the original size before the transformations
specified in the returned matrix are applied.
getMatrix
public Matrix getMatrix() throws StdQTException
- This will return the client's current display transformations
- Returns:
- the display transformations of the client
setMatrix
public void setMatrix(Matrix matrix) throws QTException
- This method sets the current matrix of the Transformable object to
the new matrix.
setDisplayBounds
public void setDisplayBounds(QDRect bounds) throws StdQTException
- QTCanvas calls this method when it needs to tell the client to adjust its
location, width and/or height. All values are in pixels.
- Parameters:
- bounds - the new size and location.
setLocation
public void setLocation(int x,
int y) throws QTException
- A convenience method to set the position of a QTDrawable object.
- Parameters:
- x - the new x location
- y - the new y location
getDisplayBounds
public QDRect getDisplayBounds() throws StdQTException
- QTCanvas calls this method when it needs to ask the client for its boundary.
All values are in pixels.
- Returns:
- the boundary of the client
redraw
public final synchronized void redraw(Region invalidRgn) throws QTException
- QTCanvas calls this method when the client should redraw itself.
If the canvas is able to discern that only a part of the client's
drawing area needs to be redrawn - then this area shall be passed in
using the invalidRgn. Otherwise this will be null in which case the
client should redraw itself entirely.
- Parameters:
- invalidRgn - the invalidRgn that the client should redraw
getGraphicsMode
public GraphicsMode getGraphicsMode() throws StdQTException
- Determines the graphics mode for an image.
- Returns:
- The graphics transfer mode.
setGraphicsMode
public void setGraphicsMode(GraphicsMode gMode) throws StdQTException
- Determines the graphics mode for an image.
- Returns:
- The graphics transfer mode.
toString
public String toString()
- Returns a String representation of this object.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index