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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.