The MIDlet loads and displays a pre-generated static SVG image of a lion cub. The user can manipulate the image by zooming and rotating. The Series 40 full touch version of the MIDlet uses pinch gestures for zooming in and out of the image, and drag gestures for moving the image. The menu options include:
Zoom in
Zoom out
Rotate counter clockwise
Rotate clockwise
Restore zoom and rotation
Exit the MIDlet
Figure: Pre-generated static SVG image
The MIDlet consists of the following classes:
LoadStaticMidlet
—MIDlet main class, which
sets up the UI and menu options and displays the SVG image
SvgCanvas2
—GameCanvas
class
that sets up and draws the SVG image
The Series 40 full touch version of the MIDlet uses the Mobile Sensor API to detect device orientation changes and rotate the image accordingly.
For information about implementing the MIDlet, see section Implementation.