|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.app.image.ImageDrawer
This class will present a normal java.awt.Image object as a client of the QTCanvas.
Field Summary | |
protected java.awt.Component |
canv
|
protected java.awt.Image |
im
This is the image that the redraw method will draw to the destination Canvas |
Constructor Summary | |
ImageDrawer()
Makes a default ImageDrawer that will draw nothing as it has no image to present nor component to present in |
|
ImageDrawer(java.awt.Dimension initialSize,
java.awt.Image image)
|
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. |
QDRect |
getDisplayBounds()
QTCanvas calls this method when it needs to ask the client for its boundary. |
java.awt.Image |
getImage()
This method returns the current image that this object is presenting |
static ImageDrawer |
getQTLogo()
This returns an ImageDrawer object that presents the standard QuickTime logo |
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 |
setDisplayBounds(QDRect bounds)
QTCanvas calls this method when it needs to tell the client to adjust its location, width and/or height. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.awt.Image im
protected java.awt.Component canv
Constructor Detail |
public ImageDrawer()
public ImageDrawer(java.awt.Dimension initialSize, java.awt.Image image)
Method Detail |
public static final ImageDrawer getQTLogo()
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 java.awt.Image getImage()
public void setDisplayBounds(QDRect bounds) throws QTException
setDisplayBounds
in interface Drawable
bounds
- the new size and location.public QDRect getDisplayBounds() throws QTException
getDisplayBounds
in interface Drawable
public 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 |