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
Hi,

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());
text.setStyle(StyleUtil.getStyleForCompositeStateText(getDiagram()));
text.setHorizontalAlignment(Orientation.ALIGNMENT_RIGHT);
text.setVerticalAlignment(Orientation.ALIGNMENT_TOP);
text.setFilled(true);
text.setBackground(manageColor(IColorConstant.LIGHT_GREEN));
text.setAngle(-90);


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,
Dragan
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: 1635
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Dragan,

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

Thanks,
Michael
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
Hi.
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: Thu Nov 27 03:25:08 GMT 2014

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

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