March 2002
Intermediate to advanced
400 pages
8h 44m
English
Command and Event Handling
Graphics Drawing
This chapter teaches you how to use the MIDP low-level API, which is the second of two MIDP UI component APIs. You learned about the other API, the MIDP high-level API, in chapter 4. The low-level API makes it possible for you to do two things that you can't do with the high-level API:
Obtain low-level information about events (such as key stroke information), that is delivered to your component.
Define the look of the your UI component.
Two classes comprise the definition of the low-level API:
javax.microedition.lcdui.Canvas
javax.microedition.lcdui.Graphics
Figure 6.1 reproduces a subset of the MIDP inheritance hierarchy diagram in Figure 5.1 in chapter 5. You can see ...
Read now
Unlock full access