⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 directgroup.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</DD></DL><HR><A NAME="addMember(java.lang.Object, int, float, float)"><!-- --></A><H3>addMember</H3><PRE>public boolean <B>addMember</B>(java.lang.Object&nbsp;member,                         int&nbsp;layer,                         float&nbsp;xAlign,                         float&nbsp;yAlign)                  throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Add a QTDrawable object to the group based on the provided alignment and layer parametres. This method is provided as a convenience method to position a member in the current display space of the Group.<DD><DL><DT><B>Parameters:</B><DD><CODE>drawer</CODE> - the QTDrawable object to be added<DD><CODE>layer</CODE> - the layer where the drawer will be placed<DD><CODE>xAlign</CODE> - the x position of the drawable within the group - 0 is left, 1 is bounds.width - member.width<DD><CODE>yAlign</CODE> - the y position of the drawable within the group - 0 is top, 1 is bounds.height - member.height<DT><B>Returns:</B><DD>true if the member is appropriate and was added.</DL></DD></DL><HR><A NAME="addMember(java.lang.Object, int)"><!-- --></A><H3>addMember</H3><PRE>public boolean <B>addMember</B>(java.lang.Object&nbsp;member,                         int&nbsp;layer)                  throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Add a QTDrawable object to the group based on the current location of the member and the specified layer parametre.<DD><DL><DT><B>Parameters:</B><DD><CODE>drawer</CODE> - the QTDrawable object to be added<DD><CODE>layer</CODE> - the layer where the drawer will be placed<DT><B>Returns:</B><DD>true if the member is appropriate and was added.</DL></DD></DL><HR><A NAME="addMember(java.lang.Object)"><!-- --></A><H3>addMember</H3><PRE>public boolean <B>addMember</B>(java.lang.Object&nbsp;member)                  throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Add a QTDrawable object to the group with the current location of the QTDrawable. If the member implements the Layerable interface it will get the layer and assign the layer appropriately. Otherwise, the member will be added with 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 member to add<DT><B>Returns:</B><DD>true if the member is appropriate and was added.</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>&nbsp;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/display/GroupDrawable.html#setGWorld(quicktime.qd.QDGraphics)">setGWorld</A></CODE> in class <CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html">GroupDrawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cgp</CODE> - a QDGraphics object</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>&nbsp;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 its boundary. <br><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html#setDisplayBounds(quicktime.qd.QDRect)">setDisplayBounds</A></CODE> in class <CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html">GroupDrawable</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="redrawMember(quicktime.app.display.QTDrawable, quicktime.qd.Region)"><!-- --></A><H3>redrawMember</H3><PRE>public void <B>redrawMember</B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A>&nbsp;d,                         <A HREF="../../../quicktime/qd/Region.html">Region</A>&nbsp;invalidRgn)                  throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This is an optimized drawing method that will only reset the clipping of those objects that are behind the supplied member. It will call memberChanged to do this. It will then only redraw those members who are behind the specified member if and only if the members behind were effected by the changed location of the specified member. The supplied invalidRgn should specify the area that the supplied QTDrawble was located at as this enables this method to determine which members are effected by the changed location of the member.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html#redrawMember(quicktime.app.display.QTDrawable, quicktime.qd.Region)">redrawMember</A></CODE> in class <CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html">GroupDrawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - the drawable from which to recalculate.<DD><CODE>invalidRgn</CODE> - the invalidRgn that the DirectGroup should redraw</DL></DD></DL><HR><A NAME="setClip(quicktime.qd.Region)"><!-- --></A><H3>setClip</H3><PRE>public void <B>setClip</B>(<A HREF="../../../quicktime/qd/Region.html">Region</A>&nbsp;theClip)             throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method allows you to set a Transformable's clipping region.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html#setClip(quicktime.qd.Region)">setClip</A></CODE> in class <CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html">GroupDrawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>theClip</CODE> - a Region that defines the new clipping region.</DL></DD></DL><HR><A NAME="memberChanged(quicktime.app.display.QTDrawable)"><!-- --></A><H3>memberChanged</H3><PRE>public <A HREF="../../../quicktime/app/display/GroupMember.html">GroupMember</A> <B>memberChanged</B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A>&nbsp;d)                          throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This tells the group that the position or display size of the  drawer has changed and it should recalculate its alignment and clipping based on the new position. If the drawer is not a member of the group then null is returned, if it is a member then a GroupMember object is returned that contains the layout characteristics of the drawer.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html#memberChanged(quicktime.app.display.QTDrawable)">memberChanged</A></CODE> in class <CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html">GroupDrawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - the drawer that has changed<DT><B>Returns:</B><DD>the GroupMember object that is associated with that drawer.</DL></DD></DL><HR><A NAME="setMemberAlignment(quicktime.app.display.QTDrawable, float, float)"><!-- --></A><H3>setMemberAlignment</H3><PRE>public boolean <B>setMemberAlignment</B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A>&nbsp;d,                                  float&nbsp;xAlign,                                  float&nbsp;yAlign)                           throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This will reset an item's alignment and redraw the group.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html#setMemberAlignment(quicktime.app.display.QTDrawable, float, float)">setMemberAlignment</A></CODE> in class <CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html">GroupDrawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - the drawer to reposition the alignment<DD><CODE>xAlign</CODE> - the new x alignment value for the member<DD><CODE>yAlign</CODE> - the new y alignemen value for the member<DT><B>Returns:</B><DD>true if the drawer is a member of the group</DL></DD></DL><HR><A NAME="setMemberLayer(quicktime.app.display.QTDrawable, int)"><!-- --></A><H3>setMemberLayer</H3><PRE>public boolean <B>setMemberLayer</B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A>&nbsp;member,                              int&nbsp;layer)                       throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This sets the layer of the incoming drawable to the new layer. It returns true if the drawable is a member of the group and was reset, false otherwise.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html#setMemberLayer(quicktime.app.display.QTDrawable, int)">setMemberLayer</A></CODE> in class <CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html">GroupDrawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - the group member to reset<DD><CODE>layer</CODE> - the new layer<DT><B>Returns:</B><DD>true if d is a member of the group</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DirectGroup.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../quicktime/app/display/FullScreenWindow.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>  &nbsp;&nbsp;<A HREF="DirectGroup.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_quicktime.app.display.GroupDrawable">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -