📄 moviepresenter.html
字号:
<!-- ============ 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="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/QTException.html">QTException</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>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/image/ImagePresenter.html#setGWorld(quicktime.qd.QDGraphics)">setGWorld</A></CODE> in class <CODE><A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cgp</CODE> - a QDGraphics object</DL></DD></DL><HR><A NAME="isPresenting()"><!-- --></A><H3>isPresenting</H3><PRE>public boolean <B>isPresenting</B>()</PRE><DL><DD>Returns true if the MoviePresenter is presenting its movie to a destination QDGraphics.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a boolean</DL></DD></DL><HR><A NAME="execute(quicktime.std.movies.Movie)"><!-- --></A><H3>execute</H3><PRE>public int <B>execute</B>(<A HREF="../../../quicktime/std/movies/Movie.html">Movie</A> m)</PRE><DL><DD>Implements the execute method on the MovieDrawingComplete interface. This method will set the movie changed state to true, so that a consequent call to the TwoDSprite Invalidator will invalidate its presenting sprite. If the MoviePresenter is presenting a movie to a destination QDGraphics it will redraw the movie to that destination. <P> The callback will be triggered as a result of a call to Movie.task and is fired whenever the Movie draws to its internal QDGraphics - the offscreen buffer that the presenter presents.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/std/movies/MovieDrawingComplete.html#execute(quicktime.std.movies.Movie)">execute</A></CODE> in interface <CODE><A HREF="../../../quicktime/std/movies/MovieDrawingComplete.html">MovieDrawingComplete</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m</CODE> - the Movie that is presented by this presenter<DT><B>Returns:</B><DD>an error code or 0 if no error</DL></DD></DL><HR><A NAME="getMovie()"><!-- --></A><H3>getMovie</H3><PRE>public <A HREF="../../../quicktime/std/movies/Movie.html">Movie</A> <B>getMovie</B>()</PRE><DL><DD>Return the movie that is being presented.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a movie</DL></DD></DL><HR><A NAME="getOffscreenBuffer()"><!-- --></A><H3>getOffscreenBuffer</H3><PRE>public <A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> <B>getOffscreenBuffer</B>()</PRE><DL><DD>Returns the offscreen buffer that the movie of the MoviePresenter is drawing into.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a QDGraphics.</DL></DD></DL><HR><A NAME="redraw(quicktime.qd.Region)"><!-- --></A><H3>redraw</H3><PRE>public 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>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/image/ImagePresenter.html#redraw(quicktime.qd.Region)">redraw</A></CODE> in class <CODE><A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</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="getTimeBase()"><!-- --></A><H3>getTimeBase</H3><PRE>public <A HREF="../../../quicktime/std/clocks/TimeBase.html">TimeBase</A> <B>getTimeBase</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns the current time base that provides the time foundation of this object.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/time/Timeable.html#getTimeBase()">getTimeBase</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/time/Timeable.html">Timeable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a TimeBase</DL></DD></DL><HR><A NAME="setRate(float)"><!-- --></A><H3>setRate</H3><PRE>public void <B>setRate</B>(float rate) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Sets the Timeable's playback rate. Typically a rate of zero will mean that the player is stopped, a positive value that the player is playing forwards, a negative value that the time values are decreasing.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/time/Timeable.html#setRate(float)">setRate</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/time/Timeable.html">Timeable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rate</CODE> - the new playback rate.</DL></DD></DL><HR><A NAME="getRate()"><!-- --></A><H3>getRate</H3><PRE>public float <B>getRate</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns the current rate of the Timeable object.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/time/Timeable.html#getRate()">getRate</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/time/Timeable.html">Timeable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the playback rate</DL></DD></DL><HR><A NAME="setTime(int)"><!-- --></A><H3>setTime</H3><PRE>public void <B>setTime</B>(int time) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Sets the player to the time specified. This time value at this level is a totally arbitrary value - what time that means in "real time" is determined by the implementor of the interface, typically the scale value will determine what a "real" time of 1 second is.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/players/Playable.html#setTime(int)">setTime</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/players/Playable.html">Playable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - the new time value</DL></DD></DL><HR><A NAME="getTime()"><!-- --></A><H3>getTime</H3><PRE>public int <B>getTime</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns the current time value of the object.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/players/Playable.html#getTime()">getTime</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/players/Playable.html">Playable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current time.</DL></DD></DL><HR><A NAME="getDuration()"><!-- --></A><H3>getDuration</H3><PRE>public int <B>getDuration</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns the duration of the media attached to the player. If the player has no media, or does not know the duration of its media it can return the constant kDurationUnknown.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/players/Playable.html#getDuration()">getDuration</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/players/Playable.html">Playable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the media duration.</DL></DD></DL><HR><A NAME="getScale()"><!-- --></A><H3>getScale</H3><PRE>public int <B>getScale</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns the time scale of the player - how many ticks per second.<DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -