Scalable 2D vector graphics - SVGExamples

Description

These simple example MIDlets show you how to use the different features of the Scalable 2D Vector Graphics API (M2G API):

  • Creating and displaying a static SVG image (Hello World MIDlet)

  • Loading and manipulating a pre-generated static SVG image (Load Static Image MIDlet)

  • Creating, playing, and controlling an animated SVG image (SVG Animator MIDlet)

The MIDlets are packaged in a single MIDlet suite.

Figure: SVGExamples MIDlet running on a Nokia Asha software platform device

For tutorials that show you how to create the MIDlets, see:

Compatibility

This MIDlet suite is provided in two versions:

  • The regular version is compatible with Series 40 3rd Edition Feature Pack 1 devices and newer.

  • The Series 40 full touch version is only compatible with Java Runtime 2.0.0 for Series 40 devices and with Java Runtime for Nokia Asha software platform (1.0) for Nokia Asha software platform devices and newer.

This MIDlet suite has been tested on the following devices:

  • Nokia Asha 305 on Nokia Asha software platform (Java Runtime 2.0.0 for Series 40)

  • Nokia X3-02 (Series 40 6th Edition Feature Pack 1)

MIDlet suite project

The MIDlet suite project files are packaged as a zip file. The zip file includes two projects: the regular version and the Series 40 full touch version. To download the zip file, click the following link:

Download SVGExamples

Table: MIDlet suite details (regular version)

MIDlet suite version

1.0

Creation date

25 May 2012

IDE

Nokia IDE for Java ME (Eclipse) and NetBeans

SDK

Series 40 6th Edition Feature Pack 1 SDK

Table: MIDlet suite details (Series 40 full touch version)

MIDlet suite version

1.1

Creation date

25 May 2012

IDE

Nokia IDE for Java ME (Eclipse) and NetBeans

SDK

Nokia Asha SDK 1.0 and Nokia SDK 2.0 for Java

MIDlet suite classes

The MIDlet suite consists of the following classes (click to view the full source code):

Note: The source code is from the Nokia Asha software platform version of the MIDlet. To view the source code of the regular version, see the source code files in the zip file.

MIDlet suite resources

The MIDlet suite uses the following SVG files (click to view the full source code):