📄 directgroup.html
字号:
<TD><CODE><B><A HREF="../../../quicktime/app/display/DirectGroup.html#isAppropriate(java.lang.Object)">isAppropriate</A></B>(java.lang.Object object)</CODE><BR> Returns true if the Object object is an appropriate member of the Space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/app/display/GroupMember.html">GroupMember</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/DirectGroup.html#memberChanged(quicktime.app.display.QTDrawable)">memberChanged</A></B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A> d)</CODE><BR> 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.</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/display/DirectGroup.html#redrawMember(quicktime.app.display.QTDrawable, quicktime.qd.Region)">redrawMember</A></B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A> d, <A HREF="../../../quicktime/qd/Region.html">Region</A> invalidRgn)</CODE><BR> This is an optimized drawing method that will only reset the clipping of those objects that are behind the supplied member.</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/display/DirectGroup.html#setClip(quicktime.qd.Region)">setClip</A></B>(<A HREF="../../../quicktime/qd/Region.html">Region</A> theClip)</CODE><BR> This method allows you to set a Transformable's clipping region.</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/display/DirectGroup.html#setDisplayBounds(quicktime.qd.QDRect)">setDisplayBounds</A></B>(<A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> bounds)</CODE><BR> This method is called automatically via the QTCanvas object associated with this client to set its boundary.</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/display/DirectGroup.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> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/DirectGroup.html#setMemberAlignment(quicktime.app.display.QTDrawable, float, float)">setMemberAlignment</A></B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A> d, float xAlign, float yAlign)</CODE><BR> This will reset an item's alignment and redraw the group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/display/DirectGroup.html#setMemberLayer(quicktime.app.display.QTDrawable, int)">setMemberLayer</A></B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A> member, int layer)</CODE><BR> This sets the layer of the incoming drawable to the new layer.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.app.display.GroupDrawable"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.app.display.<A HREF="../../../quicktime/app/display/GroupDrawable.html">GroupDrawable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/display/GroupDrawable.html#getBackgroundClip()">getBackgroundClip</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#getBackgroundColor()">getBackgroundColor</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#getBackLayer()">getBackLayer</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#getClip()">getClip</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#getDisplayBounds()">getDisplayBounds</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#getFrontLayer()">getFrontLayer</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#getGroupMember(java.lang.Object)">getGroupMember</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#getGWorld()">getGWorld</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#getInitialSize()">getInitialSize</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#getLayerable(java.lang.Object)">getLayerable</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#getMatrix()">getMatrix</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#getOriginalSize()">getOriginalSize</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#getTransformable(java.lang.Object)">getTransformable</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#hitTest(int, int)">hitTest</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#isEmpty()">isEmpty</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#members()">members</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#redraw(quicktime.qd.Region)">redraw</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#removeMember(java.lang.Object)">removeMember</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#setAlignedMemberLocation(quicktime.app.display.QTDrawable, float, float)">setAlignedMemberLocation</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#setBackgroundColor(quicktime.qd.QDColor)">setBackgroundColor</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#setLocation(int, int)">setLocation</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#setMatrix(quicktime.std.image.Matrix)">setMatrix</A>, <A HREF="../../../quicktime/app/display/GroupDrawable.html#size()">size</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.app.spaces.SimpleSpace"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.app.spaces.<A HREF="../../../quicktime/app/spaces/SimpleSpace.html">SimpleSpace</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/spaces/SimpleSpace.html#addController(quicktime.app.spaces.Controller)">addController</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#addedTo(java.lang.Object)">addedTo</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#controllers()">controllers</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#finalize()">finalize</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#getProtocol()">getProtocol</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#getSource()">getSource</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#getTimer()">getTimer</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#hasMember(java.lang.Object)">hasMember</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#memberAdded(java.lang.Object)">memberAdded</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#memberRemoved(java.lang.Object)">memberRemoved</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#removeAllControllers()">removeAllControllers</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#removeAllMembers()">removeAllMembers</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#removeController(quicktime.app.spaces.Controller)">removeController</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#removedFrom(java.lang.Object)">removedFrom</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#tickle(float, int)">tickle</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#tickleList()">tickleList</A>, <A HREF="../../../quicktime/app/spaces/SimpleSpace.html#timeChanged(int)">timeChanged</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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.app.spaces.Listener"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface quicktime.app.spaces.<A HREF="../../../quicktime/app/spaces/Listener.html">Listener</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/spaces/Listener.html#addedTo(java.lang.Object)">addedTo</A>, <A HREF="../../../quicktime/app/spaces/Listener.html#removedFrom(java.lang.Object)">removedFrom</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.app.spaces.Space"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface quicktime.app.spaces.<A HREF="../../../quicktime/app/spaces/Space.html">Space</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/spaces/Space.html#addController(quicktime.app.spaces.Controller)">addController</A>, <A HREF="../../../quicktime/app/spaces/Space.html#controllers()">controllers</A>, <A HREF="../../../quicktime/app/spaces/Space.html#getSource()">getSource</A>, <A HREF="../../../quicktime/app/spaces/Space.html#getTimer()">getTimer</A>, <A HREF="../../../quicktime/app/spaces/Space.html#removeController(quicktime.app.spaces.Controller)">removeController</A>, <A HREF="../../../quicktime/app/spaces/Space.html#tickleList()">tickleList</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.app.spaces.DynamicCollection"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface quicktime.app.spaces.<A HREF="../../../quicktime/app/spaces/DynamicCollection.html">DynamicCollection</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/spaces/DynamicCollection.html#getProtocol()">getProtocol</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.app.spaces.Collection"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface quicktime.app.spaces.<A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#hasMember(java.lang.Object)">hasMember</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.app.time.Ticklish"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface quicktime.app.time.<A HREF="../../../quicktime/app/time/Ticklish.html">Ticklish</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/time/Ticklish.html#tickle(float, int)">tickle</A>, <A HREF="../../../quicktime/app/time/Ticklish.html#timeChanged(int)">timeChanged</A></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="DirectGroup(java.awt.Dimension, quicktime.qd.QDColor)"><!-- --></A><H3>DirectGroup</H3><PRE>public <B>DirectGroup</B>(java.awt.Dimension initialSize, <A HREF="../../../quicktime/qd/QDColor.html">QDColor</A> bc) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD><B>Deprecated.</B> <I>since QTJava 4.0, replaced by DirectGroup</I><P><DD>Create a new grouped drawable where the members draw directly to the screen.<DD><DL><DT><B>Parameters:</B><DD><CODE>initialSize</CODE> - the size of the display group<DD><CODE>bc</CODE> - the background color of the group<DT><B>See Also: </B><DD><A HREF="../../../quicktime/app/display/DirectGroup.html#DirectGroup(quicktime.qd.QDDimension, quicktime.qd.QDColor)"><CODE>DirectGroup(QDDimension,QDColor)</CODE></A></DL></DD></DL><HR><A NAME="DirectGroup(quicktime.qd.QDDimension, quicktime.qd.QDColor)"><!-- --></A><H3>DirectGroup</H3><PRE>public <B>DirectGroup</B>(<A HREF="../../../quicktime/qd/QDDimension.html">QDDimension</A> initialSize, <A HREF="../../../quicktime/qd/QDColor.html">QDColor</A> bc) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Create a new grouped drawable where the members draw directly to the screen.<DD><DL><DT><B>Parameters:</B><DD><CODE>initialSize</CODE> - the size of the display group<DD><CODE>bc</CODE> - the background color of the group</DL></DD></DL><HR><A NAME="DirectGroup(quicktime.qd.QDDimension, quicktime.qd.QDColor, int, int, quicktime.app.spaces.Protocol)"><!-- --></A><H3>DirectGroup</H3><PRE>protected <B>DirectGroup</B>(<A HREF="../../../quicktime/qd/QDDimension.html">QDDimension</A> initialSize, <A HREF="../../../quicktime/qd/QDColor.html">QDColor</A> bc, int scale, int period, <A HREF="../../../quicktime/app/spaces/Protocol.html">Protocol</A> p) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Create a new grouped drawable where the members draw directly to the screen.<DD><DL><DT><B>Parameters:</B><DD><CODE>initialSize</CODE> - the size of the display group<DD><CODE>bc</CODE> - the background color of the group<DD><CODE>scale</CODE> - the scale of the space's Timer<DD><CODE>period</CODE> - the period of the space's Timer<DD><CODE>p</CODE> - the default Protocol of members</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="isAppropriate(java.lang.Object)"><!-- --></A><H3>isAppropriate</H3><PRE>public boolean <B>isAppropriate</B>(java.lang.Object object)</PRE><DL><DD>Returns true if the Object object is an appropriate member of the Space. To be an appropriate member the object must pass the passProtocol method of the Protocol object of the Space. <P> In addition to the requirement that the object be some kind of QTDrawable, the object may also NOT be some kind of GroupDrawable. Thus you cannot embed DirectGroup objects in a parent DirectGroup.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/spaces/SimpleSpace.html#isAppropriate(java.lang.Object)">isAppropriate</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>object</CODE> - the Object to test<DT><B>Returns:</B><DD>true if the object passes the current protocol of the Protocol object of the Space.</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -