Talk:How to display rotated text in Java ME
Article Review by kalki
(20090918)
Very Great idea to create animation without flashLite. Article shows a code example by which one can rotate or animate given text on the screen.The ideas is to first define the string which is to be rotated as constant,Then draw a blank image of specific size, then using drwaString method to display string on canvas and then using sprite basic element of j2me, drawRegion mehod to draw the given string on canvas and rotate it using specifying rotation angle in drawRegion method.
Article Review by Larry101 (20090921)
The drawString method of the Graphics class in Java ME does not provide any way of drawing text at an angle. This article provides a nice little trick for printing angled text. It simply consists of creating an empty Image, drawing the text on that Image, and finally rotating the image using the g.drawRegion method of the Graphics class. This method allows programmers to specify a transform (such as those supported by the Sprite class). In the code example, the text is rotated in this manner by 90 degrees, allowing text to be printed horizontally. The same effect could be used to created mirrored text (by using the mirror transforms supported by the Sprite class).
Article Review by Tiger79 (20090922)
Very short and simple tutorial actually about how to display a normal String vertically instead of what J2ME does normally which would be horizontally..
Very Great idea to create animation without flashLite. Article shows a code example by which one can rotate or animate given text on the screen.The ideas is to first define the string which is to be rotated as constant,Then draw a blank image of specific size, then using drwaString method to display string on canvas and then using sprite basic element of j2me, drawRegion mehod to draw the given string on canvas and rotate it using specifying rotation angle in drawRegion method.
Seriously this articles gives simple and staring way to utilize simple graphics method to create animation without using any flash components.
Article Review by Larry101 (20090921)
The drawString method of the Graphics class in Java ME does not provide any way of drawing text at an angle. This article provides a nice little trick for printing angled text. It simply consists of creating an empty Image, drawing the text on that Image, and finally rotating the image using the g.drawRegion method of the Graphics class. This method allows programmers to specify a transform (such as those supported by the Sprite class). In the code example, the text is rotated in this manner by 90 degrees, allowing text to be printed horizontally. The same effect could be used to created mirrored text (by using the mirror transforms supported by the Sprite class).
Article Review by Tiger79 (20090922)
Very short and simple tutorial actually about how to display a normal String vertically instead of what J2ME does normally which would be horizontally..
Because there is no direct method for a String in which you can select which direction should be used the writer of this tutorial is creating an Image out of the String because an Image actually can be rotated using standard J2ME methods. This made it possible to use Image functionality to realize a functionality which is not available out-of-the-box with Strings...
This same code can be obviously used to write a String upside-down (Sprite.TRANS_ROT180) and vertically but mirrored.

