Skip to main content



      Home
Home » Modeling » Graphiti » Text background color is ignored
Text background color is ignored [message #735798] Wed, 12 October 2011 14:18 Go to next message
Eclipse UserFriend
I'm not sure if this is expected behaviour. But if I set the backgroundColor of a Text PE , it is not shown, even if I set setFilled(true) . It seems to me (but I'm not sure) that the rendered should honour this flag. It's as simple as changing

  label.setOpaque(false);


by

  label.setOpaque(text.getFilled());


in

PictogramElementDelegate.refreshFigureForGraphicsAlgorithm() : 523
(also in the MultiText block).

[Updated on: Wed, 12 October 2011 14:18] by Moderator

Re: Text background color is ignored [message #735802 is a reply to message #735798] Wed, 12 October 2011 14:37 Go to previous messageGo to next message
Eclipse UserFriend
Update: some unfortunate fact: a Text (an AbstractSytle) has a default filled=true (why??), as defined in graphiti.ecore so tha above change could affect some users... Sad

I hence suggest to set explicittly setFilled(false) in
GaServiceImpl.setDefaultTextAttributes()

[Updated on: Wed, 12 October 2011 14:39] by Moderator

Re: Text background color is ignored [message #735950 is a reply to message #735802] Thu, 13 October 2011 03:26 Go to previous messageGo to next message
Eclipse UserFriend
It seems as if the intention was that texts should not have a backgroud set,
but always reflect the background of their container. If you would need that
possibility we need to think of a compatible way to introduce it. Would you
open an enhancement bugzilla for that?

Michael
Re: Text background color is ignored [message #736027 is a reply to message #735950] Thu, 13 October 2011 07:45 Go to previous message
Eclipse UserFriend
Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=360800
Previous Topic:Correct way to call delete programatically
Next Topic:Layouting algorithm for References
Goto Forum:
  


Current Time: Wed Jul 23 00:35:40 EDT 2025

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

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

Back to the top