|
Re: rotating a text label [message #191612 is a reply to message #189897] |
Wed, 10 August 2005 17:25 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
I have done this just for fun in my workspace. I did it using a rotatable
decoration where you set the anchor point and control point. The only
tricky part is trying to figure out the bounds required by the rotated text.
Note that Strings are rendered the same size when rotated, so you may need
to measure them on a rotated GC.
See Graphics.rotate(float)
"benedict heal" <bh@benedictheal.com> wrote in message
news:dcjb9k$uav$1@news.eclipse.org...
>
> I have labels positioned at the midpoint of my connections.
> I would like to rotate the label/text to be parallel to the connection.
> Is this possible with finite effort?
>
> thanks,
> Benedict
|
|
|
Powered by
FUDForum. Page generated in 0.03090 seconds