📄 moviepresenter.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Mon Jul 15 11:49:50 PDT 2002 --><TITLE>: Class MoviePresenter</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MoviePresenter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../quicktime/app/players/MoviePlayer.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/app/players/QTPlayer.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="MoviePresenter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">quicktime.app.players</FONT><BR>Class MoviePresenter</H2><PRE>java.lang.Object | +--<A HREF="../../../quicktime/app/image/ImagePresenter.html">quicktime.app.image.ImagePresenter</A> | +--<B>quicktime.app.players.MoviePresenter</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../quicktime/app/audio/AudioSpec.html">AudioSpec</A>, <A HREF="../../../quicktime/app/image/Compositable.html">Compositable</A>, <A HREF="../../../quicktime/app/display/Drawable.html">Drawable</A>, <A HREF="../../../quicktime/app/display/DrawingNotifier.html">DrawingNotifier</A>, <A HREF="../../../quicktime/app/image/DynamicImage.html">DynamicImage</A>, <A HREF="../../../quicktime/app/image/ImageSettable.html">ImageSettable</A>, <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>, <A HREF="../../../quicktime/app/spaces/Listener.html">Listener</A>, <A HREF="../../../quicktime/std/movies/MovieDrawingComplete.html">MovieDrawingComplete</A>, <A HREF="../../../quicktime/app/players/Playable.html">Playable</A>, <A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A>, <A HREF="../../../quicktime/app/time/Timeable.html">Timeable</A>, <A HREF="../../../quicktime/app/image/Transformable.html">Transformable</A></DD></DL><HR><DL><DT>public class <B>MoviePresenter</B><DT>extends <A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A><DT>implements <A HREF="../../../quicktime/app/audio/AudioSpec.html">AudioSpec</A>, <A HREF="../../../quicktime/app/players/Playable.html">Playable</A>, <A HREF="../../../quicktime/app/image/DynamicImage.html">DynamicImage</A>, <A HREF="../../../quicktime/std/movies/MovieDrawingComplete.html">MovieDrawingComplete</A>, <A HREF="../../../quicktime/app/display/DrawingNotifier.html">DrawingNotifier</A></DL><P>The MoviePresenter is used to present typically a movie as a member of a SWCompositor. It will create an Invalidator to innvalidate its TwoDSprite that is presenting the movie in the SWCompositor when the movie redraws. <P> Outside of the use in the SWCompositor this Presenter also gives the ability to apply a GraphicsMode to the overall output of a movie and can be used also for easy manipulation and control of a movie's display characteristics, location and transformations. For example if you are moving a movie around the screen (for example bouncing it around) you will get better performance of the visual output using a MoviePresenter than doing these kinds of activities with a standard MoviePlayer presentation. <P> It uses the MovieDrawingComplete callback to either invalidate its presenting TwoDSprite or to redraw itself to the destination QDGraphics.<P><DL><DT><B>See Also: </B><DD><CODE>quicktime.app.display.SWCompositor</CODE></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../quicktime/app/anim/TwoDSprite.html">TwoDSprite</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/MoviePresenter.html#spritePresenter">spritePresenter</A></B></CODE><BR> </TD></TR></TABLE> <A NAME="fields_inherited_from_class_quicktime.app.players.Playable"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface quicktime.app.players.<A HREF="../../../quicktime/app/players/Playable.html">Playable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/players/Playable.html#kDurationUnknown">kDurationUnknown</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../quicktime/app/players/MoviePresenter.html#MoviePresenter(quicktime.std.movies.Movie)">MoviePresenter</A></B>(<A HREF="../../../quicktime/std/movies/Movie.html">Movie</A> m)</CODE><BR> Create a MoviePresenter with the supplied movie.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../quicktime/app/players/MoviePresenter.html#MoviePresenter(quicktime.std.movies.Movie, quicktime.qd.QDGraphics)">MoviePresenter</A></B>(<A HREF="../../../quicktime/std/movies/Movie.html">Movie</A> m, <A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> g)</CODE><BR> Create a MoviePresenter with the supplied movie.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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/MoviePresenter.html#addDrawingListener(quicktime.app.display.DrawingListener)">addDrawingListener</A></B>(<A HREF="../../../quicktime/app/display/DrawingListener.html">DrawingListener</A> listener)</CODE><BR> Registers an object as a listener of the MoviePlayer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/app/actions/Invalidator.html">Invalidator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/MoviePresenter.html#addedToCompositor(quicktime.app.anim.SWCompositor, quicktime.app.anim.TwoDSprite)">addedToCompositor</A></B>(<A HREF="../../../quicktime/app/anim/SWCompositor.html">SWCompositor</A> c, <A HREF="../../../quicktime/app/anim/TwoDSprite.html">TwoDSprite</A> s)</CODE><BR> Returns an object that invalidates a sprite.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/MoviePresenter.html#execute(quicktime.std.movies.Movie)">execute</A></B>(<A HREF="../../../quicktime/std/movies/Movie.html">Movie</A> m)</CODE><BR> Implements the execute method on the MovieDrawingComplete interface.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/MoviePresenter.html#getDuration()">getDuration</A></B>()</CODE><BR> Returns the duration of the media attached to the player.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/std/movies/Movie.html">Movie</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/MoviePresenter.html#getMovie()">getMovie</A></B>()</CODE><BR> Return the movie that is being presented.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/MoviePresenter.html#getOffscreenBuffer()">getOffscreenBuffer</A></B>()</CODE><BR> Returns the offscreen buffer that the movie of the MoviePresenter is drawing into.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/MoviePresenter.html#getRate()">getRate</A></B>()</CODE><BR> Returns the current rate of the Timeable object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/players/MoviePresenter.html#getScale()">getScale</A></B>()</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -