11-25-2009 12:35 AM
sorry, my text should change according to the user selection, around the circle..
is it possible to drawText over an arc path or ecliptic path?? we have option to draw eclipse or arc how can we draw text along taht path??
11-25-2009 01:12 AM
For iphone and android they make it popssibe... and they have drawpath method, where they draw these text.
i welcome any suggestions on this!!!
11-25-2009 04:12 AM
Like BBDeveloper, I am not aware of an API for this. If you really want it, look for a way of suggesting features to RIM. Sorry I am not aware of this process.
Anyway, the only way I can think of doing this using the current API involves you writing the individual characters into a Bitmap, then rotating and positioning the Bitmap yourself. I suspect that this is too much work, especially for something that is, in my opinion, not particularly attractive or easy to read. But that is just my opinion..
11-25-2009 04:16 AM
I feel even the Text which needs to be displayed is not a too many numbers, better to go for the whole Image and display the Image.
11-25-2009 08:52 AM - edited 11-25-2009 08:54 AM
This should be possible.
There is a Font.derive method which includes an affine transformation:
public Font derive(int style,
The steps would be:
1. Calculate the position of the character on the circumference of the circle (a little trig here)
2. Calculate the theta of the character at this position (a little more trig)
3. Use the theta to create the transformation
4. Call Font.derive() to derive the character with this theta angle
5. Draw the character (drawText)
It's a s.m.o.p. (as we say in the biz)
Here is an example of calculating the transformation (compliments of Richard Puckett)