📄 qtmouseevent.html
字号:
<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, wait, wait, wait</CODE></TD></TR></TABLE> <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="kMouseClick"><!-- --></A><H3>kMouseClick</H3><PRE>public static final int <B>kMouseClick</B></PRE><DL><DD>The mouse clicked event type.</DL><HR><A NAME="kMousePressed"><!-- --></A><H3>kMousePressed</H3><PRE>public static final int <B>kMousePressed</B></PRE><DL><DD>The mouse pressed event type.</DL><HR><A NAME="kMouseReleased"><!-- --></A><H3>kMouseReleased</H3><PRE>public static final int <B>kMouseReleased</B></PRE><DL><DD>The mouse released event type.</DL><HR><A NAME="kMouseMoved"><!-- --></A><H3>kMouseMoved</H3><PRE>public static final int <B>kMouseMoved</B></PRE><DL><DD>The mouse moved event type.</DL><HR><A NAME="kMouseEntered"><!-- --></A><H3>kMouseEntered</H3><PRE>public static final int <B>kMouseEntered</B></PRE><DL><DD>The mouse entered event type.</DL><HR><A NAME="kMouseExited"><!-- --></A><H3>kMouseExited</H3><PRE>public static final int <B>kMouseExited</B></PRE><DL><DD>The mouse exited event type.</DL><HR><A NAME="kMouseDragged"><!-- --></A><H3>kMouseDragged</H3><PRE>public static final int <B>kMouseDragged</B></PRE><DL><DD>The mouse dragged event type.</DL><HR><A NAME="kMouseTargetEnter"><!-- --></A><H3>kMouseTargetEnter</H3><PRE>public static final int <B>kMouseTargetEnter</B></PRE><DL><DD>The mouse entered a target</DL><HR><A NAME="kMouseTargetExit"><!-- --></A><H3>kMouseTargetExit</H3><PRE>public static final int <B>kMouseTargetExit</B></PRE><DL><DD>The mouse exited a target</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="QTMouseEvent(java.lang.Object)"><!-- --></A><H3>QTMouseEvent</H3><PRE>public <B>QTMouseEvent</B>(java.lang.Object source)</PRE><DL><DD>Constructs an QTMouseEvent object with the specified source object.<DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the object where the event originated</DL></DD></DL><HR><A NAME="QTMouseEvent(java.lang.Object, int, int, int, long, int, int)"><!-- --></A><H3>QTMouseEvent</H3><PRE>public <B>QTMouseEvent</B>(java.lang.Object source, int eventType, int x, int y, long when, int modifiers, int clickCount)</PRE><DL><DD>Constructs an QTMouseEvent object with the specified source object.<DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the object where the event originated<DD><CODE>eventType</CODE> - the type of mouse event<DD><CODE>x</CODE> - the x location of the event<DD><CODE>y</CODE> - the y location of the event<DD><CODE>when</CODE> - when the event occured<DD><CODE>modifiers</CODE> - the modifiers held down during this action<DD><CODE>clickCount</CODE> - the number of clicks within the system click time that occured.</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="getLocation()"><!-- --></A><H3>getLocation</H3><PRE>public <A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> <B>getLocation</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the location of the event in the space's local coordinates</DL></DD></DL><HR><A NAME="getModifiers()"><!-- --></A><H3>getModifiers</H3><PRE>public int <B>getModifiers</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the modifiers held down during this action event.</DL></DD></DL><HR><A NAME="getTarget()"><!-- --></A><H3>getTarget</H3><PRE>public java.lang.Object <B>getTarget</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the target or null of the event</DL></DD></DL><HR><A NAME="setTarget(java.lang.Object)"><!-- --></A><H3>setTarget</H3><PRE>public void <B>setTarget</B>(java.lang.Object target)</PRE><DL><DD><DL><DT><B>Parameters:</B><DD><CODE>target</CODE> - the target of the event</DL></DD></DL><HR><A NAME="getX()"><!-- --></A><H3>getX</H3><PRE>public int <B>getX</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the x position of the event relative to the source's enclosing space.</DL></DD></DL><HR><A NAME="getY()"><!-- --></A><H3>getY</H3><PRE>public int <B>getY</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the y position of the event relative to the source's enclosing space.</DL></DD></DL><HR><A NAME="getWhen()"><!-- --></A><H3>getWhen</H3><PRE>public long <B>getWhen</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the when the event happened.</DL></DD></DL><HR><A NAME="getClickCount()"><!-- --></A><H3>getClickCount</H3><PRE>public int <B>getClickCount</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the number of clicks.</DL></DD></DL><HR><A NAME="getEventType()"><!-- --></A><H3>getEventType</H3><PRE>public int <B>getEventType</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the type of mouse event.</DL></DD></DL><HR><A NAME="translate(int, int)"><!-- --></A><H3>translate</H3><PRE>public void <B>translate</B>(int x, int y)</PRE><DL><DD>Translates the location of the event.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the offset to the x coordinate position<DD><CODE>y</CODE> - the offset to the y coordinate position</DL></DD></DL><HR><A NAME="initialiseEventProfile(int, int, int, long, int, int)"><!-- --></A><H3>initialiseEventProfile</H3><PRE>public void <B>initialiseEventProfile</B>(int eventType, int x, int y, long when, int modifiers, int clickCount)</PRE><DL><DD>Sets the characteristics of the MouseEvent. This will also set the target to null and consumed to false.<DD><DL><DT><B>Parameters:</B><DD><CODE>eventType</CODE> - the type of mouse event<DD><CODE>x</CODE> - the x location of the event<DD><CODE>y</CODE> - the y location of the event<DD><CODE>when</CODE> - when the event occured<DD><CODE>modifiers</CODE> - the modifiers held down during this action<DD><CODE>clickCount</CODE> - the number of clicks within the system click time that occured.</DL></DD></DL><HR><A NAME="consume()"><!-- --></A><H3>consume</H3><PRE>public void <B>consume</B>()</PRE><DL><DD>QTMouseEvents can be consumed by any of their listeners. If the event is consumed it will not be passed on to any other listeners. Calling this method indicates that the event is consumed.</DL><HR><A NAME="isConsumed()"><!-- --></A><H3>isConsumed</H3><PRE>public boolean <B>isConsumed</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>true if the event is consumed.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.util.EventObject</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a String representation of this object.</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/QTMouseEvent.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/event/QTMouseController.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/app/event/QTMouseTargetController.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="QTMouseEvent.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 + -