📄 motion.html.svn-base
字号:
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="LINEAR"><!-- --></A><H3>
LINEAR</H3>
<PRE>
public static int <B>LINEAR</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="SPLINE"><!-- --></A><H3>
SPLINE</H3>
<PRE>
public static int <B>SPLINE</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="FRICTION"><!-- --></A><H3>
FRICTION</H3>
<PRE>
public static int <B>FRICTION</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="createLinearMotion(int, int, int)"><!-- --></A><H3>
createLinearMotion</H3>
<PRE>
public static <A HREF="../../../../com/sun/lwuit/animations/Motion.html" title="class in com.sun.lwuit.animations">Motion</A> <B>createLinearMotion</B>(int sourceValue,
int destinationValue,
int duration)</PRE>
<DL>
<DD>Creates a linear motion starting from source value all the way to destination value
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sourceValue</CODE> - the number from which we are starting (usually indicating animation start position)<DD><CODE>destinationValue</CODE> - the number to which we are heading (usually indicating animation destination)<DD><CODE>duration</CODE> - the length in milliseconds of the motion (time it takes to get from sourceValue to destinationValue)</DL>
</DD>
</DL>
<HR>
<A NAME="createSplineMotion(int, int, int)"><!-- --></A><H3>
createSplineMotion</H3>
<PRE>
public static <A HREF="../../../../com/sun/lwuit/animations/Motion.html" title="class in com.sun.lwuit.animations">Motion</A> <B>createSplineMotion</B>(int sourceValue,
int destinationValue,
int duration)</PRE>
<DL>
<DD>Creates a spline motion starting from source value all the way to destination value
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sourceValue</CODE> - the number from which we are starting (usually indicating animation start position)<DD><CODE>destinationValue</CODE> - the number to which we are heading (usually indicating animation destination)<DD><CODE>duration</CODE> - the length in milliseconds of the motion (time it takes to get from sourceValue to destinationValue)</DL>
</DD>
</DL>
<HR>
<A NAME="createFrictionMotion(int, float, float)"><!-- --></A><H3>
createFrictionMotion</H3>
<PRE>
public static <A HREF="../../../../com/sun/lwuit/animations/Motion.html" title="class in com.sun.lwuit.animations">Motion</A> <B>createFrictionMotion</B>(int sourceValue,
float initVelocity,
float friction)</PRE>
<DL>
<DD>Creates a friction motion starting from source with initial speed and the friction
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sourceValue</CODE> - the number from which we are starting (usually indicating animation start position)<DD><CODE>initVelocity</CODE> - the starting velocity<DD><CODE>friction</CODE> - the motion friction</DL>
</DD>
</DL>
<HR>
<A NAME="start()"><!-- --></A><H3>
start</H3>
<PRE>
public void <B>start</B>()</PRE>
<DL>
<DD>Sets the start time to the current time
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isFinished()"><!-- --></A><H3>
isFinished</H3>
<PRE>
public boolean <B>isFinished</B>()</PRE>
<DL>
<DD>Returns true if the motion has run its course and has finished meaning the current time is greater than startTime + duration.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if System.currentTimeMillis() > duration + startTime</DL>
</DD>
</DL>
<HR>
<A NAME="getValue()"><!-- --></A><H3>
getValue</H3>
<PRE>
public int <B>getValue</B>()</PRE>
<DL>
<DD>Returns the value for the motion for the current clock time. The value is dependent on the Motion type.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a value that is relative to the source value</DL>
</DD>
</DL>
<HR>
<A NAME="getSourceValue()"><!-- --></A><H3>
getSourceValue</H3>
<PRE>
public int <B>getSourceValue</B>()</PRE>
<DL>
<DD>The number from which we are starting (usually indicating animation start position)
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setSourceValue(int)"><!-- --></A><H3>
setSourceValue</H3>
<PRE>
public void <B>setSourceValue</B>(int sourceValue)</PRE>
<DL>
<DD>The number from which we are starting (usually indicating animation start position)
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getStartTime()"><!-- --></A><H3>
getStartTime</H3>
<PRE>
protected long <B>getStartTime</B>()</PRE>
<DL>
<DD>The value of System.currentTimemillis() when motion was started
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<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/Motion.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-files/index-1.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="../../../../com/sun/lwuit/animations/CommonTransitions.html" title="class in com.sun.lwuit.animations"><B>PREV CLASS</B></A>
<A HREF="../../../../com/sun/lwuit/animations/Transition.html" title="class in com.sun.lwuit.animations"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?com/sun/lwuit/animations/Motion.html" target="_top"><B>FRAMES</B></A>
<A HREF="Motion.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -