Simple single-color 8x8x8 LED Cube with AVRs
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Animation.html 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_29) on Mon Dec 05 16:34:29 CET 2011 -->
  6. <TITLE>
  7. Animation
  8. </TITLE>
  9. <META NAME="date" CONTENT="2011-12-05">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="Animation";
  16. }
  17. }
  18. </SCRIPT>
  19. <NOSCRIPT>
  20. </NOSCRIPT>
  21. </HEAD>
  22. <BODY BGCOLOR="white" onload="windowTitle();">
  23. <HR>
  24. <!-- ========= START OF TOP NAVBAR ======= -->
  25. <A NAME="navbar_top"><!-- --></A>
  26. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  27. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  28. <TR>
  29. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  30. <A NAME="navbar_top_firstrow"><!-- --></A>
  31. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  32. <TR ALIGN="center" VALIGN="top">
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  39. </TR>
  40. </TABLE>
  41. </TD>
  42. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  43. </EM>
  44. </TD>
  45. </TR>
  46. <TR>
  47. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  48. &nbsp;<A HREF="AFrame.html" title="class in &lt;Unnamed&gt;"><B>PREV CLASS</B></A>&nbsp;
  49. &nbsp;<A HREF="AnimationUtility.html" title="class in &lt;Unnamed&gt;"><B>NEXT CLASS</B></A></FONT></TD>
  50. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  51. <A HREF="index.html?Animation.html" target="_top"><B>FRAMES</B></A> &nbsp;
  52. &nbsp;<A HREF="Animation.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  53. &nbsp;<SCRIPT type="text/javascript">
  54. <!--
  55. if(window==top) {
  56. document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
  57. }
  58. //-->
  59. </SCRIPT>
  60. <NOSCRIPT>
  61. <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
  62. </NOSCRIPT>
  63. </FONT></TD>
  64. </TR>
  65. <TR>
  66. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  67. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  68. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  69. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  70. </TR>
  71. </TABLE>
  72. <A NAME="skip-navbar_top"></A>
  73. <!-- ========= END OF TOP NAVBAR ========= -->
  74. <HR>
  75. <!-- ======== START OF CLASS DATA ======== -->
  76. <H2>
  77. Class Animation</H2>
  78. <PRE>
  79. java.lang.Object
  80. <IMG SRC="./resources/inherit.gif" ALT="extended by "><B>Animation</B>
  81. </PRE>
  82. <HR>
  83. <DL>
  84. <DT><PRE>public class <B>Animation</B><DT>extends java.lang.Object</DL>
  85. </PRE>
  86. <P>
  87. A collection of frames that represent an entire animation.
  88. <P>
  89. <P>
  90. <HR>
  91. <P>
  92. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  93. <A NAME="constructor_summary"><!-- --></A>
  94. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  95. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  96. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  97. <B>Constructor Summary</B></FONT></TH>
  98. </TR>
  99. <TR BGCOLOR="white" CLASS="TableRowColor">
  100. <TD><CODE><B><A HREF="Animation.html#Animation()">Animation</A></B>()</CODE>
  101. <BR>
  102. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  103. </TR>
  104. </TABLE>
  105. &nbsp;
  106. <!-- ========== METHOD SUMMARY =========== -->
  107. <A NAME="method_summary"><!-- --></A>
  108. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  109. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  110. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  111. <B>Method Summary</B></FONT></TH>
  112. </TR>
  113. <TR BGCOLOR="white" CLASS="TableRowColor">
  114. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  115. <CODE>&nbsp;void</CODE></FONT></TD>
  116. <TD><CODE><B><A HREF="Animation.html#add(int)">add</A></B>(int&nbsp;i)</CODE>
  117. <BR>
  118. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a new (empty) frame at the specified position</TD>
  119. </TR>
  120. <TR BGCOLOR="white" CLASS="TableRowColor">
  121. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  122. <CODE>&nbsp;void</CODE></FONT></TD>
  123. <TD><CODE><B><A HREF="Animation.html#add(int, AFrame)">add</A></B>(int&nbsp;i,
  124. <A HREF="AFrame.html" title="class in &lt;Unnamed&gt;">AFrame</A>&nbsp;f)</CODE>
  125. <BR>
  126. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a specified frame at the specified position</TD>
  127. </TR>
  128. <TR BGCOLOR="white" CLASS="TableRowColor">
  129. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  130. <CODE>&nbsp;<A HREF="AFrame.html" title="class in &lt;Unnamed&gt;">AFrame</A></CODE></FONT></TD>
  131. <TD><CODE><B><A HREF="Animation.html#get(int)">get</A></B>(int&nbsp;i)</CODE>
  132. <BR>
  133. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the specified frame in this animation</TD>
  134. </TR>
  135. <TR BGCOLOR="white" CLASS="TableRowColor">
  136. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  137. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  138. <TD><CODE><B><A HREF="Animation.html#getName()">getName</A></B>()</CODE>
  139. <BR>
  140. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the name of this animation</TD>
  141. </TR>
  142. <TR BGCOLOR="white" CLASS="TableRowColor">
  143. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  144. <CODE>&nbsp;void</CODE></FONT></TD>
  145. <TD><CODE><B><A HREF="Animation.html#remove(int)">remove</A></B>(int&nbsp;i)</CODE>
  146. <BR>
  147. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a frame.</TD>
  148. </TR>
  149. <TR BGCOLOR="white" CLASS="TableRowColor">
  150. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  151. <CODE>&nbsp;void</CODE></FONT></TD>
  152. <TD><CODE><B><A HREF="Animation.html#set(AFrame, int)">set</A></B>(<A HREF="AFrame.html" title="class in &lt;Unnamed&gt;">AFrame</A>&nbsp;f,
  153. int&nbsp;i)</CODE>
  154. <BR>
  155. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the selected Frame</TD>
  156. </TR>
  157. <TR BGCOLOR="white" CLASS="TableRowColor">
  158. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  159. <CODE>&nbsp;void</CODE></FONT></TD>
  160. <TD><CODE><B><A HREF="Animation.html#setName(java.lang.String)">setName</A></B>(java.lang.String&nbsp;s)</CODE>
  161. <BR>
  162. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the name of this animation</TD>
  163. </TR>
  164. <TR BGCOLOR="white" CLASS="TableRowColor">
  165. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  166. <CODE>&nbsp;int</CODE></FONT></TD>
  167. <TD><CODE><B><A HREF="Animation.html#size()">size</A></B>()</CODE>
  168. <BR>
  169. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return size of this animation, in number of frames</TD>
  170. </TR>
  171. </TABLE>
  172. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  173. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  174. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  175. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  176. </TR>
  177. <TR BGCOLOR="white" CLASS="TableRowColor">
  178. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  179. </TR>
  180. </TABLE>
  181. &nbsp;
  182. <P>
  183. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  184. <A NAME="constructor_detail"><!-- --></A>
  185. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  186. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  187. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  188. <B>Constructor Detail</B></FONT></TH>
  189. </TR>
  190. </TABLE>
  191. <A NAME="Animation()"><!-- --></A><H3>
  192. Animation</H3>
  193. <PRE>
  194. public <B>Animation</B>()</PRE>
  195. <DL>
  196. </DL>
  197. <!-- ============ METHOD DETAIL ========== -->
  198. <A NAME="method_detail"><!-- --></A>
  199. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  200. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  201. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  202. <B>Method Detail</B></FONT></TH>
  203. </TR>
  204. </TABLE>
  205. <A NAME="getName()"><!-- --></A><H3>
  206. getName</H3>
  207. <PRE>
  208. public java.lang.String <B>getName</B>()</PRE>
  209. <DL>
  210. <DD>Gets the name of this animation
  211. <P>
  212. <DD><DL>
  213. <DT><B>Returns:</B><DD>name of this animation</DL>
  214. </DD>
  215. </DL>
  216. <HR>
  217. <A NAME="setName(java.lang.String)"><!-- --></A><H3>
  218. setName</H3>
  219. <PRE>
  220. public void <B>setName</B>(java.lang.String&nbsp;s)</PRE>
  221. <DL>
  222. <DD>Sets the name of this animation
  223. <P>
  224. <DD><DL>
  225. <DT><B>Parameters:</B><DD><CODE>s</CODE> - new name</DL>
  226. </DD>
  227. </DL>
  228. <HR>
  229. <A NAME="get(int)"><!-- --></A><H3>
  230. get</H3>
  231. <PRE>
  232. public <A HREF="AFrame.html" title="class in &lt;Unnamed&gt;">AFrame</A> <B>get</B>(int&nbsp;i)</PRE>
  233. <DL>
  234. <DD>Gets the specified frame in this animation
  235. <P>
  236. <DD><DL>
  237. <DT><B>Parameters:</B><DD><CODE>i</CODE> - Index of frame you want
  238. <DT><B>Returns:</B><DD>The selected frame</DL>
  239. </DD>
  240. </DL>
  241. <HR>
  242. <A NAME="set(AFrame, int)"><!-- --></A><H3>
  243. set</H3>
  244. <PRE>
  245. public void <B>set</B>(<A HREF="AFrame.html" title="class in &lt;Unnamed&gt;">AFrame</A>&nbsp;f,
  246. int&nbsp;i)</PRE>
  247. <DL>
  248. <DD>Sets the selected Frame
  249. <P>
  250. <DD><DL>
  251. <DT><B>Parameters:</B><DD><CODE>f</CODE> - the frame you want to place in this animation<DD><CODE>i</CODE> - Index of the frame you want to override</DL>
  252. </DD>
  253. </DL>
  254. <HR>
  255. <A NAME="remove(int)"><!-- --></A><H3>
  256. remove</H3>
  257. <PRE>
  258. public void <B>remove</B>(int&nbsp;i)</PRE>
  259. <DL>
  260. <DD>Removes a frame. Subsequent frames shift to the left.
  261. <P>
  262. <DD><DL>
  263. <DT><B>Parameters:</B><DD><CODE>i</CODE> - Index of frame you want to remove</DL>
  264. </DD>
  265. </DL>
  266. <HR>
  267. <A NAME="add(int)"><!-- --></A><H3>
  268. add</H3>
  269. <PRE>
  270. public void <B>add</B>(int&nbsp;i)</PRE>
  271. <DL>
  272. <DD>Add a new (empty) frame at the specified position
  273. <P>
  274. <DD><DL>
  275. <DT><B>Parameters:</B><DD><CODE>i</CODE> - Index you want to place the new frame in<DT><B>See Also:</B><DD><A HREF="Animation.html#size()"><CODE>size()</CODE></A></DL>
  276. </DD>
  277. </DL>
  278. <HR>
  279. <A NAME="add(int, AFrame)"><!-- --></A><H3>
  280. add</H3>
  281. <PRE>
  282. public void <B>add</B>(int&nbsp;i,
  283. <A HREF="AFrame.html" title="class in &lt;Unnamed&gt;">AFrame</A>&nbsp;f)</PRE>
  284. <DL>
  285. <DD>Add a specified frame at the specified position
  286. <P>
  287. <DD><DL>
  288. <DT><B>Parameters:</B><DD><CODE>i</CODE> - Index for new frame<DD><CODE>f</CODE> - data for new frame</DL>
  289. </DD>
  290. </DL>
  291. <HR>
  292. <A NAME="size()"><!-- --></A><H3>
  293. size</H3>
  294. <PRE>
  295. public int <B>size</B>()</PRE>
  296. <DL>
  297. <DD>Return size of this animation, in number of frames
  298. <P>
  299. <DD><DL>
  300. <DT><B>Returns:</B><DD>number of frames</DL>
  301. </DD>
  302. </DL>
  303. <!-- ========= END OF CLASS DATA ========= -->
  304. <HR>
  305. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  306. <A NAME="navbar_bottom"><!-- --></A>
  307. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  308. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  309. <TR>
  310. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  311. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  312. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  313. <TR ALIGN="center" VALIGN="top">
  314. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  315. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  316. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  317. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  318. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  319. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  320. </TR>
  321. </TABLE>
  322. </TD>
  323. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  324. </EM>
  325. </TD>
  326. </TR>
  327. <TR>
  328. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  329. &nbsp;<A HREF="AFrame.html" title="class in &lt;Unnamed&gt;"><B>PREV CLASS</B></A>&nbsp;
  330. &nbsp;<A HREF="AnimationUtility.html" title="class in &lt;Unnamed&gt;"><B>NEXT CLASS</B></A></FONT></TD>
  331. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  332. <A HREF="index.html?Animation.html" target="_top"><B>FRAMES</B></A> &nbsp;
  333. &nbsp;<A HREF="Animation.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  334. &nbsp;<SCRIPT type="text/javascript">
  335. <!--
  336. if(window==top) {
  337. document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
  338. }
  339. //-->
  340. </SCRIPT>
  341. <NOSCRIPT>
  342. <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
  343. </NOSCRIPT>
  344. </FONT></TD>
  345. </TR>
  346. <TR>
  347. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  348. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  349. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  350. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  351. </TR>
  352. </TABLE>
  353. <A NAME="skip-navbar_bottom"></A>
  354. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  355. <HR>
  356. </BODY>
  357. </HTML>