📄 dragger.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Mon Jul 15 11:49:44 PDT 2002 --><TITLE>: Class Dragger</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">quicktime.app.actions</FONT><BR>Class Dragger</H2><PRE>java.lang.Object | +--<A HREF="../../../quicktime/app/actions/MouseResponder.html">quicktime.app.actions.MouseResponder</A> | +--<B>quicktime.app.actions.Dragger</B></PRE><HR><B>Deprecated.</B> <I>since QTJava 4.0</I><P><DL><DT>public class <B>Dragger</B><DT>extends <A HREF="../../../quicktime/app/actions/MouseResponder.html">MouseResponder</A></DL><P>The Dragger is a particular type of MouseResponder that performs the action of moving the Dragger's target (a Transformable object) according to the drag movements of the mouse. <P> Dragger's can be constrained to keep their target object completely within their enclosing space, or allow the target to be dragged out of that space to a default minimum view of 1 row or column of pixels of the target. <P> When a constraining condition is reached the Dragger will invoke the trigger method of an attached Actionable object. <P> NOTE: This class is no longer used and has been replaced by the new event model When converting your code, use a DragAction object in quicktime.app.event <P> <B>Example:</B> <P> <PRE>Dragger dragger = new Dragger (MouseResponder.kAnyModifiersMask); GroupController controller1 = new GroupController (dragger, true); drawer.addController (controller1);</PRE> <B>This code is replaced with:</B> <PRE>QTMouseTargetController qtmc = new QTMouseTargetController(true); qtmc.addQTMouseListener(new DragAction (new TranslateMatrix())); drawer.addController (qtmc);</PRE> <P><P><DL><DT><B>See Also: </B><DD><A HREF="../../../quicktime/app/event/QTMouseController.html"><CODE>QTMouseController</CODE></A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../quicktime/app/actions/Actionable.html">Actionable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/Dragger.html#actor">actor</A></B></CODE><BR> <B>Deprecated.</B> The actor that will be invoked (if set) when the dragger reaches a constraining condition</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/Dragger.html#kConstrainAll">kConstrainAll</A></B></CODE><BR> <B>Deprecated.</B> Use these as constraint flags to restrict dragging operations</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/Dragger.html#kConstrainBottom">kConstrainBottom</A></B></CODE><BR> <B>Deprecated.</B> Use these as constraint flags to restrict dragging operations</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/Dragger.html#kConstrainHorizontal">kConstrainHorizontal</A></B></CODE><BR> <B>Deprecated.</B> Use these as constraint flags to restrict dragging operations</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/Dragger.html#kConstrainLeft">kConstrainLeft</A></B></CODE><BR> <B>Deprecated.</B> Use these as constraint flags to restrict dragging operations</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/Dragger.html#kConstrainNone">kConstrainNone</A></B></CODE><BR> <B>Deprecated.</B> Use these as constraint flags to restrict dragging operations</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/Dragger.html#kConstrainRight">kConstrainRight</A></B></CODE><BR> <B>Deprecated.</B> Use these as constraint flags to restrict dragging operations</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/Dragger.html#kConstrainTop">kConstrainTop</A></B></CODE><BR> <B>Deprecated.</B> Use these as constraint flags to restrict dragging operations</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/Dragger.html#kConstrainVertical">kConstrainVertical</A></B></CODE><BR> <B>Deprecated.</B> Use these as constraint flags to restrict dragging operations</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/Dragger.html#space">space</A></B></CODE><BR> <B>Deprecated.</B> This is the QTDrawable space within which the Dragger's target is enclosed and contained</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../quicktime/app/image/Transformable.html">Transformable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/Dragger.html#target">target</A></B></CODE><BR> <B>Deprecated.</B> This is the Transformable target of the Dragger action</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/Dragger.html#xBufferIfUnConstrained">xBufferIfUnConstrained</A></B></CODE><BR> <B>Deprecated.</B> The number of pixels on the horizontal axis that an object can be dragged beyond the bounds if the dragging action is unconstrained.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/Dragger.html#yBufferIfUnConstrained">yBufferIfUnConstrained</A></B></CODE><BR> <B>Deprecated.</B> The number of pixels on the vertical axis that an object can be dragged beyond the bounds if the dragging action is unconstrained.</TD></TR></TABLE> <A NAME="fields_inherited_from_class_quicktime.app.actions.MouseResponder"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class quicktime.app.actions.<A HREF="../../../quicktime/app/actions/MouseResponder.html">MouseResponder</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/actions/MouseResponder.html#kAnyModifiers">kAnyModifiers</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kAnyModifiersMask">kAnyModifiersMask</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kAnyMouseEvent">kAnyMouseEvent</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kAnyOneOfModifiers">kAnyOneOfModifiers</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kClickEvents">kClickEvents</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kDragEvents">kDragEvents</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kEnterEvents">kEnterEvents</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kExitEvents">kExitEvents</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kModifiersDisregarded">kModifiersDisregarded</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kModifiersExactMatch">kModifiersExactMatch</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kMouseEvents">kMouseEvents</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kMouseMotionEvents">kMouseMotionEvents</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kMouseOrMouseMotionEvents">kMouseOrMouseMotionEvents</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kMoveEvents">kMoveEvents</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kNoModifiers">kNoModifiers</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kNoModifiersMask">kNoModifiersMask</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kPressReleaseEvents">kPressReleaseEvents</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kQTMouseMotionEvents">kQTMouseMotionEvents</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kRolloverEvents">kRolloverEvents</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kSpecifiedModifiersOrNone">kSpecifiedModifiersOrNone</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#kTargetMoveEvents">kTargetMoveEvents</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#modifierKeyMask">modifierKeyMask</A>, <A HREF="../../../quicktime/app/actions/MouseResponder.html#modifierTestConditions">modifierTestConditions</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -