PageRenderTime 26ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/eclipse/TotemToolkit/reference/template/HelloWorld.html

https://github.com/aleneum/idac
HTML | 374 lines | 301 code | 43 blank | 30 comment | 0 complexity | 99f8d45b4f87ed7dcfed72703263d979 MD5 | raw file
  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_18) on Tue Mar 02 18:14:25 CET 2010 -->
  6. <TITLE>
  7. HelloWorld (Javadocs: totemtoolkit)
  8. </TITLE>
  9. <META NAME="date" CONTENT="2010-03-02">
  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="HelloWorld (Javadocs: totemtoolkit)";
  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="../template/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;PREV CLASS&nbsp;
  49. &nbsp;NEXT CLASS</FONT></TD>
  50. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  51. <A HREF="../index.html?template/HelloWorld.html" target="_top"><B>FRAMES</B></A> &nbsp;
  52. &nbsp;<A HREF="HelloWorld.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;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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. <FONT SIZE="-1">
  78. template</FONT>
  79. <BR>
  80. Class HelloWorld</H2>
  81. <PRE>
  82. java.lang.Object
  83. <IMG SRC="../resources/inherit.gif" ALT="extended by "><B>template.HelloWorld</B>
  84. </PRE>
  85. <HR>
  86. <DL>
  87. <DT><PRE>public class <B>HelloWorld</B><DT>extends java.lang.Object</DL>
  88. </PRE>
  89. <P>
  90. this is a template class and can be used to start a new processing library.
  91. make sure you rename this class as well as the name of the package template
  92. this class belongs to.
  93. <P>
  94. <P>
  95. <DL>
  96. <DT><B>Author:</B></DT>
  97. <DD>andreas schlegel</DD>
  98. <script type="text/javascript">
  99. <!--
  100. document.getElementsByTagName('html')[0].className = 'isjs';function toggle(dt) { var display, dd=dt; do{ dd = dd.nextSibling } while(dd.tagName!='DD'); toOpen =!dd.style.display;dd.style.display = toOpen? 'block':''; dt.getElementsByTagName('span')[0].innerHTML = toOpen? '-':'+' ; }
  101. -->
  102. </script>
  103. <div id="test" class="toggleList example"><dl><dt onclick="toggle(this);"><span>+</span>Example</dt><dd><pre>import template.*;
  104. void setup() {
  105. size(400,400);
  106. HelloWorld hello = new HelloWorld(this);
  107. println(hello.getVariable());
  108. }
  109. void draw() {
  110. background(0);
  111. }
  112. </pre></dd></dl></div></DL>
  113. <HR>
  114. <P>
  115. <!-- =========== FIELD SUMMARY =========== -->
  116. <A NAME="field_summary"><!-- --></A>
  117. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  118. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  119. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  120. <B>Field Summary</B></FONT></TH>
  121. </TR>
  122. <TR BGCOLOR="white" CLASS="TableRowColor">
  123. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  124. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  125. <TD><CODE><B><A HREF="../template/HelloWorld.html#VERSION">VERSION</A></B></CODE>
  126. <BR>
  127. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  128. </TR>
  129. </TABLE>
  130. &nbsp;
  131. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  132. <A NAME="constructor_summary"><!-- --></A>
  133. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  134. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  135. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  136. <B>Constructor Summary</B></FONT></TH>
  137. </TR>
  138. <TR BGCOLOR="white" CLASS="TableRowColor">
  139. <TD><CODE><B><A HREF="../template/HelloWorld.html#HelloWorld(PApplet)">HelloWorld</A></B>(PApplet&nbsp;theParent)</CODE>
  140. <BR>
  141. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a Constructor, usually called in the setup() method in your sketch to
  142. initialize and start the library.</TD>
  143. </TR>
  144. </TABLE>
  145. &nbsp;
  146. <!-- ========== METHOD SUMMARY =========== -->
  147. <A NAME="method_summary"><!-- --></A>
  148. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  149. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  150. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  151. <B>Method Summary</B></FONT></TH>
  152. </TR>
  153. <TR BGCOLOR="white" CLASS="TableRowColor">
  154. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  155. <CODE>&nbsp;int</CODE></FONT></TD>
  156. <TD><CODE><B><A HREF="../template/HelloWorld.html#getVariable()">getVariable</A></B>()</CODE>
  157. <BR>
  158. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  159. </TR>
  160. <TR BGCOLOR="white" CLASS="TableRowColor">
  161. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  162. <CODE>&nbsp;void</CODE></FONT></TD>
  163. <TD><CODE><B><A HREF="../template/HelloWorld.html#setVariable(int, int)">setVariable</A></B>(int&nbsp;theA,
  164. int&nbsp;theB)</CODE>
  165. <BR>
  166. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  167. </TR>
  168. <TR BGCOLOR="white" CLASS="TableRowColor">
  169. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  170. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  171. <TD><CODE><B><A HREF="../template/HelloWorld.html#version()">version</A></B>()</CODE>
  172. <BR>
  173. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return the version of the library.</TD>
  174. </TR>
  175. </TABLE>
  176. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  177. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  178. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  179. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  180. </TR>
  181. <TR BGCOLOR="white" CLASS="TableRowColor">
  182. <TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  183. </TR>
  184. </TABLE>
  185. &nbsp;
  186. <P>
  187. <!-- ============ FIELD DETAIL =========== -->
  188. <A NAME="field_detail"><!-- --></A>
  189. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  190. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  191. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  192. <B>Field Detail</B></FONT></TH>
  193. </TR>
  194. </TABLE>
  195. <A NAME="VERSION"><!-- --></A><H3>
  196. VERSION</H3>
  197. <PRE>
  198. public final java.lang.String <B>VERSION</B></PRE>
  199. <DL>
  200. <DL>
  201. <DT><B>See Also:</B><DD><A HREF="../constant-values.html#template.HelloWorld.VERSION">Constant Field Values</A></DL>
  202. </DL>
  203. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  204. <A NAME="constructor_detail"><!-- --></A>
  205. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  206. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  207. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  208. <B>Constructor Detail</B></FONT></TH>
  209. </TR>
  210. </TABLE>
  211. <A NAME="HelloWorld(PApplet)"><!-- --></A><H3>
  212. HelloWorld</H3>
  213. <PRE>
  214. public <B>HelloWorld</B>(PApplet&nbsp;theParent)</PRE>
  215. <DL>
  216. <DD>a Constructor, usually called in the setup() method in your sketch to
  217. initialize and start the library.
  218. <P>
  219. <DL>
  220. <DT><B>Parameters:</B><DD><CODE>theParent</CODE> - <script type="text/javascript">
  221. <!--
  222. document.getElementsByTagName('html')[0].className = 'isjs';function toggle(dt) { var display, dd=dt; do{ dd = dd.nextSibling } while(dd.tagName!='DD'); toOpen =!dd.style.display;dd.style.display = toOpen? 'block':''; dt.getElementsByTagName('span')[0].innerHTML = toOpen? '-':'+' ; }
  223. -->
  224. </script>
  225. <div id="test" class="toggleList example"><dl><dt onclick="toggle(this);"><span>+</span>Example</dt><dd><pre>import template.*;
  226. void setup() {
  227. size(400,400);
  228. HelloWorld hello = new HelloWorld(this);
  229. println(hello.getVariable());
  230. }
  231. void draw() {
  232. background(0);
  233. }
  234. </pre></dd></dl></div></DL>
  235. </DL>
  236. <!-- ============ METHOD DETAIL ========== -->
  237. <A NAME="method_detail"><!-- --></A>
  238. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  239. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  240. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  241. <B>Method Detail</B></FONT></TH>
  242. </TR>
  243. </TABLE>
  244. <A NAME="version()"><!-- --></A><H3>
  245. version</H3>
  246. <PRE>
  247. public java.lang.String <B>version</B>()</PRE>
  248. <DL>
  249. <DD>return the version of the library.
  250. <P>
  251. <DD><DL>
  252. <DT><B>Returns:</B><DD>String</DL>
  253. </DD>
  254. </DL>
  255. <HR>
  256. <A NAME="setVariable(int, int)"><!-- --></A><H3>
  257. setVariable</H3>
  258. <PRE>
  259. public void <B>setVariable</B>(int&nbsp;theA,
  260. int&nbsp;theB)</PRE>
  261. <DL>
  262. <DD><DL>
  263. <DT><B>Parameters:</B><DD><CODE>theA</CODE> - the width of test<DD><CODE>theB</CODE> - the height of test</DL>
  264. </DD>
  265. </DL>
  266. <HR>
  267. <A NAME="getVariable()"><!-- --></A><H3>
  268. getVariable</H3>
  269. <PRE>
  270. public int <B>getVariable</B>()</PRE>
  271. <DL>
  272. <DD><DL>
  273. <DT><B>Returns:</B><DD>int</DL>
  274. </DD>
  275. </DL>
  276. <!-- ========= END OF CLASS DATA ========= -->
  277. <HR>
  278. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  279. <A NAME="navbar_bottom"><!-- --></A>
  280. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  281. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  282. <TR>
  283. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  284. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  285. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  286. <TR ALIGN="center" VALIGN="top">
  287. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../template/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  288. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  289. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  290. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  291. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  292. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  293. </TR>
  294. </TABLE>
  295. </TD>
  296. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  297. </EM>
  298. </TD>
  299. </TR>
  300. <TR>
  301. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  302. &nbsp;PREV CLASS&nbsp;
  303. &nbsp;NEXT CLASS</FONT></TD>
  304. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  305. <A HREF="../index.html?template/HelloWorld.html" target="_top"><B>FRAMES</B></A> &nbsp;
  306. &nbsp;<A HREF="HelloWorld.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  307. &nbsp;<SCRIPT type="text/javascript">
  308. <!--
  309. if(window==top) {
  310. document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
  311. }
  312. //-->
  313. </SCRIPT>
  314. <NOSCRIPT>
  315. <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
  316. </NOSCRIPT>
  317. </FONT></TD>
  318. </TR>
  319. <TR>
  320. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  321. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  322. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  323. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  324. </TR>
  325. </TABLE>
  326. <A NAME="skip-navbar_bottom"></A>
  327. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  328. <HR>
  329. processing library totemtoolkit by IDAC. (c) 2010
  330. </BODY>
  331. </HTML>