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

📄 genericresponder.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DT><B>Parameters:</B><DD><CODE>modifierKeyMask</CODE> - determines which modifier keys (or none) which must be depressed for the action to be invoked.<DD><CODE>modifierTestConditions</CODE> - determines the conditions under which the responder is activated when the specified modifierKeyMask conditions are met.<DD><CODE>eventTypes</CODE> - specifies the mouse event types that the responder is interested in.</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="asMouseListener(int, int)"><!-- --></A><H3>asMouseListener</H3><PRE>public static <A HREF="../../../quicktime/app/actions/GenericResponder.html">GenericResponder</A> <B>asMouseListener</B>(int&nbsp;modifierKeyMask,                                               int&nbsp;modifierTestConditions)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Creates a GenericResponder that is interested in mouse events that are covered by the MouseListener interface.<DD><DL><DT><B>Parameters:</B><DD><CODE>modifierKeyMask</CODE> - the state of the modifier keys to activate this responder<DD><CODE>modifierTestConditions</CODE> - the match criteria that are applied to the modifier keys<DT><B>Returns:</B><DD>a GenericResponder<DT><B>See Also: </B><DD><CODE>MouseResponder.kMouseEvents</CODE></DL></DD></DL><HR><A NAME="asMouseMotionListener(int, int)"><!-- --></A><H3>asMouseMotionListener</H3><PRE>public static <A HREF="../../../quicktime/app/actions/GenericResponder.html">GenericResponder</A> <B>asMouseMotionListener</B>(int&nbsp;modifierKeyMask,                                                     int&nbsp;modifierTestConditions)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Creates a GenericResponder that is interested in mouse events that are covered by the MouseMotionListener interface.<DD><DL><DT><B>Parameters:</B><DD><CODE>modifierKeyMask</CODE> - the state of the modifier keys to activate this responder<DD><CODE>modifierTestConditions</CODE> - the match criteria that are applied to the modifier keys<DT><B>Returns:</B><DD>a GenericResponder<DT><B>See Also: </B><DD><CODE>MouseResponder.kMouseMotionEvents</CODE></DL></DD></DL><HR><A NAME="asMouseOrMouseMotionListener(int, int)"><!-- --></A><H3>asMouseOrMouseMotionListener</H3><PRE>public static <A HREF="../../../quicktime/app/actions/GenericResponder.html">GenericResponder</A> <B>asMouseOrMouseMotionListener</B>(int&nbsp;modifierKeyMask,                                                            int&nbsp;modifierTestConditions)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Creates a GenericResponder that is interested in mouse events that are covered by the MouseListener or MouseMotionListener interfaces.<DD><DL><DT><B>Parameters:</B><DD><CODE>modifierKeyMask</CODE> - the state of the modifier keys to activate this responder<DD><CODE>modifierTestConditions</CODE> - the match criteria that are applied to the modifier keys<DT><B>Returns:</B><DD>a GenericResponder<DT><B>See Also: </B><DD><CODE>MouseResponder.kMouseOrMouseMotionEvents</CODE></DL></DD></DL><HR><A NAME="asQTMouseMotionListener(int, int)"><!-- --></A><H3>asQTMouseMotionListener</H3><PRE>public static <A HREF="../../../quicktime/app/actions/GenericResponder.html">GenericResponder</A> <B>asQTMouseMotionListener</B>(int&nbsp;modifierKeyMask,                                                       int&nbsp;modifierTestConditions)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Creates a GenericResponder that is interested in mouse events that are covered by the QTMouseMotionListener interface. This is ideal for doing rollover effects on member objects in a QT space where the objects are stationary as these objects have no need for the MouseExit event.<DD><DL><DT><B>Parameters:</B><DD><CODE>modifierKeyMask</CODE> - the state of the modifier keys to activate this responder<DD><CODE>modifierTestConditions</CODE> - the match criteria that are applied to the modifier keys<DT><B>Returns:</B><DD>a GenericResponder<DT><B>See Also: </B><DD><CODE>MouseResponder.kQTMouseMotionEvents</CODE></DL></DD></DL><HR><A NAME="asRolloverListener(int, int)"><!-- --></A><H3>asRolloverListener</H3><PRE>public static <A HREF="../../../quicktime/app/actions/GenericResponder.html">GenericResponder</A> <B>asRolloverListener</B>(int&nbsp;modifierKeyMask,                                                  int&nbsp;modifierTestConditions)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Creates a GenericResponder that is interested in mouse events that are covered by the QTMouseMotionListener interface. This is ideal for doing rollover effects on member objects in a QT space where the objects can be repositioned by dragging by the user as the object is notified by  a MouseExit method from the MouseListener interest.<DD><DL><DT><B>Parameters:</B><DD><CODE>modifierKeyMask</CODE> - the state of the modifier keys to activate this responder<DD><CODE>modifierTestConditions</CODE> - the match criteria that are applied to the modifier keys<DT><B>Returns:</B><DD>a GenericResponder<DT><B>See Also: </B><DD><CODE>MouseResponder.kRolloverEvents</CODE></DL></DD></DL><HR><A NAME="asAnyMouseListener(int, int)"><!-- --></A><H3>asAnyMouseListener</H3><PRE>public static <A HREF="../../../quicktime/app/actions/GenericResponder.html">GenericResponder</A> <B>asAnyMouseListener</B>(int&nbsp;modifierKeyMask,                                                  int&nbsp;modifierTestConditions)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Creates a GenericResponder that is interested in mouse events that are covered by the MouseListener, MouseMotionListener or QTMouseMotionListener interfaces.<DD><DL><DT><B>Parameters:</B><DD><CODE>modifierKeyMask</CODE> - the state of the modifier keys to activate this responder<DD><CODE>modifierTestConditions</CODE> - the match criteria that are applied to the modifier keys<DT><B>Returns:</B><DD>a GenericResponder<DT><B>See Also: </B><DD><CODE>MouseResponder.kAnyMouseEvent</CODE></DL></DD></DL><HR><A NAME="setTargetSpace(java.lang.Object)"><!-- --></A><H3>setTargetSpace</H3><PRE>protected 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>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html#setTargetSpace(java.lang.Object)">setTargetSpace</A></CODE> in class <CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html">MouseResponder</A></CODE></DL></DD><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="setTarget(java.lang.Object)"><!-- --></A><H3>setTarget</H3><PRE>protected 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>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html#setTarget(java.lang.Object)">setTarget</A></CODE> in class <CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html">MouseResponder</A></CODE></DL></DD><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 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<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html#removeTarget()">removeTarget</A></CODE> in class <CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html">MouseResponder</A></CODE></DL></DD></DL><HR><A NAME="getSpace()"><!-- --></A><H3>getSpace</H3><PRE>public java.lang.Object <B>getSpace</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns the Space that the controller has been attached too.<DD><DL><DT><B>Returns:</B><DD>the container space.</DL></DD></DL><HR><A NAME="getTarget()"><!-- --></A><H3>getTarget</H3><PRE>public java.lang.Object <B>getTarget</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns the Target that the controller is currently controlling. This will be null if the mouse event is not targetted, or the Responder is not currently responding to a mouse event.<DD><DL><DT><B>Returns:</B><DD>the current target or null</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>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>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html#isAppropriate(java.lang.Object)">isAppropriate</A></CODE> in class <CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html">MouseResponder</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 is the type of object that the Responder can control</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>Invoked when the mouse has been clicked on a found and valid target within the enclosing space.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html#mouseClicked(java.awt.event.MouseEvent)">mouseClicked</A></CODE> in class <CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html">MouseResponder</A></CODE></DL></DD><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>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html#mouseEntered(java.awt.event.MouseEvent)">mouseEntered</A></CODE> in class <CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html">MouseResponder</A></CODE></DL></DD><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>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html#mouseExited(java.awt.event.MouseEvent)">mouseExited</A></CODE> in class <CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html">MouseResponder</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the MouseEvent that triggered this event</DL></DD>

⌨️ 快捷键说明

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