Chapter 14. Working with Graphics: Low-Level Graphical User Interfaces

Let's face facts—graphics are the heart of gaming, and good graphics consist of writing and animating all sorts of images on a device's screen.

The MIDP UI component that supports this low-level approach is the javax.microedition.lcdui.Canvas class. This is the class where all the action happens.

The Canvas Class

Canvas handles low-level events and allows you to draw directly onto the device's display. The Canvas class, just like the Screen class, implements the javax.microedition.lcdui.Displayable interface. Just like a Form, an Alert, or any other type of screen, you can easily create and display multiple Canvas ...

Get Micro Java™ Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.