⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 animationcontroller.html

📁 J2ME Mobile3D API,高性能手机3D开发的api
💻 HTML
📖 第 1 页 / 共 3 页
字号:
        world time units (inclusive)<DD><CODE>end</CODE> - the ending time of the active interval, in        world time units (exclusive)<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>start &gt; end</code><DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/AnimationController.html#getActiveIntervalStart()"><CODE>getActiveIntervalStart</CODE></A>, <A HREF="../../../javax/microedition/m3g/AnimationController.html#getActiveIntervalEnd()"><CODE>getActiveIntervalEnd</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getActiveIntervalStart()"><!-- --></A><H3>
getActiveIntervalStart</H3>
<PRE>
public int <B>getActiveIntervalStart</B>()</PRE>
<DL>
<DD><p>Retrieves the starting time of the current active interval of this animation controller, in world time units. The value returned is the same that was last set with <code>setActiveInterval</code>, or if it has not been called yet, the default value set at construction.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the starting time of the active interval<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/AnimationController.html#setActiveInterval(int, int)"><CODE>setActiveInterval</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getActiveIntervalEnd()"><!-- --></A><H3>
getActiveIntervalEnd</H3>
<PRE>
public int <B>getActiveIntervalEnd</B>()</PRE>
<DL>
<DD><p>Retrieves the ending time of the current active interval of this animation controller, in world time units. The value returned is the same that was last set with <code>setActiveInterval</code>, or if it has not been called yet, the default value set at construction.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the ending time of the active interval<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/AnimationController.html#setActiveInterval(int, int)"><CODE>setActiveInterval</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setSpeed(float, int)"><!-- --></A><H3>
setSpeed</H3>
<PRE>
public void <B>setSpeed</B>(float&nbsp;speed,                     int&nbsp;worldTime)</PRE>
<DL>
<DD><p>Sets a new playback speed for this animation. The speed is set as a factor of the nominal speed of the animation: 1.0 is normal playback speed (as specified by the keyframe times in the associated animation tracks), 2.0 is double speed, and -1.0 is reverse playback at normal speed. A speed of 0.0 freezes the animation.</p> <p>The speed setting effectively specifies how much to advance the internal playback position of this animation for a given increment in the global world time.</p> <p>The internal reference point is modified so that sequence time at the given world time remains unchanged. This allows the application to change the speed without causing the animation to "jump" forward or backward. To get the desired effect, the application should pass its current world time to this method. This is the time that the application has most recently used in <code>animate</code>, or the time that it is next going to use.</p> <p>The reference point (t<sub>wref</sub>, t<sub>sref</sub>) and speed (s) are updated based on the given world time and speed as follows:</p> <blockquote> t<sub>wref</sub>' = worldTime<br> t<sub>sref</sub>' = getPosition(worldTime)<br> s' = speed </blockquote> <p>Note that the computation of the new reference sequence time takes place before updating the speed. See the class description for the formula that <code>getPosition</code> uses, and for more discussion on animation timing.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>speed</CODE> - new playback speed; 1.0 is normal speed<DD><CODE>worldTime</CODE> - reference world time; the value of sequence        time at this point will remain constant during the speed        change<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/AnimationController.html#getSpeed()"><CODE>getSpeed</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSpeed()"><!-- --></A><H3>
getSpeed</H3>
<PRE>
public float <B>getSpeed</B>()</PRE>
<DL>
<DD><p>Retrieves the currently set playback speed of this animation controller.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the current playback speed<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/AnimationController.html#setSpeed(float, int)"><CODE>setSpeed</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setPosition(float, int)"><!-- --></A><H3>
setPosition</H3>
<PRE>
public void <B>setPosition</B>(float&nbsp;sequenceTime,                        int&nbsp;worldTime)</PRE>
<DL>
<DD><p>Sets a new playback position, relative to world time, for this animation controller. This sets the internal reference point (t<sub>wref</sub>, t<sub>sref</sub>) to (<code>worldTime</code>, <code>sequenceTime</code>) to shift the animation to the new position.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sequenceTime</CODE> - the desired playback position in sequence        time units<DD><CODE>worldTime</CODE> - the world time at which the sequence time        must be equal to <code>sequenceTime</code><DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/AnimationController.html#getPosition(int)"><CODE>getPosition</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getPosition(int)"><!-- --></A><H3>
getPosition</H3>
<PRE>
public float <B>getPosition</B>(int&nbsp;worldTime)</PRE>
<DL>
<DD><p>Retrieves the sequence time that corresponds to the given world time. The returned value is computed with the formula given in the class description. Note that because the result may be a fractional number, it is returned as a float, not integer.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>worldTime</CODE> - world time to get the corresponding sequence time of<DT><B>Returns:</B><DD>animation sequence position in number of time units         elapsed since the beginning of this animation, until         <code>worldTime</code><DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/AnimationController.html#setPosition(float, int)"><CODE>setPosition</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setWeight(float)"><!-- --></A><H3>
setWeight</H3>
<PRE>
public void <B>setWeight</B>(float&nbsp;weight)</PRE>
<DL>
<DD><p>Sets the blending weight for this animation controller. The blending weight must be positive or zero. Setting the weight to zero disables this animation controller; that is, the controller is subsequently not active even within its active range. If the weight is non-zero, the animations controlled by this controller contribute to their target properties as described in the class description.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>weight</CODE> - the new blending weight<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>weight &lt; 0</code><DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/AnimationController.html#getWeight()"><CODE>getWeight</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getWeight()"><!-- --></A><H3>
getWeight</H3>
<PRE>
public float <B>getWeight</B>()</PRE>
<DL>
<DD><p>Retrieves the currently set blending weight for this animation controller.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the current blending weight<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/AnimationController.html#setWeight(float)"><CODE>setWeight</CODE></A></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=3 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>&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/AnimationController.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-files/index-1.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><B>Nov 19, 2003</B></EM></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../javax/microedition/m3g/AnimationTrack.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="AnimationController.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&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>
<EM>Copyright &copy 2003 Nokia Corporation. See the <a href="../../../overview-summary.html#Copyright">Copyright Notice</a> for details.</EM>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -