1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.5.0_09) on Sun Sep 02 23:07:09 BST 2007 -->
7 Display (leJOS NXT API documentation)
10 <META NAME="keywords" CONTENT="javax.microedition.lcdui.Display class">
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
14 <SCRIPT type="text/javascript">
15 function windowTitle()
17 parent.document.title="Display (leJOS NXT API documentation)";
25 <BODY BGCOLOR="white" onload="windowTitle();">
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="">
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> </TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
47 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
53 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54 <A HREF="../../../javax/microedition/lcdui/CommandListener.html" title="interface in javax.microedition.lcdui"><B>PREV CLASS</B></A>
55 <A HREF="../../../javax/microedition/lcdui/Displayable.html" title="class in javax.microedition.lcdui"><B>NEXT CLASS</B></A></FONT></TD>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../../index.html?javax/microedition/lcdui/Display.html" target="_top"><B>FRAMES</B></A>
58 <A HREF="Display.html" target="_top"><B>NO FRAMES</B></A>
59 <SCRIPT type="text/javascript">
62 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
80 <A NAME="skip-navbar_top"></A>
81 <!-- ========= END OF TOP NAVBAR ========= -->
84 <!-- ======== START OF CLASS DATA ======== -->
87 javax.microedition.lcdui</FONT>
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>javax.microedition.lcdui.Display</B>
96 <DT><PRE>public class <B>Display</B><DT>extends <A HREF="../../../java/lang/Object.html" title="class in java.lang">Object</A></DL>
101 <DT><B>Author:</B></DT>
102 <DD>Andre Nijholt</DD>
107 <!-- =========== FIELD SUMMARY =========== -->
109 <A NAME="field_summary"><!-- --></A>
110 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
111 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
112 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
113 <B>Field Summary</B></FONT></TH>
115 <TR BGCOLOR="white" CLASS="TableRowColor">
116 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
117 <CODE>static int</CODE></FONT></TD>
118 <TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#CHAR_HEIGHT">CHAR_HEIGHT</A></B></CODE>
121 </TD>
123 <TR BGCOLOR="white" CLASS="TableRowColor">
124 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
125 <CODE>static int</CODE></FONT></TD>
126 <TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#CHAR_WIDTH">CHAR_WIDTH</A></B></CODE>
129 </TD>
131 <TR BGCOLOR="white" CLASS="TableRowColor">
132 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
133 <CODE>protected <A HREF="../../../javax/microedition/lcdui/Graphics.html" title="class in javax.microedition.lcdui">Graphics</A></CODE></FONT></TD>
134 <TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#graphics">graphics</A></B></CODE>
137 </TD>
139 <TR BGCOLOR="white" CLASS="TableRowColor">
140 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141 <CODE>static int</CODE></FONT></TD>
142 <TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#SCREEN_CHAR_DEPTH">SCREEN_CHAR_DEPTH</A></B></CODE>
145 </TD>
147 <TR BGCOLOR="white" CLASS="TableRowColor">
148 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149 <CODE>static int</CODE></FONT></TD>
150 <TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#SCREEN_CHAR_WIDTH">SCREEN_CHAR_WIDTH</A></B></CODE>
153 </TD>
155 <TR BGCOLOR="white" CLASS="TableRowColor">
156 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157 <CODE>static int</CODE></FONT></TD>
158 <TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#SCREEN_HEIGHT">SCREEN_HEIGHT</A></B></CODE>
161 </TD>
163 <TR BGCOLOR="white" CLASS="TableRowColor">
164 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165 <CODE>static int</CODE></FONT></TD>
166 <TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#SCREEN_WIDTH">SCREEN_WIDTH</A></B></CODE>
169 </TD>
173 <!-- ========== METHOD SUMMARY =========== -->
175 <A NAME="method_summary"><!-- --></A>
176 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
177 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
178 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
179 <B>Method Summary</B></FONT></TH>
181 <TR BGCOLOR="white" CLASS="TableRowColor">
182 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183 <CODE> <A HREF="../../../javax/microedition/lcdui/Displayable.html" title="class in javax.microedition.lcdui">Displayable</A></CODE></FONT></TD>
184 <TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#getCurrent()">getCurrent</A></B>()</CODE>
187 </TD>
189 <TR BGCOLOR="white" CLASS="TableRowColor">
190 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191 <CODE>static <A HREF="../../../javax/microedition/lcdui/Display.html" title="class in javax.microedition.lcdui">Display</A></CODE></FONT></TD>
192 <TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#getDisplay()">getDisplay</A></B>()</CODE>
195 </TD>
197 <TR BGCOLOR="white" CLASS="TableRowColor">
198 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
199 <CODE> void</CODE></FONT></TD>
200 <TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#quit()">quit</A></B>()</CODE>
203 </TD>
205 <TR BGCOLOR="white" CLASS="TableRowColor">
206 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207 <CODE> void</CODE></FONT></TD>
208 <TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#setCurrent(javax.microedition.lcdui.Alert, javax.microedition.lcdui.Screen)">setCurrent</A></B>(<A HREF="../../../javax/microedition/lcdui/Alert.html" title="class in javax.microedition.lcdui">Alert</A> alert,
209 <A HREF="../../../javax/microedition/lcdui/Screen.html" title="class in javax.microedition.lcdui">Screen</A> nextDisplayable)</CODE>
212 </TD>
214 <TR BGCOLOR="white" CLASS="TableRowColor">
215 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216 <CODE> void</CODE></FONT></TD>
217 <TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#setCurrent(javax.microedition.lcdui.Screen)">setCurrent</A></B>(<A HREF="../../../javax/microedition/lcdui/Screen.html" title="class in javax.microedition.lcdui">Screen</A> nextDisplayable)</CODE>
220 </TD>
222 <TR BGCOLOR="white" CLASS="TableRowColor">
223 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224 <CODE> void</CODE></FONT></TD>
225 <TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#show(boolean)">show</A></B>(boolean polling)</CODE>
228 Start displaying the installed menus</TD>
231 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
232 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
233 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
234 <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>
236 <TR BGCOLOR="white" CLASS="TableRowColor">
237 <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>
243 <!-- ============ FIELD DETAIL =========== -->
245 <A NAME="field_detail"><!-- --></A>
246 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
247 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
248 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
249 <B>Field Detail</B></FONT></TH>
253 <A NAME="SCREEN_WIDTH"><!-- --></A><H3>
256 public static final int <B>SCREEN_WIDTH</B></PRE>
259 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.lcdui.Display.SCREEN_WIDTH">Constant Field Values</A></DL>
263 <A NAME="SCREEN_HEIGHT"><!-- --></A><H3>
266 public static final int <B>SCREEN_HEIGHT</B></PRE>
269 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.lcdui.Display.SCREEN_HEIGHT">Constant Field Values</A></DL>
273 <A NAME="CHAR_WIDTH"><!-- --></A><H3>
276 public static final int <B>CHAR_WIDTH</B></PRE>
279 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.lcdui.Display.CHAR_WIDTH">Constant Field Values</A></DL>
283 <A NAME="CHAR_HEIGHT"><!-- --></A><H3>
286 public static final int <B>CHAR_HEIGHT</B></PRE>
289 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.lcdui.Display.CHAR_HEIGHT">Constant Field Values</A></DL>
293 <A NAME="SCREEN_CHAR_WIDTH"><!-- --></A><H3>
294 SCREEN_CHAR_WIDTH</H3>
296 public static final int <B>SCREEN_CHAR_WIDTH</B></PRE>
299 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.lcdui.Display.SCREEN_CHAR_WIDTH">Constant Field Values</A></DL>
303 <A NAME="SCREEN_CHAR_DEPTH"><!-- --></A><H3>
304 SCREEN_CHAR_DEPTH</H3>
306 public static final int <B>SCREEN_CHAR_DEPTH</B></PRE>
309 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.lcdui.Display.SCREEN_CHAR_DEPTH">Constant Field Values</A></DL>
313 <A NAME="graphics"><!-- --></A><H3>
316 protected <A HREF="../../../javax/microedition/lcdui/Graphics.html" title="class in javax.microedition.lcdui">Graphics</A> <B>graphics</B></PRE>
322 <!-- ============ METHOD DETAIL ========== -->
324 <A NAME="method_detail"><!-- --></A>
325 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
326 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
327 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
328 <B>Method Detail</B></FONT></TH>
332 <A NAME="getDisplay()"><!-- --></A><H3>
335 public static <A HREF="../../../javax/microedition/lcdui/Display.html" title="class in javax.microedition.lcdui">Display</A> <B>getDisplay</B>()</PRE>
343 <A NAME="setCurrent(javax.microedition.lcdui.Screen)"><!-- --></A><H3>
346 public void <B>setCurrent</B>(<A HREF="../../../javax/microedition/lcdui/Screen.html" title="class in javax.microedition.lcdui">Screen</A> nextDisplayable)</PRE>
354 <A NAME="setCurrent(javax.microedition.lcdui.Alert, javax.microedition.lcdui.Screen)"><!-- --></A><H3>
357 public void <B>setCurrent</B>(<A HREF="../../../javax/microedition/lcdui/Alert.html" title="class in javax.microedition.lcdui">Alert</A> alert,
358 <A HREF="../../../javax/microedition/lcdui/Screen.html" title="class in javax.microedition.lcdui">Screen</A> nextDisplayable)</PRE>
366 <A NAME="getCurrent()"><!-- --></A><H3>
369 public <A HREF="../../../javax/microedition/lcdui/Displayable.html" title="class in javax.microedition.lcdui">Displayable</A> <B>getCurrent</B>()</PRE>
377 <A NAME="show(boolean)"><!-- --></A><H3>
380 public void <B>show</B>(boolean polling)</PRE>
382 <DD>Start displaying the installed menus
385 <DT><B>Parameters:</B><DD><CODE>polling</CODE> - true to poll for button updates (recommended)</DL>
390 <A NAME="quit()"><!-- --></A><H3>
393 public void <B>quit</B>()</PRE>
399 <!-- ========= END OF CLASS DATA ========= -->
403 <!-- ======= START OF BOTTOM NAVBAR ====== -->
404 <A NAME="navbar_bottom"><!-- --></A>
405 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
406 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
408 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
409 <A NAME="navbar_bottom_firstrow"><!-- --></A>
410 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
411 <TR ALIGN="center" VALIGN="top">
412 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
413 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
414 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
415 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
416 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
417 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
418 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
422 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
428 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
429 <A HREF="../../../javax/microedition/lcdui/CommandListener.html" title="interface in javax.microedition.lcdui"><B>PREV CLASS</B></A>
430 <A HREF="../../../javax/microedition/lcdui/Displayable.html" title="class in javax.microedition.lcdui"><B>NEXT CLASS</B></A></FONT></TD>
431 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
432 <A HREF="../../../index.html?javax/microedition/lcdui/Display.html" target="_top"><B>FRAMES</B></A>
433 <A HREF="Display.html" target="_top"><B>NO FRAMES</B></A>
434 <SCRIPT type="text/javascript">
437 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
442 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
449 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
450 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
451 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
452 DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
455 <A NAME="skip-navbar_bottom"></A>
456 <!-- ======== END OF BOTTOM NAVBAR ======= -->