📄 matrixaction.html
字号:
<BR> When called it performs three primary tasks: (1) Checks to see if rate direction has changed - if so calls the rateDirectionChanged method (2) Calls the transformMatrix method which the subclass defines (3) If doConstraintBoundsTesting is true does bounds testing of the target within the enclosing space and notifies of any collisions of the target with the space's sides.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MatrixAction.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object obj)</CODE><BR> Returns true if the incoming object is a Matrix action with the same target.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MatrixAction.html#getSpace()">getSpace</A></B>()</CODE><BR> <B>Deprecated.</B> <I>since QTJava 4</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MatrixAction.html#getTarget()">getTarget</A></B>()</CODE><BR> <B>Deprecated.</B> <I>since QTJava 4</I></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/actions/MatrixAction.html#rateDirectionChanged(boolean)">rateDirectionChanged</A></B>(boolean forwards)</CODE><BR> <B>Deprecated.</B> <I>since QTJava 4</I></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/actions/MatrixAction.html#setSpace(quicktime.app.display.QTDrawable)">setSpace</A></B>(<A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A> space)</CODE><BR> <B>Deprecated.</B> <I>since QTJava 4</I></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/actions/MatrixAction.html#setTarget(java.lang.Object)">setTarget</A></B>(java.lang.Object target)</CODE><BR> <B>Deprecated.</B> <I>since QTJava 4</I></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/actions/MatrixAction.html#setTargetMatrix(quicktime.std.image.Matrix)">setTargetMatrix</A></B>(<A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A> transformedMatrix)</CODE><BR> <B>Deprecated.</B> <I>since QTJava 4</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/actions/MatrixAction.html#toString()">toString</A></B>()</CODE><BR> Return a string representation of this class.</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/actions/MatrixAction.html#transformMatrix(quicktime.std.image.Matrix)">transformMatrix</A></B>(<A HREF="../../../quicktime/std/image/Matrix.html">Matrix</A> theMatrix)</CODE><BR> <B>Deprecated.</B> <I>since QTJava 4</I></TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.app.actions.PeriodicAction"><!-- --></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/PeriodicAction.html">PeriodicAction</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/actions/PeriodicAction.html#getActionable()">getActionable</A>, <A HREF="../../../quicktime/app/actions/PeriodicAction.html#getPeriod()">getPeriod</A>, <A HREF="../../../quicktime/app/actions/PeriodicAction.html#getScale()">getScale</A>, <A HREF="../../../quicktime/app/actions/PeriodicAction.html#getTriggerCondition()">getTriggerCondition</A>, <A HREF="../../../quicktime/app/actions/PeriodicAction.html#setActionable(quicktime.app.actions.Actionable)">setActionable</A>, <A HREF="../../../quicktime/app/actions/PeriodicAction.html#setPeriod(int)">setPeriod</A>, <A HREF="../../../quicktime/app/actions/PeriodicAction.html#setScale(int)">setScale</A>, <A HREF="../../../quicktime/app/actions/PeriodicAction.html#setTriggerCondition(int)">setTriggerCondition</A>, <A HREF="../../../quicktime/app/actions/PeriodicAction.html#tickle(float, int)">tickle</A>, <A HREF="../../../quicktime/app/actions/PeriodicAction.html#timeChanged(int)">timeChanged</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.app.time.Ticklish"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface quicktime.app.time.<A HREF="../../../quicktime/app/time/Ticklish.html">Ticklish</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/app/time/Ticklish.html#tickle(float, int)">tickle</A>, <A HREF="../../../quicktime/app/time/Ticklish.html#timeChanged(int)">timeChanged</A></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="kLeftSide"><!-- --></A><H3>kLeftSide</H3><PRE>protected static final int <B>kLeftSide</B></PRE><DL><DD>These constants are used in the boundsReached call to indicate to the subclass which edge the target has collided with. Horizontal and Vertical sides are provided as a means for testing for both left and right, up and down respectively.</DL><HR><A NAME="kRightSide"><!-- --></A><H3>kRightSide</H3><PRE>protected static final int <B>kRightSide</B></PRE><DL><DD>These constants are used in the boundsReached call to indicate to the subclass which edge the target has collided with. Horizontal and Vertical sides are provided as a means for testing for both left and right, up and down respectively.</DL><HR><A NAME="kTopSide"><!-- --></A><H3>kTopSide</H3><PRE>protected static final int <B>kTopSide</B></PRE><DL><DD>These constants are used in the boundsReached call to indicate to the subclass which edge the target has collided with. Horizontal and Vertical sides are provided as a means for testing for both left and right, up and down respectively.</DL><HR><A NAME="kBottomSide"><!-- --></A><H3>kBottomSide</H3><PRE>protected static final int <B>kBottomSide</B></PRE><DL><DD>These constants are used in the boundsReached call to indicate to the subclass which edge the target has collided with. Horizontal and Vertical sides are provided as a means for testing for both left and right, up and down respectively.</DL><HR><A NAME="target"><!-- --></A><H3>target</H3><PRE>protected <A HREF="../../../quicktime/app/image/Transformable.html">Transformable</A> <B>target</B></PRE><DL><DD>The target of the matrix transformations</DL><HR><A NAME="transMatrix"><!-- --></A><H3>transMatrix</H3><PRE>protected <A HREF="../../../quicktime/app/actions/TransformMatrix.html">TransformMatrix</A> <B>transMatrix</B></PRE><DL><DD>This is the class that will do the transformations on the target's matrix</DL><HR><A NAME="doConstraintBoundsTesting"><!-- --></A><H3>doConstraintBoundsTesting</H3><PRE>protected boolean <B>doConstraintBoundsTesting</B></PRE><DL><DD>Set this boolean to true or false to perform bounds testing of the target within the bounds of its enclosing Space. Default is false. If true the enclosing Space must be specified.</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="MatrixAction(int, int, quicktime.app.display.QTDrawable, quicktime.app.image.Transformable)"><!-- --></A><H3>MatrixAction</H3><PRE>protected <B>MatrixAction</B>(int scale, int period, <A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A> space, <A HREF="../../../quicktime/app/image/Transformable.html">Transformable</A> t) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD><B>Deprecated.</B> <I>since QTJava 4</I><P><DD>Create a PeriodicAction that will act upon a Matrix.<DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - the amount with which a second is divided into at a rate of one<DD><CODE>period</CODE> - the number of scale ticks that elapse between invocations of the action.<DD><CODE>space</CODE> - the QTDrawable object that is the enclosing space of the Transformable target.<DD><CODE>t</CODE> - a transformable object that will have its display matrix altered by the deltaMatrix<DT><B>See Also: </B><DD><A HREF="../../../quicktime/app/actions/TransformMatrix.html"><CODE>TransformMatrix</CODE></A></DL></DD></DL><HR><A NAME="MatrixAction(int, int, quicktime.app.display.QTDisplaySpace, quicktime.app.image.Transformable, quicktime.app.actions.TransformMatrix)"><!-- --></A><H3>MatrixAction</H3><PRE>public <B>MatrixAction</B>(int scale, int period, <A HREF="../../../quicktime/app/display/QTDisplaySpace.html">QTDisplaySpace</A> space, <A HREF="../../../quicktime/app/image/Transformable.html">Transformable</A> t, <A HREF="../../../quicktime/app/actions/TransformMatrix.html">TransformMatrix</A> transformMatrixAction) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Create a MatrixAction that will act upon a Matrix. It delegates the matrix transformation to the TransformMatrix object that is supplied in the constructor.<DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - the amount with which a second is divided into at a rate of one<DD><CODE>period</CODE> - the number of scale ticks that elapse between invocations of the action.<DD><CODE>space</CODE> - the QTDrawable object that is the enclosing space of the Transformable target.<DD><CODE>t</CODE> - a transformable object that will have its display matrix altered by the deltaMatrix<DD><CODE>transformMatrixAction</CODE> - the transformation that will be applied to the target's matrix every time this action is invoked.</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="setTarget(java.lang.Object)"><!-- --></A><H3>setTarget</H3><PRE>public void <B>setTarget</B>(java.lang.Object target)</PRE><DL><DD><B>Deprecated.</B> <I>since QTJava 4</I><P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -