|
|||||||||
| 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.players.QTPlayer
The QTPlayer class allows your application to display, play and control any QuickTime movie with the standard QuickTime movie controller.
The QTPlayer does not handle its own events but delegates the event handling to some kind of QTPlayerEventHandler object.
QTPlayerEventHandler,
MovieController| Fields inherited from interface quicktime.app.players.Playable |
kDurationUnknown |
| Fields inherited from interface quicktime.app.time.Taskable |
tasker |
| Constructor Summary | |
QTPlayer(MovieController mc)
This constructor creates a QTPlayer object given a QuickTime MovieController object. |
|
| 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()
This method allows you to obtain information describing a QTPlayer's clipping regions. |
QDRect |
getDisplayBounds()
This method is called automatically via the QTCanvas object associated with this client to set the boundary of the movie. |
int |
getDuration()
Returns the duration of the media attached to the player. |
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 |
MovieController |
getMovieController()
This allows you to access the contained movie controller. |
QDDimension |
getOriginalSize()
This method returns the original size before the transformations specified in the returned matrix are applied. |
float |
getRate()
Returns the current rate of the player. |
int |
getScale()
Returns the time scale of the player - how many ticks per second. |
int |
getTime()
Returns the current time value of the object. |
TimeBase |
getTimeBase()
Returns the current time base that provides the time foundation of this object. |
float |
getVolume()
Returns the volume setting (0 is silent or muted, 1 is unity gain) |
boolean |
isControllerSizeReserved()
Returns true if display space is being reserved for the size of the controller |
boolean |
isControllerVisible()
Returns the visible state of the controller. |
boolean |
isMuted()
Returns the current mute status |
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 theClip)
This method allows you to set a QTPlayer's clipping region. |
void |
setControllerSizeReserved(boolean flag)
Sets parameters on the resize of the controller. |
void |
setControllerVisible(boolean flag)
If true makes the MovieController visible, otherwise makes it invisible |
void |
setDisplayBounds(QDRect bounds)
This method is called automatically via the QTCanvas object associated with this client to set the boundary of the movie. |
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 |
setMuted(boolean flag)
Allows the muting of the specific channel. |
void |
setRate(float rate)
Sets the player to the playback rate. |
void |
setTime(int time)
Sets the player to the time specified. |
void |
setVolume(float val)
Sets the volume. |
void |
task()
This method performs idle processing for the QTPlayer and will be automatically called if this object is added to the TaskThread 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, toString, wait, wait, wait |
| Constructor Detail |
public QTPlayer(MovieController mc)
throws StdQTException
mc - a MovieController object| Method Detail |
public void addedTo(java.lang.Object interest)
addedTo in interface Listenerinterest - 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 Listenerinterest - the object that was the source of interest for the
the object that implements this interface.public MovieController getMovieController()
public 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
public QDGraphics getGWorld()
throws StdQTException
getGWorld in interface QTDrawable
public void setGWorld(QDGraphics cgp)
throws QDException,
StdQTException
setGWorld in interface QTDrawablecgp - a QDGraphics object
public final void redraw(Region invalidRgn)
throws QTException
redraw in interface DrawableinvalidRgn - the invalidRgn that the client should redraw
public void setDisplayBounds(QDRect bounds)
throws QTException
setDisplayBounds in interface Drawablebounds - a QDRect object describing the boundary
public void setLocation(int x,
int y)
throws QTException
setLocation in interface QTDrawablex - the new x locationy - the new y location
public QDRect getDisplayBounds()
throws StdQTException
getDisplayBounds in interface Drawablebounds - a QDRect object describing the boundary
public final void task()
throws QTException
quicktime.util.TaskThread
public void setClip(Region theClip)
throws QTException
setClip in interface QTDrawabletheClip - a Region that defines the player's clipping region.
public Region getClip()
throws QTException
getClip in interface QTDrawable
public void setTime(int time)
throws StdQTException
setTime in interface Playabletime - the new time value
public int getTime()
throws StdQTException
getTime in interface Playable
public int getDuration()
throws StdQTException
getDuration in interface Playable
public TimeBase getTimeBase()
throws QTException
TimeablegetTimeBase in interface Timeablequicktime.app.time.Timeable
public void setRate(float rate)
throws StdQTException
setRate in interface Timeablerate - the new playback rate.
public float getRate()
throws StdQTException
getRate in interface Timeable
public int getScale()
throws QTException
getScale in interface Playable
public float getVolume()
throws QTException
getVolume in interface AudioSpec
public void setVolume(float val)
throws QTException
setVolume in interface AudioSpec
public boolean isMuted()
throws QTException
isMuted in interface AudioSpec
public void setMuted(boolean flag)
throws QTException
setMuted in interface AudioSpecflag - turn muting on - true or off - false.
public void setControllerVisible(boolean flag)
throws QTException
public boolean isControllerVisible()
throws QTException
public void setControllerSizeReserved(boolean flag)
throws QTException
flag - the resize flagpublic boolean isControllerSizeReserved()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||