📄 qtplayer.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/QTPlayer.html#setGWorld(quicktime.qd.QDGraphics)">setGWorld</A></B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> cgp)</CODE><BR> QTCanvas calls this method to give the client the QDGraphics object it should use to do its drawing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/QTPlayer.html#setLocation(int, int)">setLocation</A></B>(int x, int y)</CODE><BR> A convenience method to set the position of a QTDrawable object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/QTPlayer.html#setMatrix(quicktime.std.image.Matrix)">setMatrix</A></B>(<A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A> matrix)</CODE><BR> This method sets the current matrix of the Transformable object to the new matrix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/QTPlayer.html#setMuted(boolean)">setMuted</A></B>(boolean flag)</CODE><BR> Allows the muting of the specific channel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/QTPlayer.html#setRate(float)">setRate</A></B>(float rate)</CODE><BR> Sets the player to the playback rate.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/QTPlayer.html#setTime(int)">setTime</A></B>(int time)</CODE><BR> Sets the player to the time specified.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/QTPlayer.html#setVolume(float)">setVolume</A></B>(float val)</CODE><BR> Sets the volume.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/QTPlayer.html#task()">task</A></B>()</CODE><BR> This method performs idle processing for the QTPlayer and will be automatically called if this object is added to the TaskThread object.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.app.time.Tasking"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.app.time.<A HREF="../../../quicktime/app/time/Tasking.html">Tasking</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/time/Tasking.html#addedToTasker(quicktime.app.time.TaskThread)">addedToTasker</A>, <A HREF="../../../quicktime/app/time/Tasking.html#getDefaultTasker()">getDefaultTasker</A>, <A HREF="../../../quicktime/app/time/Tasking.html#getTasker()">getTasker</A>, <A HREF="../../../quicktime/app/time/Tasking.html#removedFromTasker()">removedFromTasker</A>, <A HREF="../../../quicktime/app/time/Tasking.html#setDefaultTasker(quicktime.app.time.TaskThread)">setDefaultTasker</A>, <A HREF="../../../quicktime/app/time/Tasking.html#startTasking()">startTasking</A>, <A HREF="../../../quicktime/app/time/Tasking.html#stopTasking()">stopTasking</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="QTPlayer(quicktime.std.movies.MovieController)"><!-- --></A><H3>QTPlayer</H3><PRE>public <B>QTPlayer</B>(<A HREF="../../../quicktime/std/movies/MovieController.html">MovieController</A> mc) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This constructor creates a QTPlayer object given a QuickTime MovieController object.<DD><DL><DT><B>Parameters:</B><DD><CODE>mc</CODE> - a MovieController object</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="addedTo(java.lang.Object)"><!-- --></A><H3>addedTo</H3><PRE>public void <B>addedTo</B>(java.lang.Object interest)</PRE><DL><DD>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. The QTPlayer expects that the incoming object is some kind of java.awt.Component - in which case it registers its interest in mouse events from that Component source. If the incoming object is not some kind of Component then nothing is done.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Listener.html#addedTo(java.lang.Object)">addedTo</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Listener.html">Listener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>interest</CODE> - the object that is to be the source of interest for the the object that implements this interface.</DL></DD></DL><HR><A NAME="removedFrom(java.lang.Object)"><!-- --></A><H3>removedFrom</H3><PRE>public void <B>removedFrom</B>(java.lang.Object interest)</PRE><DL><DD>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. The QTPlayer expects that the incoming object is some kind of java.awt.Component - in which case it removes its interest in mouse events from that Component source. If the incoming object is not some kind of Component then nothing is done.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Listener.html#removedFrom(java.lang.Object)">removedFrom</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Listener.html">Listener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>interest</CODE> - the object that was the source of interest for the the object that implements this interface.</DL></DD></DL><HR><A NAME="getMovieController()"><!-- --></A><H3>getMovieController</H3><PRE>public <A HREF="../../../quicktime/std/movies/MovieController.html">MovieController</A> <B>getMovieController</B>()</PRE><DL><DD>This allows you to access the contained movie controller.<DD><DL></DL></DD></DL><HR><A NAME="getInitialSize()"><!-- --></A><H3>getInitialSize</H3><PRE>public java.awt.Dimension <B>getInitialSize</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD><B>Deprecated.</B> <I>since QTJava 4.0</I><P><DD>This method returns the original size before the transformations specified in the returned matrix are applied.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><CODE>()</CODE></DL></DD></DL><HR><A NAME="getOriginalSize()"><!-- --></A><H3>getOriginalSize</H3><PRE>public <A HREF="../../../quicktime/qd/QDDimension.html">QDDimension</A> <B>getOriginalSize</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method returns the original size before the transformations specified in the returned matrix are applied.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/Transformable.html#getOriginalSize()">getOriginalSize</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/Transformable.html">Transformable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the original size of the movie and its controller</DL></DD></DL><HR><A NAME="getMatrix()"><!-- --></A><H3>getMatrix</H3><PRE>public <A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A> <B>getMatrix</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This will return the client's current display transformations <br><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/Transformable.html#getMatrix()">getMatrix</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/Transformable.html">Transformable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the display transformations of the client</DL></DD></DL><HR><A NAME="setMatrix(quicktime.std.image.Matrix)"><!-- --></A><H3>setMatrix</H3><PRE>public void <B>setMatrix</B>(<A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A> matrix) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method sets the current matrix of the Transformable object to the new matrix.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/image/Transformable.html#setMatrix(quicktime.std.image.Matrix)">setMatrix</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/image/Transformable.html">Transformable</A></CODE></DL></DD></DL><HR><A NAME="getGWorld()"><!-- --></A><H3>getGWorld</H3><PRE>public <A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> <B>getGWorld</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>QTCanvas calls this method to get the destination QDGraphics of its client.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/QTDrawable.html#getGWorld()">getGWorld</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a QDGraphics object or null</DL></DD></DL><HR><A NAME="setGWorld(quicktime.qd.QDGraphics)"><!-- --></A><H3>setGWorld</H3><PRE>public void <B>setGWorld</B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> cgp) throws <A HREF="../../../quicktime/qd/QDException.html">QDException</A>, <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>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. <br><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/QTDrawable.html#setGWorld(quicktime.qd.QDGraphics)">setGWorld</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cgp</CODE> - a QDGraphics object</DL></DD></DL><HR><A NAME="redraw(quicktime.qd.Region)"><!-- --></A><H3>redraw</H3><PRE>public final void <B>redraw</B>(<A HREF="../../../quicktime/qd/Region.html">Region</A> invalidRgn) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>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.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/Drawable.html#redraw(quicktime.qd.Region)">redraw</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/Drawable.html">Drawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>invalidRgn</CODE> - the invalidRgn that the client should redraw</DL></DD></DL><HR><A NAME="setDisplayBounds(quicktime.qd.QDRect)"><!-- --></A><H3>setDisplayBounds</H3><PRE>public void <B>setDisplayBounds</B>(<A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> bounds) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method is called automatically via the QTCanvas object associated with this client to set the boundary of the movie. <br><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/Drawable.html#setDisplayBounds(quicktime.qd.QDRect)">setDisplayBounds</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/Drawable.html">Drawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bounds</CODE> - a QDRect object describing the boundary</DL></DD></DL><HR><A NAME="setLocation(int, int)"><!-- --></A><H3>setLocation</H3><PRE>public void <B>setLocation</B>(int x, int y) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>A convenience method to set the position of a QTDrawable object.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/QTDrawable.html#setLocation(int, int)">setLocation</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the new x location<DD><CODE>y</CODE> - the new y location</DL></DD></DL><HR><A NAME="getDisplayBounds()"><!-- --></A><H3>getDisplayBounds</H3><PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -