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

📄 mousecontroller.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 Use this method to add these objects to the controller. It the candidate is not an appropriate member for the controller to be controlled it will not be added and false is returned.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#addMember(java.lang.Object)">addMember</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>member</CODE> - the new member object that will be controlled.<DT><B>Returns:</B><DD>a boolean indicating whether the object was added or not.</DL></DD></DL><HR><A NAME="isAppropriate(java.lang.Object)"><!-- --></A><H3>isAppropriate</H3><PRE>public boolean <B>isAppropriate</B>(java.lang.Object&nbsp;object)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns true if the provided object is an appropriate candidate for membership in a collection. The provided QTJava collections use this method to ensure a minimal requirement of Class or Interface instanceof tests to ensure the type of object that can be added to a collection. Some collections can have a protocol that allows an application to further refine and tighten the type of object that is allowed within an individual collection.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#isAppropriate(java.lang.Object)">isAppropriate</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</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 supplied object is appropriate for this collection, or false if not</DL></DD></DL><HR><A NAME="removeMember(java.lang.Object)"><!-- --></A><H3>removeMember</H3><PRE>public void <B>removeMember</B>(java.lang.Object&nbsp;member)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Removes a member from the collection of objects that the controller controls<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#removeMember(java.lang.Object)">removeMember</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>member</CODE> - the object that will be removed from the controller.</DL></DD></DL><HR><A NAME="members()"><!-- --></A><H3>members</H3><PRE>public java.util.Enumeration <B>members</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns an enumeration of all members of this controller. If wholespace is set to true then this Enumeration may return an empty collection as the default behaviour of the MouseController is that if wholespace is true any object in the space is  controllable and thus there is no requirement to explicitly add members to this Controller.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#members()">members</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</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><B>Deprecated.</B>&nbsp;<DD>Returns true if the controller's collection of controllable objects is empty. If wholespace is true this does not mean that the controller is not capable of controlling object in its Space as the default behaviour of the MouseController is that if wholespace is true any object in the space is  controllable and thus there is no requirement to explicitly add members to this Controller.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#isEmpty()">isEmpty</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a boolean</DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns the number of members that have been explicitly added to the Controller.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#size()">size</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an int</DL></DD></DL><HR><A NAME="hasMember(java.lang.Object)"><!-- --></A><H3>hasMember</H3><PRE>public boolean <B>hasMember</B>(java.lang.Object&nbsp;object)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns true if the member has been explicitly added to this controller. As the default behaviour of the MouseController is that if wholespace is true any object in the space is  controllable and thus there is no requirement to explicitly add members to this Controller. Consequently this may return false, but if the object is a member of the controller's space it may still be controllable by this controller iff wholespace is set to true.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#hasMember(java.lang.Object)">hasMember</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A></CODE></DL></DD><DD>Following copied from interface: <CODE>quicktime.app.spaces.Collection</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>member</CODE> - the object to test for membership<DT><B>Returns:</B><DD>a boolean</DL></DD></DL><HR><A NAME="mouseEntered(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseEntered</H3><PRE>public void <B>mouseEntered</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>If the responder is interested in mouseEntered events it will  be activated when the user's mouse enters the QTCanvas space.<DD><DL><DT><B>Specified by: </B><DD><CODE>mouseEntered</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the mouse event</DL></DD></DL><HR><A NAME="mouseExited(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseExited</H3><PRE>public void <B>mouseExited</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>If the responder is interested in mouseExited events it will  be deactivated after the user's mouse exits the QTCanvas space.<DD><DL><DT><B>Specified by: </B><DD><CODE>mouseExited</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the mouse event</DL></DD></DL><HR><A NAME="setTranslation()"><!-- --></A><H3>setTranslation</H3><PRE>protected void <B>setTranslation</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>This method is used to setup translation values for x and y of an event to translate the event into the local coordinate space of a member's display Space. In the case of a DirectGroup the translation is (0, 0), in the case of a Compositor member (which can be embedded n-deep) the translation is the sum of the locations of the space's parents. <P> The method sets the value of the protected instance variables xLocationOffset and yLocation offset.<DD><DL></DL></DD></DL><HR><A NAME="mousePressed(java.awt.event.MouseEvent)"><!-- --></A><H3>mousePressed</H3><PRE>public void <B>mousePressed</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>If the responder is interested in mousePressed events it will  be activated when the user presses the mouse within the display space.<DD><DL><DT><B>Specified by: </B><DD><CODE>mousePressed</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the mouse event</DL></DD></DL><HR><A NAME="mouseReleased(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseReleased</H3><PRE>public void <B>mouseReleased</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>If the responder is interested in mouseReleased events it will  be activated when the user releases the mouse within the display space.<DD><DL><DT><B>Specified by: </B><DD><CODE>mouseReleased</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the mouse event</DL></DD></DL><HR><A NAME="mouseClicked(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseClicked</H3><PRE>public void <B>mouseClicked</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>If the responder is interested in mouseClick events it will  be activated when the user clicks.<DD><DL><DT><B>Specified by: </B><DD><CODE>mouseClicked</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the mouse event</DL></DD></DL><HR><A NAME="mouseMoved(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseMoved</H3><PRE>public void <B>mouseMoved</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>If the responder is interested in mouseMoved events it will  be activated when the user's mouse moves within the display space.<DD><DL><DT><B>Specified by: </B><DD><CODE>mouseMoved</CODE> in interface <CODE>java.awt.event.MouseMotionListener</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the mouse event</DL></DD></DL><HR><A NAME="mouseDragged(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseDragged</H3><PRE>public void <B>mouseDragged</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>If the responder is interested in mouseDragged events it will  be activated when the user drags the mouse within the display space.<DD><DL><DT><B>Specified by: </B><DD><CODE>mouseDragged</CODE> in interface <CODE>java.awt.event.MouseMotionListener</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the mouse event</DL></DD></DL><HR><A NAME="doDragTarget(java.awt.event.MouseEvent)"><!-- --></A><H3>doDragTarget</H3><PRE>protected void <B>doDragTarget</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD><DL></DL></DD></DL><HR><A NAME="deactivateResponder()"><!-- --></A><H3>deactivateResponder</H3><PRE>protected void <B>deactivateResponder</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>A method that is called whenever the MouseController deactivates its responder. A subclass should use this method to deactivate a responder (either explicitly or calling super.deactivateResponder).  For example a user may have dragged a member out of a group, so the drag action's target is no longer valid and  the Responder has no target to act upon.<DD><DL></DL></DD></DL><HR><A NAME="responderActivated()"><!-- --></A><H3>responderActivated</H3><PRE>protected void <B>responderActivated</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>A notification method that is called whenever the MouseController activates its responder.<DD><DL></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/MouseController.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;<A HREF="../../../quicktime/app/actions/MatrixAction.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../quicktime/app/actions/MouseResponder.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="MouseController.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="#field_summary">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;<A HREF="#field_detail">FIELD</A>&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 + -