📄 dragger.html
字号:
yBufferIfUnConstrained</H3><PRE>protected int <B>yBufferIfUnConstrained</B></PRE><DL><DD><B>Deprecated.</B> <DD>The number of pixels on the vertical axis that an object can be dragged beyond the bounds if the dragging action is unconstrained. The default is one</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="Dragger(int)"><!-- --></A><H3>Dragger</H3><PRE>public <B>Dragger</B>(int modifierKeyMask)</PRE><DL><DD><B>Deprecated.</B> <DD>Create a Dragger object<DD><DL><DT><B>Parameters:</B><DD><CODE>modifierKeyMask</CODE> - - if specified will determine which modifier keys must be depressed for the action to be invoked. The modifierTestConditions is set in this case to MouseResonder.kModifiersExactMatch</DL></DD></DL><HR><A NAME="Dragger(int, int)"><!-- --></A><H3>Dragger</H3><PRE>public <B>Dragger</B>(int modifierKeyMask, int modifierTestConditions)</PRE><DL><DD><B>Deprecated.</B> <DD>Create a Dragger object with specified modifier keys and test conditions under which those modifier keys are matched.<DD><DL><DT><B>Parameters:</B><DD><CODE>modifierKeyMask</CODE> - - if specified will determine which modifier keys must be depressed for the action to be invoked.<DD><CODE>modifierTestConditions</CODE> - the test conditions under which the modifier mask is tested</DL></DD></DL><HR><A NAME="Dragger(int, int, int)"><!-- --></A><H3>Dragger</H3><PRE>public <B>Dragger</B>(int modifierKeyMask, int modifierTestConditions, int additionalEvents)</PRE><DL><DD><B>Deprecated.</B> <DD>Set some parameters that will create DragActions.<DD><DL><DT><B>Parameters:</B><DD><CODE>modifierKeyMask</CODE> - - if specified will determine which modifier keys must be depressed for the action to be invoked.<DD><CODE>modifierTestConditions</CODE> - the test conditions under which the modifier mask is tested<DD><CODE>additionalEvents</CODE> - additional mouse events the responder will respond 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 void <B>setTargetSpace</B>(java.lang.Object o)</PRE><DL><DD><B>Deprecated.</B> <DD>This method sets the containing Space of a target of a MouseResponder. For a Dragger this space must be a QTDrawable.<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>o</CODE> - the containing space of the potential targets of the Dragger.</DL></DD></DL><HR><A NAME="setActionable(quicktime.app.actions.Actionable)"><!-- --></A><H3>setActionable</H3><PRE>public void <B>setActionable</B>(<A HREF="../../../quicktime/app/actions/Actionable.html">Actionable</A> actor)</PRE><DL><DD><B>Deprecated.</B> <DD>This method sets the actionable object of the action.</DL><HR><A NAME="getActionable()"><!-- --></A><H3>getActionable</H3><PRE>public <A HREF="../../../quicktime/app/actions/Actionable.html">Actionable</A> <B>getActionable</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>This method retreives the current actor that is attached to the action</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><B>Deprecated.</B> <DD>The Dragger knows how to drag objects of type Transformable around. Thus this method returns true if the incoming object implements the Transformable interface.<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>a boolean</DL></DD></DL><HR><A NAME="setTarget(java.lang.Object)"><!-- --></A><H3>setTarget</H3><PRE>protected void <B>setTarget</B>(java.lang.Object t)</PRE><DL><DD><B>Deprecated.</B> <DD>Sets the target of the Dragger. Generally this will be some kind of Transformable object that the user has clicked on and the MouseController has extracted. This becomes the active Target of the Dragger for the duration of the mouseDrag event.<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>t</CODE> - the Transformable target</DL></DD></DL><HR><A NAME="removeTarget()"><!-- --></A><H3>removeTarget</H3><PRE>protected void <B>removeTarget</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>When the MouseController detects that the drag operation is completed it notifies the Dragger to remove its target as the user no longer is dragging.<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="setConstrained(int)"><!-- --></A><H3>setConstrained</H3><PRE>public void <B>setConstrained</B>(int flag)</PRE><DL><DD><B>Deprecated.</B> <DD>Using the constrain constants dragging can be constrained in any direction.<DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - constraint flag</DL></DD></DL><HR><A NAME="getConstrained()"><!-- --></A><H3>getConstrained</H3><PRE>public int <B>getConstrained</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the current constraint setting</DL><HR><A NAME="mousePressed(java.awt.event.MouseEvent)"><!-- --></A><H3>mousePressed</H3><PRE>public void <B>mousePressed</B>(java.awt.event.MouseEvent event)</PRE><DL><DD><B>Deprecated.</B> <DD>This method is called by the MouseController when the mouse is first pressed down on a valid Transformable object within the space it is controlling. For efficiency it is assumed that the overall characteristics of the enclosing space will not be changing during the duration of the drag event - ie. the Matrix of the enclosing space is not changing during a mouse drag. However the Target's matrix can and will change as a result of the drag operation.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html#mousePressed(java.awt.event.MouseEvent)">mousePressed</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>event</CODE> - the mouse down event that may begin the drag action</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 event)</PRE><DL><DD><B>Deprecated.</B> <DD>This method will allow the user to drag the transformable object around. This method also does constraints testing based on the current state of the constraints.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html#mouseDragged(java.awt.event.MouseEvent)">mouseDragged</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>event</CODE> - the mouse drag event that triggered the drag action.</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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Dragger.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../quicktime/app/actions/DragAction.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/app/actions/GenericResponder.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> <A HREF="Dragger.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -