|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is designed to work hand-in-hand with a QTCanvas object. Therefore, all classes which want to interact with a QTCanvas object, referred to as 'clients' must implement this interface.
The class that implements this interface must draw into the QDGraphics that is presented to the client - therefore this is not an appropriate interface for objects that are not QuickTime based drawing objects.
Note: A Java applet or application never directly calls any of these Drawable methods -- the QTCanvas object associated with this Drawable object will call these methods as needed.
QTExceptions can be thrown by any of these methods and would indicate that either the graphics environment has changed in some unexpected way or that the media object itself is in some unexpected state.
Method Summary | |
Region |
getClip()
This method allows you to get the current clipped Region of the Transformable. |
QDGraphics |
getGWorld()
QTCanvas calls this method to get the destination QDGraphics of its client. |
void |
setClip(Region theClip)
This method allows you to set a Transformable's clipping region. |
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. |
Methods inherited from interface quicktime.app.display.Drawable |
getDisplayBounds, redraw, setDisplayBounds |
Methods inherited from interface quicktime.app.spaces.Listener |
addedTo, removedFrom |
Methods inherited from interface quicktime.app.image.Transformable |
getMatrix, getOriginalSize, setMatrix |
Method Detail |
public void setLocation(int x, int y) throws QTException
x
- the new x locationy
- the new y locationpublic void setGWorld(QDGraphics cgp) throws QTException
cgp
- a QDGraphics objectpublic QDGraphics getGWorld() throws QTException
public void setClip(Region theClip) throws QTException
theClip
- a Region that defines the new clipping region.public Region getClip() throws QTException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |