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

📄 mouseresponder.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<PRE>public static final int <B>kMouseOrMouseMotionEvents</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;</DL><HR><A NAME="kAnyMouseEvent"><!-- --></A><H3>kAnyMouseEvent</H3><PRE>public static final int <B>kAnyMouseEvent</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;</DL><HR><A NAME="modifierKeyMask"><!-- --></A><H3>modifierKeyMask</H3><PRE>public int <B>modifierKeyMask</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>The mask that is used to test which modifier keys will be regarded as valid</DL><HR><A NAME="modifierTestConditions"><!-- --></A><H3>modifierTestConditions</H3><PRE>public int <B>modifierTestConditions</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>The conditions of the modifier keys that will invoke an event</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="MouseResponder(int, int, int)"><!-- --></A><H3>MouseResponder</H3><PRE>protected <B>MouseResponder</B>(int&nbsp;modifierKeyMask,                         int&nbsp;modifierTestConditions,                         int&nbsp;eventTypes)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>You pass in to this constructor the modifier keys and the conditions of the modifier test that will trigger the activation of the responder object.<DD><DL><DT><B>Parameters:</B><DD><CODE>modifierKeyMask</CODE> - the modifier key's mask<DD><CODE>modifierTestConditions</CODE> - the test conditions under which the modifier mask is tested<DD><CODE>eventTypes</CODE> - the mouse events the responder will respond to. This is a read-only property of the responder and determines the kinds of mouse events the responder responds to.</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="setTargetSpace(java.lang.Object)"><!-- --></A><H3>setTargetSpace</H3><PRE>protected abstract void <B>setTargetSpace</B>(java.lang.Object&nbsp;s)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>The MouseController asks its MouseResponder if the space it has been added to is an appropriate Space for the MouseResponder to deal with. If not the MouseResponder subclass that implements this method throws a ClassCastException and the MouseController will not be added to the Space.<DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the Space to which the responder's controller has been added.</DL></DD></DL><HR><A NAME="getMouseController()"><!-- --></A><H3>getMouseController</H3><PRE>public <A HREF="../../../quicktime/app/actions/MouseController.html">MouseController</A> <B>getMouseController</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns the MouseController that the responder is attached to.<DD><DL><DT><B>Returns:</B><DD>a MouseController</DL></DD></DL><HR><A NAME="isInterested(int)"><!-- --></A><H3>isInterested</H3><PRE>public boolean <B>isInterested</B>(int&nbsp;eventType)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns true if the repsonder is interested in the specified event.<DD><DL><DT><B>Parameters:</B><DD><CODE>eventType</CODE> - to test interest<DT><B>Returns:</B><DD>true if interested, false if not</DL></DD></DL><HR><A NAME="isInterested(int, int)"><!-- --></A><H3>isInterested</H3><PRE>public boolean <B>isInterested</B>(int&nbsp;eventType,                            int&nbsp;eventModifiers)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns true if the repsonder is interested in the specified event.<DD><DL><DT><B>Parameters:</B><DD><CODE>eventType</CODE> - to test interest<DD><CODE>eventModifiers</CODE> - modifier keys of mouse event<DT><B>Returns:</B><DD>true if interested, false if not</DL></DD></DL><HR><A NAME="setTarget(java.lang.Object)"><!-- --></A><H3>setTarget</H3><PRE>protected abstract void <B>setTarget</B>(java.lang.Object&nbsp;target)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>This method is called by the MouseController when it has returned a target (say from a mousePressed event) and the Controller sets the target that the  MouseResponder will then respond to.<DD><DL><DT><B>Parameters:</B><DD><CODE>target</CODE> - the object that is the selected target of the MouseEvent</DL></DD></DL><HR><A NAME="removeTarget()"><!-- --></A><H3>removeTarget</H3><PRE>protected abstract void <B>removeTarget</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>When the Responder is deactivated from the MouseController the controller uses this method to tell the Responder that it no longer has a target to act upon</DL><HR><A NAME="isAppropriate(java.lang.Object)"><!-- --></A><H3>isAppropriate</H3><PRE>public abstract boolean <B>isAppropriate</B>(java.lang.Object&nbsp;object)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>The MouseController delegates the appropriateness of objects that it can control to the MouseResponder. The MouseResponder returns true if the given object is the type of object that it can control.<DD><DL><DT><B>Parameters:</B><DD><CODE>object</CODE> - the object to test<DT><B>Returns:</B><DD>true if the object is the type of object that the Responder can control</DL></DD></DL><HR><A NAME="activationEventType()"><!-- --></A><H3>activationEventType</H3><PRE>public int <B>activationEventType</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns the event which activated the responder. If the responder is inactive this will return 0.<DD><DL><DT><B>Returns:</B><DD>the event type.</DL></DD></DL><HR><A NAME="isActive()"><!-- --></A><H3>isActive</H3><PRE>public boolean <B>isActive</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns true if the responder is currently active.<DD><DL><DT><B>Returns:</B><DD>true if active, false if not</DL></DD></DL><HR><A NAME="deactivate()"><!-- --></A><H3>deactivate</H3><PRE>protected void <B>deactivate</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>A subclass can call this method to deactivate a responder. It will not cancel a responder from becoming active again. For instance in drags if the object should no longer be dragged but the user is still going to broadcast mouseDrag events then you can deactivate the responder to ensure that the target will no longer be dragged.</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>Invoked when the mouse has been clicked on a found and valid target within the enclosing space.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the MouseEvent that triggered this event</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>Invoked when the mouse enters a QTDrawable space. There is no target set for events of this kind.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the MouseEvent that triggered this 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>Invoked when the mouse exits a QTDrawable space. There is no target set for events of this kind.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the MouseEvent that triggered this event</DL></DD></DL><HR><A NAME="mouseEnteredTarget(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseEnteredTarget</H3><PRE>public void <B>mouseEnteredTarget</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Invoked when a mouseMoved event enters a Target within an enclosing space. The Target is set for events of this kind.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the MouseEvent that triggered this event</DL></DD></DL><HR><A NAME="mouseExitedTarget(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseExitedTarget</H3><PRE>public void <B>mouseExitedTarget</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Invoked when a mouseMoved event exits a Target within an enclosing space. The Target is set for events of this kind.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the MouseEvent that triggered this 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>Invoked when the mouse button has been moved over a space. There is no target set for events of this kind. (with no buttons no down).<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the MouseEvent that triggered this event</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>Invoked when the mouse has been pressed on a found and valid target within the enclosing space.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the MouseEvent that triggered this 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>Invoked when the mouse has been dragged on a found and valid target within the enclosing space. This method is only called if the responder has been activated by a mouse pressed event.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the MouseEvent that triggered this 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>Invoked when the mouse has been released after being pressed on a found and valid target within the enclosing space.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the MouseEvent that triggered this event</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/MouseResponder.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/MouseController.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../quicktime/app/actions/NextImageAction.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="MouseResponder.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 + -