Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Background on rotated text
Background on rotated text [message #1031327] Mon, 01 April 2013 15:12 Go to next message
Dragan Milcevski is currently offline Dragan MilcevskiFriend
Messages: 3
Registered: April 2013
Junior Member

I have a shape which text is on the far left side rotated for an angle of -90 degrees. (See image)

I want to add background on the text as I have added on the outer shape. But whatever I do it seems that text.setAngle(-90) is preventing the graphical algorithm (text) to render the background color.

Here is the code I am trying to get it work:
final Text text = gaService.createPlainText(shape,addedCompositeState.getDisplayName());

I also have layout feature for the container shape, I tried to find the problem there, but without success.
I tried to create a rectangle behind the text, but then my direct editing feature does not work. I cannot get the focus on mouse click.
Then I tried to create the text as a child on a rectangle, but the text is not shown.

Could you please tell me, is there a possibility to add background on rotated text somehow? I've tried anything I know.

Thank you in advance.
Best Regards,
Re: Background on rotated text [message #1034407 is a reply to message #1031327] Fri, 05 April 2013 11:53 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1735
Registered: July 2009
Location: Walldorf, Germany
Senior Member

there seems to be an issue with that, please file this a a Bugzilla.

Re: Background on rotated text [message #1395554 is a reply to message #1031327] Mon, 07 July 2014 04:03 Go to previous message
Rizwan Mohammed is currently offline Rizwan MohammedFriend
Messages: 2
Registered: July 2014
Junior Member
I'm not able to download the image.

Perhaps, even I have a similar requirement wherein I have to rotate the text by 90 degrees.

Previous Topic:Double line Polyline for Connections
Next Topic:How to execite graphiti application from commandline
Goto Forum:

Current Time: Mon Oct 05 10:18:34 GMT 2015

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

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