Drawing scalable numbers with J2ME

One of the users suggested that Mobile Trail Explorer (MTE) should have a speedometer screen which shows current speed with large numbers so that it could be used as a normal speedometer while driving a bike. One of the challenges is that MTE runs on different devices and therefore on different screen resolutions. For example my Nokia N80 has a very large resolution of 352 x 416 while latest N series devices are usually running with 240 x 320 and older devices are using smaller 176 x 208 resolution.

Using the bitmap fonts would have been a solution but that would require us to store bitmaps for every resolution and that would eat up a lot of valuable memory. I have used bitmaps fonts on SubOthello game. I think that it suits really well for mobile games which are targeted and built separately for different devices.

Trail Explorer Speedometer

To solve this more generic way, I created a NumberArea class for, which This is used to draw an area into Canvas where numbers such as speed and distance are rendered with basic Graphic methods such as fillRect(…) and fillRoundRect(…). If you are interested you can take a look into a source code.

On a side note: We are now on feature freeze with MTE so that we can release the v1.11 within a week or so.

Thanks Atlassian

It was a nice suprise to find Atlassian’s Codegeist T-shirt from my mailbox the other day. This year I was only able to code a small plugin for JIRA called NetBeans JIRA Plugin. I got the idea for this plugin as I was reading a book, Rich Client Programming, which has a great value when you are programming rich desktop apps or plugins for NetBeans platform.

Atlassian Codegeist T-Shirt

The plugin uses JIRA’s Web Service API to search, view and edit issues straight from the IDE. This is especially handy when you are writing a code to a specific issue and want to check some details or log work done for the issue.

The Atlassian Codegeist is a competition where everyone can write plugins for Atlassian products, such as JIRA, Bamboo, Confluence, FishEye, Crucible etc. I use those tools daily at work and I can truly say that they really improve the daily development process signifigantly.