|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.app.time.Tasking | +--quicktime.app.sg.SGDrawer
This class presents the SequenceGrabber/SGChannel component as a Drawable object so that it can be displayed within the confines of the QTCanvas.
Fields inherited from interface quicktime.app.time.Taskable |
tasker |
Constructor Summary | |
SGDrawer(SGVideoChannel sg)
This constructor creates an SGDrawer object from a SGChannel component. |
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. |
QDRect |
getDisplayBounds()
Returns the current display location and size of the SGDrawer. |
QDGraphics |
getGWorld()
QTCanvas calls this method to get the destination QDGraphics of its client. |
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. |
SequenceGrabber |
getSequenceGrabber()
This returns the SequenceGrabber that is presented by this drawable. |
SGCaptureCallback |
getSGCaptureCallback()
Gets a SGCaptureCallback that is used by the SGDrawer to notify an application when a sequence grabbing operation has completed. |
SGVideoChannel |
getSGChannel()
This returns the SequenceGrabber's VideoChannel that is presented by this drawable. |
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)
Sets the display bounds for the SGDrawer |
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. |
void |
setSGCaptureCallback(SGCaptureCallback callback)
Sets a SGCaptureCallback that will be used by the SGDrawer to notify an application when a sequence grabbing operation has completed. |
void |
task()
This method performs idle processing for the SGDrawer and will be automatically called if this object is added to the TaskThread object. |
java.lang.String |
toString()
Returns a String representation of this object. |
Methods inherited from class quicktime.app.time.Tasking |
addedToTasker, getDefaultTasker, getTasker, removedFromTasker, setDefaultTasker, startTasking, stopTasking |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SGDrawer(SGVideoChannel sg) throws QTException
sg
- the SequenceGrabber component channel to present.Method Detail |
public SGVideoChannel getSGChannel()
public SequenceGrabber getSequenceGrabber()
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 QTException
setGWorld
in interface QTDrawable
cgp
- a QDGraphics objectpublic java.awt.Dimension getInitialSize() throws QTException
()
public QDDimension getOriginalSize() throws QTException
getOriginalSize
in interface Transformable
public Matrix getMatrix() throws StdQTException
getMatrix
in interface Transformable
public void setMatrix(Matrix matrix) throws QTException
setMatrix
in interface Transformable
matrix
- the new display Matrixpublic 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 StdQTException
redraw
in interface Drawable
invalidRgn
- the invalidRgn that the client should redrawpublic Region getClip() throws QTException
getClip
in interface QTDrawable
public void setClip(Region reg) throws StdQTException
setClip
in interface QTDrawable
reg
- the new clipping regionpublic final void task() throws StdQTException
quicktime.util.TaskThread
public void setSGCaptureCallback(SGCaptureCallback callback)
callback
- can be null to de-register notificationpublic SGCaptureCallback getSGCaptureCallback()
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 |