Skip to main content



      Home
Home » Eclipse Projects » GEF » rotating a text label
rotating a text label [message #189897] Sun, 31 July 2005 16:11 Go to next message
Eclipse UserFriend
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
Re: rotating a text label [message #191612 is a reply to message #189897] Wed, 10 August 2005 13:25 Go to previous message
Eclipse UserFriend
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
Previous Topic:Design issue related to EditParts
Next Topic:Commands in the GEF text editing sample are not redoable
Goto Forum:
  


Current Time: Wed Jul 16 17:19:39 EDT 2025

Powered by FUDForum. Page generated in 0.24239 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top