Presentation of customized stereotype shapes in diagrams [message #1589615] |
Wed, 28 January 2015 14:57 |
|
I have managed to display shapes (svg-files) defined on classifier stereotypes as element compartments or as shape decorations in UML diagrams in Papyrus v1.0.1 (Luna release).
However, I can´t find a way to only display the shapes in a diagram without any surrounding element "box", preferrable above or encapsulating the element name similar to how actor and use case shapes are presented.
Is it possible to display only the shapes, in v1.0.1 without a need for deeper (programmatic) customizations, or are there any plans for supporting it in future releases? If not, are there some guidelines available on how to do that kind of classifier presentation customization.
A related question: is it possible to hide the textual keywords displayed within guillmets for standard elements, for example <<component>> for component elements?
Thomas Wiman
MetaModelAgent Product Manager
|
|
|
Re: Presentation of customized stereotype shapes in diagrams [message #1589809 is a reply to message #1589615] |
Wed, 28 January 2015 17:17 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hi Thomas,
Have a look at the CSS Properties described in the documentation (Help Contents > Papyrus Guide > Use Guide > CSS Stylesheets > Style Properties > Second table of properties, related to "advanced" customization). Even more such properties are coming in Mars (Papyrus 1.1) but are not included in the documentation yet. Especially, the following properties can be interesting (Luna + Mars):
displayName: true | false; /* Hide the label */
displayBorder: true | false; /* Hide the borders */
transparency: 100; /* Hide the Background */
displayTag: true | false; /* Only for predefined UML Tags such as <<Component>>; not for stereotypes */
We currently don't allow modification of these properties outside a CSS stylesheet (= no dedicated properties view), but we're considering the addition of an "Advanced Appearance" tab in the properties view in Mars (Although hidden by default).
Additional style properties available in Mars are described here:
https://wiki.eclipse.org/Papyrus/Mars_Work_Description/NewFeature/Shape_customisation
Edit: I forgot to mention the rules to hide all Compartments, except the Symbol:
/* Hide all compartments... */
Compartment {
visible: false;
}
/* ...except the symbol compartment (SVG Image) */
Compartment[kind=symbol]{
visible: true;
}
Regards,
Camille
Camille Letavernier
[Updated on: Wed, 28 January 2015 17:20] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02456 seconds