OSDN Git Service

Remove as sg.exe is not a open source product.
[nxt-jsp/etrobo-atk.git] / nxtOSEK / lejos_nxj / docs / apidocs / lejos / nxt / LCD.html
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.5.0_09) on Tue Mar 27 00:00:26 BST 2007 -->
6 <TITLE>
7 LCD (leJOS NXT API documentation)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="lejos.nxt.LCD class">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17     parent.document.title="LCD (leJOS NXT API documentation)";
18 }
19 </SCRIPT>
20 <NOSCRIPT>
21 </NOSCRIPT>
22
23 </HEAD>
24
25 <BODY BGCOLOR="white" onload="windowTitle();">
26
27
28 <!-- ========= START OF TOP NAVBAR ======= -->
29 <A NAME="navbar_top"><!-- --></A>
30 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
32 <TR>
33 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34 <A NAME="navbar_top_firstrow"><!-- --></A>
35 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36   <TR ALIGN="center" VALIGN="top">
37   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
38   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
39   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
40   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
41   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
42   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
43   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
44   </TR>
45 </TABLE>
46 </TD>
47 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
48 </EM>
49 </TD>
50 </TR>
51
52 <TR>
53 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54 &nbsp;<A HREF="../../lejos/nxt/I2CSensor.html" title="class in lejos.nxt"><B>PREV CLASS</B></A>&nbsp;
55 &nbsp;<A HREF="../../lejos/nxt/LightSensor.html" title="class in lejos.nxt"><B>NEXT CLASS</B></A></FONT></TD>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57   <A HREF="../../index.html?lejos/nxt/LCD.html" target="_top"><B>FRAMES</B></A>  &nbsp;
58 &nbsp;<A HREF="LCD.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
59 &nbsp;<SCRIPT type="text/javascript">
60   <!--
61   if(window==top) {
62     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
63   }
64   //-->
65 </SCRIPT>
66 <NOSCRIPT>
67   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
68 </NOSCRIPT>
69
70
71 </FONT></TD>
72 </TR>
73 <TR>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
78 </TR>
79 </TABLE>
80 <A NAME="skip-navbar_top"></A>
81 <!-- ========= END OF TOP NAVBAR ========= -->
82
83 <HR>
84 <!-- ======== START OF CLASS DATA ======== -->
85 <H2>
86 <FONT SIZE="-1">
87 lejos.nxt</FONT>
88 <BR>
89 Class LCD</H2>
90 <PRE>
91 <A HREF="../../java/lang/Object.html" title="class in java.lang">java.lang.Object</A>
92   <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>lejos.nxt.LCD</B>
93 </PRE>
94 <HR>
95 <DL>
96 <DT><PRE>public class <B>LCD</B><DT>extends <A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></DL>
97 </PRE>
98
99 <P>
100 LCD routines.
101 <P>
102
103 <P>
104 <HR>
105
106 <P>
107
108 <!-- ========== METHOD SUMMARY =========== -->
109
110 <A NAME="method_summary"><!-- --></A>
111 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
112 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
113 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
114 <B>Method Summary</B></FONT></TH>
115 </TR>
116 <TR BGCOLOR="white" CLASS="TableRowColor">
117 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
118 <CODE>static&nbsp;void</CODE></FONT></TD>
119 <TD><CODE><B><A HREF="../../lejos/nxt/LCD.html#clear()">clear</A></B>()</CODE>
120
121 <BR>
122 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clear the display.</TD>
123 </TR>
124 <TR BGCOLOR="white" CLASS="TableRowColor">
125 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
126 <CODE>static&nbsp;void</CODE></FONT></TD>
127 <TD><CODE><B><A HREF="../../lejos/nxt/LCD.html#drawInt(int, int, int)">drawInt</A></B>(int&nbsp;i,
128         int&nbsp;x,
129         int&nbsp;y)</CODE>
130
131 <BR>
132 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Display an int on the LCD at specified x,y co-ordinate.</TD>
133 </TR>
134 <TR BGCOLOR="white" CLASS="TableRowColor">
135 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
136 <CODE>static&nbsp;void</CODE></FONT></TD>
137 <TD><CODE><B><A HREF="../../lejos/nxt/LCD.html#drawInt(int, int, int, int)">drawInt</A></B>(int&nbsp;i,
138         int&nbsp;places,
139         int&nbsp;x,
140         int&nbsp;y)</CODE>
141
142 <BR>
143 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Display an in on the LCD at x,y with leading spaces to occupy at least the number
144  of characters specified by the places parameter.</TD>
145 </TR>
146 <TR BGCOLOR="white" CLASS="TableRowColor">
147 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148 <CODE>static&nbsp;void</CODE></FONT></TD>
149 <TD><CODE><B><A HREF="../../lejos/nxt/LCD.html#drawString(java.lang.String, int, int)">drawString</A></B>(<A HREF="../../java/lang/String.html" title="class in java.lang">String</A>&nbsp;str,
150            int&nbsp;x,
151            int&nbsp;y)</CODE>
152
153 <BR>
154 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Display a string on the LCD at specified x,y co-ordinate.</TD>
155 </TR>
156 <TR BGCOLOR="white" CLASS="TableRowColor">
157 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
158 <CODE>static&nbsp;void</CODE></FONT></TD>
159 <TD><CODE><B><A HREF="../../lejos/nxt/LCD.html#refresh()">refresh</A></B>()</CODE>
160
161 <BR>
162 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update the display.</TD>
163 </TR>
164 <TR BGCOLOR="white" CLASS="TableRowColor">
165 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
166 <CODE>static&nbsp;void</CODE></FONT></TD>
167 <TD><CODE><B><A HREF="../../lejos/nxt/LCD.html#setDisplay(int[])">setDisplay</A></B>(int[]&nbsp;buff)</CODE>
168
169 <BR>
170 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write graphics from a Java buffer to the display.</TD>
171 </TR>
172 </TABLE>
173 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
174 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
175 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
176 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></B></TH>
177 </TR>
178 <TR BGCOLOR="white" CLASS="TableRowColor">
179 <TD><CODE><A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A></CODE></TD>
180 </TR>
181 </TABLE>
182 &nbsp;
183 <P>
184
185 <!-- ============ METHOD DETAIL ========== -->
186
187 <A NAME="method_detail"><!-- --></A>
188 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
189 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
190 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
191 <B>Method Detail</B></FONT></TH>
192 </TR>
193 </TABLE>
194
195 <A NAME="drawString(java.lang.String, int, int)"><!-- --></A><H3>
196 drawString</H3>
197 <PRE>
198 public static void <B>drawString</B>(<A HREF="../../java/lang/String.html" title="class in java.lang">String</A>&nbsp;str,
199                               int&nbsp;x,
200                               int&nbsp;y)</PRE>
201 <DL>
202 <DD>Display a string on the LCD at specified x,y co-ordinate.
203 <P>
204 <DD><DL>
205 </DL>
206 </DD>
207 </DL>
208 <HR>
209
210 <A NAME="drawInt(int, int, int)"><!-- --></A><H3>
211 drawInt</H3>
212 <PRE>
213 public static void <B>drawInt</B>(int&nbsp;i,
214                            int&nbsp;x,
215                            int&nbsp;y)</PRE>
216 <DL>
217 <DD>Display an int on the LCD at specified x,y co-ordinate.
218 <P>
219 <DD><DL>
220 </DL>
221 </DD>
222 </DL>
223 <HR>
224
225 <A NAME="drawInt(int, int, int, int)"><!-- --></A><H3>
226 drawInt</H3>
227 <PRE>
228 public static void <B>drawInt</B>(int&nbsp;i,
229                            int&nbsp;places,
230                            int&nbsp;x,
231                            int&nbsp;y)</PRE>
232 <DL>
233 <DD>Display an in on the LCD at x,y with leading spaces to occupy at least the number
234  of characters specified by the places parameter.
235 <P>
236 <DD><DL>
237 </DL>
238 </DD>
239 </DL>
240 <HR>
241
242 <A NAME="refresh()"><!-- --></A><H3>
243 refresh</H3>
244 <PRE>
245 public static void <B>refresh</B>()</PRE>
246 <DL>
247 <DD>Update the display.
248 <P>
249 <DD><DL>
250 </DL>
251 </DD>
252 </DL>
253 <HR>
254
255 <A NAME="clear()"><!-- --></A><H3>
256 clear</H3>
257 <PRE>
258 public static void <B>clear</B>()</PRE>
259 <DL>
260 <DD>Clear the display.
261 <P>
262 <DD><DL>
263 </DL>
264 </DD>
265 </DL>
266 <HR>
267
268 <A NAME="setDisplay(int[])"><!-- --></A><H3>
269 setDisplay</H3>
270 <PRE>
271 public static void <B>setDisplay</B>(int[]&nbsp;buff)</PRE>
272 <DL>
273 <DD>Write graphics from a Java buffer to the display.
274 <P>
275 <DD><DL>
276 </DL>
277 </DD>
278 </DL>
279 <!-- ========= END OF CLASS DATA ========= -->
280 <HR>
281
282
283 <!-- ======= START OF BOTTOM NAVBAR ====== -->
284 <A NAME="navbar_bottom"><!-- --></A>
285 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
286 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
287 <TR>
288 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
289 <A NAME="navbar_bottom_firstrow"><!-- --></A>
290 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
291   <TR ALIGN="center" VALIGN="top">
292   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
293   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
294   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
295   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
296   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
297   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
298   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
299   </TR>
300 </TABLE>
301 </TD>
302 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
303 </EM>
304 </TD>
305 </TR>
306
307 <TR>
308 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
309 &nbsp;<A HREF="../../lejos/nxt/I2CSensor.html" title="class in lejos.nxt"><B>PREV CLASS</B></A>&nbsp;
310 &nbsp;<A HREF="../../lejos/nxt/LightSensor.html" title="class in lejos.nxt"><B>NEXT CLASS</B></A></FONT></TD>
311 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
312   <A HREF="../../index.html?lejos/nxt/LCD.html" target="_top"><B>FRAMES</B></A>  &nbsp;
313 &nbsp;<A HREF="LCD.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
314 &nbsp;<SCRIPT type="text/javascript">
315   <!--
316   if(window==top) {
317     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
318   }
319   //-->
320 </SCRIPT>
321 <NOSCRIPT>
322   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
323 </NOSCRIPT>
324
325
326 </FONT></TD>
327 </TR>
328 <TR>
329 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
330   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
331 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
332 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
333 </TR>
334 </TABLE>
335 <A NAME="skip-navbar_bottom"></A>
336 <!-- ======== END OF BOTTOM NAVBAR ======= -->
337
338 <HR>
339
340 </BODY>
341 </HTML>