guidebee

November 24, 2009

Coordinates in MapDigit Graphics 2D API

Filed under: Uncategorized — guidebee @ 1:14 pm

In J2SE Graphics 2D API, it maintains two coordinate space
User space – The space in which graphics primitives are specified

Device space – The coordinate system of an output device such as a screen, window.

On Mobile device, because of realestae of screen, normally there’s no concept of overlapped windows, like MIDP2.0.

So MapDigit Graphics 2D API ‘s user space and device space are same, the origin of user space is the upper-left corner of the component’s drawing area. The x coordinate increases to the right, and the y coordinate increases downward, as shown in the picture, the unit alone the axis is pixel.

If you still prefer uses different User space or device space, it still possible,define your own user space and then apply AfflineTransform to the Graphics 2D canvas.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.

Design a site like this with WordPress.com
Get started