📄 qtmousetargetcontroller.html
字号:
<A NAME="removeActiveHandler()"><!-- --></A><H3>removeActiveHandler</H3><PRE>protected void <B>removeActiveHandler</B>()</PRE><DL><DD>This method is called when a controller is removed from its space and it had an active event handler<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/event/QTMouseController.html#removeActiveHandler()">removeActiveHandler</A></CODE> in class <CODE><A HREF="../../../quicktime/app/event/QTMouseController.html">QTMouseController</A></CODE></DL></DD></DL><HR><A NAME="addHandler()"><!-- --></A><H3>addHandler</H3><PRE>protected void <B>addHandler</B>()</PRE><DL><DD>This method is called when a controller is added to its space and the controller needs to create its event handler<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/event/QTMouseController.html#addHandler()">addHandler</A></CODE> in class <CODE><A HREF="../../../quicktime/app/event/QTMouseController.html">QTMouseController</A></CODE></DL></DD></DL><HR><A NAME="isWholespace()"><!-- --></A><H3>isWholespace</H3><PRE>public boolean <B>isWholespace</B>()</PRE><DL><DD>Returns the current setting of the wholespace flag.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a boolean</DL></DD></DL><HR><A NAME="setWholespace(boolean)"><!-- --></A><H3>setWholespace</H3><PRE>public void <B>setWholespace</B>(boolean flag)</PRE><DL><DD>Sets the new value of the wholespace flag.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - if true all objects in the controller's space are potentially controllable.</DL></DD></DL><HR><A NAME="addMember(java.lang.Object)"><!-- --></A><H3>addMember</H3><PRE>public boolean <B>addMember</B>(java.lang.Object member)</PRE><DL><DD>If wholespace is set to false, then only objects that are explicitly added to the controller will be controlled by it. Use this method to add these objects to the controller.<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 object)</PRE><DL><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. This method will also return true if the Controller has not been addedTo a space, in which case when it is the appropriate test will be performed.</DL></DD></DL><HR><A NAME="removeMember(java.lang.Object)"><!-- --></A><H3>removeMember</H3><PRE>public void <B>removeMember</B>(java.lang.Object member)</PRE><DL><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>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>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>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 object)</PRE><DL><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="addQTMouseListener(quicktime.app.event.QTMouseListener)"><!-- --></A><H3>addQTMouseListener</H3><PRE>public void <B>addQTMouseListener</B>(<A HREF="../../../quicktime/app/event/QTMouseListener.html">QTMouseListener</A> l)</PRE><DL><DD>Add a QTMouseListener for this controller. The controller will take the appropriate action based on the known mouse listeners in the quicktime.app.event package.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/event/QTMouseController.html#addQTMouseListener(quicktime.app.event.QTMouseListener)">addQTMouseListener</A></CODE> in class <CODE><A HREF="../../../quicktime/app/event/QTMouseController.html">QTMouseController</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - a new QTMouseListener</DL></DD></DL><HR><A NAME="removeQTMouseListener(quicktime.app.event.QTMouseListener)"><!-- --></A><H3>removeQTMouseListener</H3><PRE>public void <B>removeQTMouseListener</B>(<A HREF="../../../quicktime/app/event/QTMouseListener.html">QTMouseListener</A> l)</PRE><DL><DD>Remove a QTMouseListener for this controller.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/event/QTMouseController.html#removeQTMouseListener(quicktime.app.event.QTMouseListener)">removeQTMouseListener</A></CODE> in class <CODE><A HREF="../../../quicktime/app/event/QTMouseController.html">QTMouseController</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - a new QTMouseListener</DL></DD></DL><HR><A NAME="doMousePressed(quicktime.app.event.QTMouseEvent)"><!-- --></A><H3>doMousePressed</H3><PRE>protected void <B>doMousePressed</B>(<A HREF="../../../quicktime/app/event/QTMouseEvent.html">QTMouseEvent</A> e)</PRE><DL><DD>This method dispatches the event to the appropriate listeners. Subclasses can overide this method to do any particular processing that is required for this type of mouse event.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/event/QTMouseController.html#doMousePressed(quicktime.app.event.QTMouseEvent)">doMousePressed</A></CODE> in class <CODE><A HREF="../../../quicktime/app/event/QTMouseController.html">QTMouseController</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the translated mouse event</DL></DD></DL><HR><A NAME="mouseReleased(quicktime.app.event.QTMouseEvent)"><!-- --></A><H3>mouseReleased</H3><PRE>public void <B>mouseReleased</B>(<A HREF="../../../quicktime/app/event/QTMouseEvent.html">QTMouseEvent</A> e)</PRE><DL><DD>If the QTMouseController has a MouseButtonListener(s) it will dispatch release events that occur within its Space's area to those listeners.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/event/QTMouseController.html#mouseReleased(quicktime.app.event.QTMouseEvent)">mouseReleased</A></CODE> in class <CODE><A HREF="../../../quicktime/app/event/QTMouseController.html">QTMouseController</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the QTMouseEvent of this type.</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -