Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » rotating a text label
rotating a text label [message #189897] Sun, 31 July 2005 20:11 Go to next message
benedict heal is currently offline benedict healFriend
Messages: 28
Registered: July 2009
Junior Member
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 17: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: Tue Dec 03 04:42:19 GMT 2024

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

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

Back to the top