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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SWController.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../quicktime/app/anim/SWCompositor.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<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>  &nbsp;&nbsp;<A HREF="SWController.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_quicktime.app.actions.MouseController">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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>&nbsp;<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>&nbsp;<!-- ======== 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>&nbsp;mr,             boolean&nbsp;wholeSpace)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;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>&nbsp;mr,             boolean&nbsp;wholeSpace,             int&nbsp;flags)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Construct a SWController object.</TD></TR></TABLE>&nbsp;<!-- ========== 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 &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#deactivateResponder()">deactivateResponder</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;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>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#getFlags()">getFlags</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;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 &nbsp;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&nbsp;event)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;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>&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;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 &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#responderActivated()">responderActivated</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#setFlags(int)">setFlags</A></B>(int&nbsp;flags)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;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 &nbsp;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>&nbsp;target)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;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 &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/anim/SWController.html#setTranslation()">setTranslation</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;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>&nbsp;<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>&nbsp;<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 + -
显示快捷键?