Design

The MIDlet creates a simple static SVG image that shows a smiley face.

Figure: Static SVG image

The MIDlet consists of the following classes:

  • HelloWorldMidlet—MIDlet main class, which sets up the UI and displays the SVG image

  • SvgCanvas1GameCanvas class that sets up and draws the SVG image

The Series 40 full touch version of the MIDlet uses the Orientation API to detect display orientation changes and adjust its UI orientation accordingly.

For information about implementing the MIDlet, see section Implementation.