When I started working on GIS application on mobile, I started with vector map, actually I used MapInfo data can converted to my own format, which support spatial index (rtree index) ,the major rendering problem ,on J2ME or even Windows CE compact version ,the graphics API is not power enough ,like support pen with width more than 1 , fill a polyon etc. On J2ME platform, there's one powerful Graphics API provided by Tinyline (
http://www.tinyline.com/) ,it supports similar API as on J2SE platform ,like basic shapes, paths, texts, outlined fonts and images. it fits for my needs, I bought the standard licence from Tinyline. The API interface is not like J2SE or Window Mobile Compact Framework, it uses its own graphics concepts, so I wrote a wrapper on top of the Tinlyline Graphics API + plus 2D Geometry Shape support ,that comes my first version of Graphics 2D API (biz.guidebee.drawing). Tinyline API is great API, but I later with more graphics requirements from GIS engine impelmentation and obfuscated API is not always working on some devices, and it's hard to debug without have the source code, gradually I wrote my own Graphics 2D API without using Tinyline Graphics 2D, current version of MapDigit Graphics2D API (package, com.mapdigt.drawing & com.mapdigit.drawing.geometry) provides same interface as it's first version ,but with a complete rewrting. Perople with J2SE Graphics API or Windows mobile Compact version GDI experiences will find the API uses the simlar API interaces as J2SE or Window moble .Net compact version. and the API is independent on J2ME LCUDI ,it works both with CLDC/MIDP and LWUIT Graphics framework.
It also support vector font ,
- A wide range of geometric primitives, such as curves, rectangles, and ellipses, as well as a mechanism for rendering virtually any geometric shape
- Mechanisms for performing hit detection on shapes, text, and images
- Enhanced color support that facilitates color management
- Control of the quality of the rendering.
- Fill, stroke and dash
- Affine transformations
- Outline fonts
- Left-to-right, right-to-left and vertical text layouts
- Anti-aliasing
- Opacity
- Icon ,images
No comments:
Post a Comment