swcontroller.html
来自「这个是java的quicktime for java 的详细使用文档」· HTML 代码 · 共 426 行 · 第 1/2 页
HTML
426 行
<!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:46 PDT 2002 --><TITLE>: Class SWController</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/SWController.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/anim/SWCompositor.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/app/anim/TwoDSprite.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="SWController.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#fields_inherited_from_class_quicktime.app.actions.MouseController">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: FIELD | <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.anim</FONT><BR>Class SWController</H2><PRE>java.lang.Object | +--<A HREF="../../../quicktime/app/actions/MouseController.html">quicktime.app.actions.MouseController</A> | +--<B>quicktime.app.anim.SWController</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A>, <A HREF="../../../quicktime/app/spaces/Controller.html">Controller</A>, java.util.EventListener, <A HREF="../../../quicktime/app/spaces/Listener.html">Listener</A>, <A HREF="../../../quicktime/app/spaces/ListenerController.html">ListenerController</A>, java.awt.event.MouseListener, java.awt.event.MouseMotionListener</DD></DL><HR><B>Deprecated.</B> <I>since QTJava 4.0</I><P><DL><DT>public class <B>SWController</B><DT>extends <A HREF="../../../quicktime/app/actions/MouseController.html">MouseController</A></DL><P>The SWController deals with SpriteWorldHitTest calls on the SpriteWorld that is contained by the SWCompositor's sub classes. By default it will do hit testing on the actual sprite image itself. However, an application can set the hit-test flags to support any mode of hit testing appropriate.<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="fields_inherited_from_class_quicktime.app.actions.MouseController"><!-- --></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/MouseController.html">MouseController</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/actions/MouseController.html#xLocationOffset">xLocationOffset</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#yLocationOffset">yLocationOffset</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"><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#SWController(quicktime.app.actions.MouseResponder, boolean)">SWController</A></B>(<A HREF="../../../quicktime/app/actions/MouseResponder.html">MouseResponder</A> mr, boolean wholeSpace)</CODE><BR> <B>Deprecated.</B> Construct a SWController object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#SWController(quicktime.app.actions.MouseResponder, boolean, int)">SWController</A></B>(<A HREF="../../../quicktime/app/actions/MouseResponder.html">MouseResponder</A> mr, boolean wholeSpace, int flags)</CODE><BR> <B>Deprecated.</B> Construct a SWController object.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#deactivateResponder()">deactivateResponder</A></B>()</CODE><BR> <B>Deprecated.</B> A method that is called whenever the MouseController deactivates its responder.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#getFlags()">getFlags</A></B>()</CODE><BR> <B>Deprecated.</B> Returns the flags that control the hit test parameters on the SpriteWorld.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#getSelected(java.awt.event.MouseEvent)">getSelected</A></B>(java.awt.event.MouseEvent event)</CODE><BR> <B>Deprecated.</B> This method is called when a MouseController has received a mouse event in its space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/app/spaces/Space.html">Space</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#getSpace()">getSpace</A></B>()</CODE><BR> <B>Deprecated.</B> Returns the current Space that the SWController is attached to.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#responderActivated()">responderActivated</A></B>()</CODE><BR> <B>Deprecated.</B> A notification method that is called whenever the MouseController activates its responder.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#setFlags(int)">setFlags</A></B>(int flags)</CODE><BR> <B>Deprecated.</B> Set the flags for controlling the hit test behaviour of the SpriteWorld.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#setTargetSpace(quicktime.app.spaces.Space)">setTargetSpace</A></B>(<A HREF="../../../quicktime/app/spaces/Space.html">Space</A> target)</CODE><BR> <B>Deprecated.</B> Sets the target Space of the MouseController.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#setTranslation()">setTranslation</A></B>()</CODE><BR> <B>Deprecated.</B> This method is used to setup translation values for x and y of an event to translate the event into the local coordinate space of a member's display Space.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.app.actions.MouseController"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.app.actions.<A HREF="../../../quicktime/app/actions/MouseController.html">MouseController</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/actions/MouseController.html#addedTo(java.lang.Object)">addedTo</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#addedToSpace(quicktime.app.spaces.Space)">addedToSpace</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#addMember(java.lang.Object)">addMember</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#doDragTarget(java.awt.event.MouseEvent)">doDragTarget</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#getResponder()">getResponder</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#hasMember(java.lang.Object)">hasMember</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#isAppropriate(java.lang.Object)">isAppropriate</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#isEmpty()">isEmpty</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#isWholespace()">isWholespace</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#members()">members</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#mouseClicked(java.awt.event.MouseEvent)">mouseClicked</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#mouseDragged(java.awt.event.MouseEvent)">mouseDragged</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#mouseEntered(java.awt.event.MouseEvent)">mouseEntered</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#mouseExited(java.awt.event.MouseEvent)">mouseExited</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#mouseMoved(java.awt.event.MouseEvent)">mouseMoved</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#mousePressed(java.awt.event.MouseEvent)">mousePressed</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#mouseReleased(java.awt.event.MouseEvent)">mouseReleased</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#removedFrom(java.lang.Object)">removedFrom</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#removedFromSpace()">removedFromSpace</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#removeMember(java.lang.Object)">removeMember</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#setWholespace(boolean)">setWholespace</A>, <A HREF="../../../quicktime/app/actions/MouseController.html#size()">size</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?