Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

(Redirected from M2G API)

Scalable 2D Vector Graphics API

From Wiki
Jump to: navigation, search
Article Metadata
Compatibility
Platform(s):
Series 40
Symbian
Article
Created: firt (14 Apr 2007)
Last edited: hamishwillee (30 Jul 2013)

SVG API (JSR 226) is a great extension to Java ME that allows to develop the User Interface of the application in a more powerful way, using an SVG document. This API supports SVG Profile SVG Tiny, version 1.1.

With SVG you can design the user interface in any design software, like the ones from Adobe and place them inside the mobile screen using Java ME. SVG files are automatically scaled to the phone screen and can have hotspots areas where the user can browse and fires an event that can be captured by a Midlet.

This API adds the SVGImage and ScalableGraphics classes to manage SVG files. You can browse, add and remove elements from the graphics dynamically using Java and DOM.

A great doc titled MIDP: Scalable 2D Vector Graphics API Developer's Guide about this API is available on Nokia Developer.

There is also a new version of SVG API being specified JSR-287, which will support SVG Profile SVG Tiny, version 1.2.

This page was last modified on 30 July 2013, at 11:17.
136 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×