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

📄 mousecontroller.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MouseController.html#mousePressed(java.awt.event.MouseEvent)">mousePressed</A></B>(java.awt.event.MouseEvent&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;If the responder is interested in mousePressed events it will  be activated when the user presses the mouse within the display space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MouseController.html#mouseReleased(java.awt.event.MouseEvent)">mouseReleased</A></B>(java.awt.event.MouseEvent&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;If the responder is interested in mouseReleased events it will  be activated when the user releases the mouse within the display space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MouseController.html#removedFrom(java.lang.Object)">removedFrom</A></B>(java.lang.Object&nbsp;interest)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;This method is called by the specified object when the instance of  the class that implements this interface is removed from the object that is the source of the interest.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MouseController.html#removedFromSpace()">removedFromSpace</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Called by the Space when a Controller is being removed from a Space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MouseController.html#removeMember(java.lang.Object)">removeMember</A></B>(java.lang.Object&nbsp;member)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Removes a member from the collection of objects that the controller controls</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MouseController.html#responderActivated()">responderActivated</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;A notification method that is called whenever the MouseController activates its responder.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MouseController.html#setTargetSpace(quicktime.app.spaces.Space)">setTargetSpace</A></B>(<A HREF="../../../quicktime/app/spaces/Space.html">Space</A>&nbsp;s)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;This method is defined by the subclass to ensure that the incoming Space is an appropriate kind of space for the MouseController to be attached too.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MouseController.html#setTranslation()">setTranslation</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MouseController.html#setWholespace(boolean)">setWholespace</A></B>(boolean&nbsp;flag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Sets the new value of the wholespace flag.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MouseController.html#size()">size</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Returns the number of members that have been explicitly added to the Controller.</TD></TR></TABLE>&nbsp;<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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="xLocationOffset"><!-- --></A><H3>xLocationOffset</H3><PRE>protected int <B>xLocationOffset</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;</DL><HR><A NAME="yLocationOffset"><!-- --></A><H3>yLocationOffset</H3><PRE>protected int <B>yLocationOffset</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;</DL><!-- ========= 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="MouseController(quicktime.app.actions.MouseResponder, boolean)"><!-- --></A><H3>MouseController</H3><PRE>protected <B>MouseController</B>(<A HREF="../../../quicktime/app/actions/MouseResponder.html">MouseResponder</A>&nbsp;mr,                          boolean&nbsp;wholespace)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Creates a mouse controller with its responder.<DD><DL><DT><B>Parameters:</B><DD><CODE>mr</CODE> - the responder that will become active to respond to mouse events<DD><CODE>wholespace</CODE> - sets the value of the wholespace flag</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="getSpace()"><!-- --></A><H3>getSpace</H3><PRE>public abstract <A HREF="../../../quicktime/app/spaces/Space.html">Space</A> <B>getSpace</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>This method returns the Space which the MouseController has been attached to.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current space.</DL></DD></DL><HR><A NAME="addedToSpace(quicktime.app.spaces.Space)"><!-- --></A><H3>addedToSpace</H3><PRE>public final void <B>addedToSpace</B>(<A HREF="../../../quicktime/app/spaces/Space.html">Space</A>&nbsp;s)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>This method is called by the space when a Controller is being addedTo the Space s. If the Controller is not an appropriate controller for that kind of Space this method can throw an exception and the controller won't be added to the Space.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Controller.html#addedToSpace(quicktime.app.spaces.Space)">addedToSpace</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Controller.html">Controller</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the Space being added to<DT><B>See Also: </B><DD><CODE>setTargetSpace()</CODE></DL></DD></DL><HR><A NAME="removedFromSpace()"><!-- --></A><H3>removedFromSpace</H3><PRE>public void <B>removedFromSpace</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Called by the Space when a Controller is being removed from a Space. This is only called by the Space on controllers that have previously been added, thus the space they are being removed from is the space they were added to. Sets the targetSpace to null.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Controller.html#removedFromSpace()">removedFromSpace</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Controller.html">Controller</A></CODE></DL></DD></DL><HR><A NAME="getResponder()"><!-- --></A><H3>getResponder</H3><PRE>protected <A HREF="../../../quicktime/app/actions/MouseResponder.html">MouseResponder</A> <B>getResponder</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>This method returns the MouseResponder that is attached to the MouseController.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a MouseResponder</DL></DD></DL><HR><A NAME="setTargetSpace(quicktime.app.spaces.Space)"><!-- --></A><H3>setTargetSpace</H3><PRE>protected abstract void <B>setTargetSpace</B>(<A HREF="../../../quicktime/app/spaces/Space.html">Space</A>&nbsp;s)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>This method is defined by the subclass to ensure that the incoming Space is an appropriate kind of space for the MouseController to be attached too. If not a ClassCastException is generally thrown, and the MouseController will not be attached to the Space.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - &nbsp;</DL></DD></DL><HR><A NAME="addedTo(java.lang.Object)"><!-- --></A><H3>addedTo</H3><PRE>public void <B>addedTo</B>(java.lang.Object&nbsp;interest)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>This method is called by the specified object when the instance of  the class that implements this interface is added to the object that is the source of the interest. The MouseController expects that the incoming object is some kind of java.awt.Component - in which case it registers its interest in mouse events from that Component source. If the incoming object is not some kind of Component then nothing is done.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Listener.html#addedTo(java.lang.Object)">addedTo</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Listener.html">Listener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>interest</CODE> - the object that is to be the source of interest for the the object that implements this interface.</DL></DD></DL><HR><A NAME="removedFrom(java.lang.Object)"><!-- --></A><H3>removedFrom</H3><PRE>public void <B>removedFrom</B>(java.lang.Object&nbsp;interest)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>This method is called by the specified object when the instance of  the class that implements this interface is removed from the object that is the source of the interest. The MouseController expects that the incoming object is some kind of java.awt.Component - in which case it removes its interest in mouse events from that Component source. If the incoming object is not some kind of Component then nothing is done.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Listener.html#removedFrom(java.lang.Object)">removedFrom</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Listener.html">Listener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>interest</CODE> - the object that was the source of interest for the the object that implements this interface.</DL></DD></DL><HR><A NAME="getSelected(java.awt.event.MouseEvent)"><!-- --></A><H3>getSelected</H3><PRE>protected abstract java.lang.Object <B>getSelected</B>(java.awt.event.MouseEvent&nbsp;event)                                         throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>This method is called when a MouseController has received a mouse press, click, drag, event in its space. This method returns a Transformable object if it finds  such an object at the location of the event.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>event</CODE> - a mouse down event<DT><B>Returns:</B><DD>a transformable object that is located at the event coordinates or null</DL></DD></DL><HR><A NAME="isWholespace()"><!-- --></A><H3>isWholespace</H3><PRE>public boolean <B>isWholespace</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<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&nbsp;flag)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<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&nbsp;member)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>If wholespace is set to false, then only objects that are explicitly added to the controller will be controlled by it. 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -