|Re: Graphical Transformation of an icon stereotype. [message #889970 is a reply to message #889952]
||Wed, 20 June 2012 12:50
| Camille Letavernier
Registered: February 2011
This isn't exactly supported in Papyrus. However, you may still want to have a look at org.eclipse.papyrus.uml.diagram.common.figure.node.NodeNamedElementFigure#setNameLabelIcon(boolean). If you're in your own kind of Diagram, you can easily override this method to select your own Image.
You can also have a look at IPapyrusUMLElementFigure#setStereotypeDisplay(String, Image). However, this method is called by the edit parts when the visuals are refreshed. Thus, your image might be overridden at any time (Especially when the diagram is refreshed). That's probably not a solution
If you're using a standard Papyrus Diagram, and you can't override the Figures/Edit parts, you can still propose a patch to change an EditPart/Figure's Image from the outside
|Re: Graphical Transformation of an icon stereotype. [message #890381 is a reply to message #889970]
||Fri, 22 June 2012 07:34
| LE HALPER Nicolas
Registered: April 2012
I'm using a standard Papyrus Diagram so it will be complicated then. ( I didn't succeed to override the Figure/EditParts ).
In the same domain ( graphical modifications ) and in order to avoid to create a new topic, is it possible to apply transparency between UML Components ? Actually, if I get it right, the transparency applied on Papyrus is actually transparency between UML components and the background of the UML editor not transparency between different UML components. I know that I'm not clear :/. For instance, the background of my icons ( which represent stereotypes ) has to be transparent. However, even if I make them transparent in a picture editor and apply the transparency option in Papyrus, it is not really total transparency.
I take a screenshot in order to illustrate this problem.
I'm afraid that this problem is quite similar with the previous one, that is to the say I have to override the Figure/EditParts .
Thanks for your help again .
(Size: 4.01KB, Downloaded 112 times)
[Updated on: Fri, 22 June 2012 10:39]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.11415 seconds