Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Rotated labels
Rotated labels [message #1221677] Wed, 18 December 2013 03:03 Go to next message
Jan Koehnlein is currently offline Jan Koehnlein
Messages: 655
Registered: July 2009
Senior Member
Does Graphiti support the rotation of connection labels? It would save a lot of space and thereby improve the overall layout a lot if I could align them with the direction connection. The documentation says only Polylines can be rotated, but a Text also has an 'angle' attribute. I tried a bit but only get a couple of points instead of the entire text. If it's possible, is there an example somewhere?
Re: Rotated labels [message #1221880 is a reply to message #1221677] Wed, 18 December 2013 10:53 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1574
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Text can also be rotated, there's some special logic implemented for them. I
guess the problem here might be clipping: I haven't checked yet but maybe
the decorator clipping does not take a rotated text into account.

Michael
Re: Rotated labels [message #1221982 is a reply to message #1221880] Thu, 19 December 2013 02:35 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan Koehnlein
Messages: 655
Registered: July 2009
Senior Member
Why are decorators clipped at all? Shouldn't they be on a separate non-clipping layer?
Re: Rotated labels [message #1222043 is a reply to message #1221982] Thu, 19 December 2013 09:33 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1574
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hm, I think this is because the text figure is reused from standard text
figures. Altogether, this sounds like a bug, and I thought we had something
on this. But all I found was a request that goes a step further: automate
the rotation depending on the angle of the connection at the location of the
decorator:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=352107

Michael
Previous Topic:Active Shapes problem
Next Topic:Redo problem after delete operation
Goto Forum:
  


Current Time: Tue Jul 29 13:00:21 EDT 2014

Powered by FUDForum. Page generated in 0.03314 seconds