📄 compositor.html
字号:
<DT><B>Parameters:</B><DD><CODE>spriteGWorld</CODE> - Specifies the sprites offscreen QDGraphics. The size of this QDGraphics determines the corresponding display size when the SpriteWorld is added to its display surface.<DD><CODE>backgroundColor</CODE> - Specifies the background color.<DD><CODE>background</CODE> - Specifies the background QDGraphics to be used to composit background sprites into. This will give better performance if the sprites in front of the background are changing.<DD><CODE>scale</CODE> - the amount with which a second is divided into at a rate of one<DD><CODE>period</CODE> - the number of scale ticks that elapse between invocations of the action.</DL></DD></DL><HR><A NAME="Compositor(quicktime.qd.QDGraphics, quicktime.qd.QDColor, quicktime.qd.QDGraphics, int, int, quicktime.app.spaces.Protocol)"><!-- --></A><H3>Compositor</H3><PRE>protected <B>Compositor</B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> spriteGWorld, <A HREF="../../../quicktime/qd/QDColor.html">QDColor</A> backgroundColor, <A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> background, int scale, int period, <A HREF="../../../quicktime/app/spaces/Protocol.html">Protocol</A> defaultProtocol) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Used by subclasses to construct a Compositor. The subclass must specify a background or a backgroundColor but not both.<DD><DL><DT><B>Parameters:</B><DD><CODE>spriteGWorld</CODE> - this the buffer which the internal SpriteWorld uses to composit its image into.<DD><CODE>background</CODE> - Specifies the background QDGraphics to be used to composit background sprites into. This will give better performance if the sprites in front of the background are changing.<DD><CODE>backgroundColor</CODE> - this is background color that can be supplied to the SpriteWorld<DD><CODE>scale</CODE> - the initial scale of the Space's timer<DD><CODE>period</CODE> - the initial period of the Space's timer<DD><CODE>defaultProtocol</CODE> - the minimal Protocol that members of the SWCompositor must meet</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="members()"><!-- --></A><H3>members</H3><PRE>public java.util.Enumeration <B>members</B>()</PRE><DL><DD>Return an enumeration to enumerate over all of the members that have been added to the Compositor.<DD><DL><DT><B>Returns:</B><DD>an Enumeration</DL></DD></DL><HR><A NAME="sprites()"><!-- --></A><H3>sprites</H3><PRE>public java.util.Enumeration <B>sprites</B>()</PRE><DL><DD>This returns an Enumeration that allows your application to iterate over the TwoDSprite presenters that are responsible for presenting the image data within the Compositor.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/anim/SWCompositor.html#sprites()">sprites</A></CODE> in class <CODE><A HREF="../../../quicktime/app/anim/SWCompositor.html">SWCompositor</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an Enumeration;</DL></DD></DL><HR><A NAME="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Returns true if there are no members of the Compositor.<DD><DL><DT><B>Returns:</B><DD>a boolean</DL></DD></DL><HR><A NAME="getMemberSprite(java.lang.Object)"><!-- --></A><H3>getMemberSprite</H3><PRE>public <A HREF="../../../quicktime/app/anim/TwoDSprite.html">TwoDSprite</A> <B>getMemberSprite</B>(java.lang.Object member)</PRE><DL><DD>This method returns the TwoDSprite presenter that is presenting the image data of the given member. It returns null if the object is not a member.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/anim/SWCompositor.html#getMemberSprite(java.lang.Object)">getMemberSprite</A></CODE> in class <CODE><A HREF="../../../quicktime/app/anim/SWCompositor.html">SWCompositor</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>member</CODE> - the member object<DT><B>Returns:</B><DD>the member's TwoDSprite presenter</DL></DD></DL><HR><A NAME="getSpriteMember(quicktime.app.anim.TwoDSprite)"><!-- --></A><H3>getSpriteMember</H3><PRE>public java.lang.Object <B>getSpriteMember</B>(<A HREF="../../../quicktime/app/anim/TwoDSprite.html">TwoDSprite</A> sprite)</PRE><DL><DD>This method returns the member that is being presented by the supplied TwoDSprite presenter. It returns null if the TwoDSprite is not present in the Compositor.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/anim/SWCompositor.html#getSpriteMember(quicktime.app.anim.TwoDSprite)">getSpriteMember</A></CODE> in class <CODE><A HREF="../../../quicktime/app/anim/SWCompositor.html">SWCompositor</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>sprite</CODE> - the TwoDSprite presenter<DT><B>Returns:</B><DD>the member that is being presented by the supplied TwoDSprite presenter</DL></DD></DL><HR><A NAME="addMember(java.lang.Object)"><!-- --></A><H3>addMember</H3><PRE>public boolean <B>addMember</B>(java.lang.Object member) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Adds a member to the Compositor. The member must be some kind of ImageSpec object. If the member implements the Layerable interface it will get the layer and assign the layer appropriately. If the member is an instanceof the TwoDSprite class, then it will use the visibility state of that class. Otherwise, the member will be added with default settings of visiblity set to true and a layer of 1.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/spaces/SimpleSpace.html#addMember(java.lang.Object)">addMember</A></CODE> in class <CODE><A HREF="../../../quicktime/app/spaces/SimpleSpace.html">SimpleSpace</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>member</CODE> - the object to add.<DT><B>Returns:</B><DD>true if the object is appropriate for this collection</DL></DD></DL><HR><A NAME="addMember(java.lang.Object, int)"><!-- --></A><H3>addMember</H3><PRE>public boolean <B>addMember</B>(java.lang.Object member, int layer) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Adds a member to the Compositor. The member must be some kind of ImageSpec object. If the member is an instanceof the TwoDSprite class, then it will use the visibility state of that class. The member will be added with default settings of visiblity set to true.<DD><DL><DT><B>Parameters:</B><DD><CODE>member</CODE> - the object to add.<DD><CODE>layer</CODE> - the layer within the Compositor that the member will be presented at.<DT><B>Returns:</B><DD>true if the object is appropriate for this collection</DL></DD></DL><HR><A NAME="addMember(java.lang.Object, int, boolean)"><!-- --></A><H3>addMember</H3><PRE>public boolean <B>addMember</B>(java.lang.Object member, int layer, boolean initiallyVisible) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Adds a member to the Compositor. The member must be some kind of ImageSpec object.<DD><DL><DT><B>Parameters:</B><DD><CODE>member</CODE> - the object to add.<DD><CODE>layer</CODE> - the layer within the Compositor that the member will be presented at.<DD><CODE>initiallyVisible</CODE> - if true the member is intially visible.<DT><B>Returns:</B><DD>true if the object is appropriate for this collection</DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Returns the number of members of the collection.<DD><DL><DT><B>Returns:</B><DD>an int</DL></DD></DL><HR><A NAME="getFrontLayer()"><!-- --></A><H3>getFrontLayer</H3><PRE>public int <B>getFrontLayer</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns the frontmost layer of all of the TwoDSprite presenters of the Compositor.<DD><DL><DT><B>Returns:</B><DD>the frontmost layer</DL></DD></DL><HR><A NAME="getBackLayer()"><!-- --></A><H3>getBackLayer</H3><PRE>public int <B>getBackLayer</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns the backmost layer of all of the TwoDSprite presenters of the Compositor.<DD><DL><DT><B>Returns:</B><DD>the backmost layer</DL></DD></DL><HR><A NAME="removeMember(java.lang.Object)"><!-- --></A><H3>removeMember</H3><PRE>public void <B>removeMember</B>(java.lang.Object member) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Remove a sprite from the Compositor and remove it visually. If the applications have defined control actions to this member these actions should be disabled before the member is removed from the Compositor.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/spaces/SimpleSpace.html#removeMember(java.lang.Object)">removeMember</A></CODE> in class <CODE><A HREF="../../../quicktime/app/spaces/SimpleSpace.html">SimpleSpace</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>member</CODE> - the member to remove</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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/Compositor.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"> PREV CLASS <A HREF="../../../quicktime/app/anim/SWCompositor.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="Compositor.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></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -