SVG customization and comprtments [message #1712669] |
Tue, 27 October 2015 07:59  |
Eclipse User |
|
|
|
Hi,
I'd like to customize a component node/shape using an SVG but still having the ability to display contained elements in the containment compartment of the component.
I don't see how to do this since the shape is in the shape compartment which doesn't contain the containment compartment.
Is there a(n easy) way around this?
Regards
Patrik
|
|
|
|
|
Re: SVG customization and comprtments [message #1712693 is a reply to message #1712688] |
Tue, 27 October 2015 09:50   |
Eclipse User |
|
|
|
Hi Patrick,
The default Papyrus figure (Used for *almosts* all nodes in Papyrus Mars+) supports the following customizations, without relying on SVG images:
- Rectangle with rounded corners (e.g. Class, OpaqueAction)
- Oval (e.g. UseCase)
- 'Package' (e.g. Package, Profile, Model)
The radius of the rounded corners can be customized (from 0 for true rectangles, to "a lot" for rounded elements)
You can find additional information in the Papyrus Help (F1 or here: https://wiki.eclipse.org/MDT/Papyrus/UserGuide/CSS) that contains a table of all supported CSS Properties, or on this page:
https://wiki.eclipse.org/Papyrus/Mars_Work_Description/NewFeature/Shape_customisation
Which also contains examples (But since this was a work-in-progress document, it might not be entirely up-to-date, e.g. some properties might have been renamed in the final version). I would expect it to be accurate for the properties you are looking for, however.
HTH,
Camille
|
|
|
|
|
|
Re: SVG customization and comprtments [message #1713932 is a reply to message #1713930] |
Sun, 08 November 2015 12:35  |
Eclipse User |
|
|
|
Hi
Oops. Sorry wrong thread.
Regards
Ed Willink
On 08/11/2015 17:32, Ed Willink wrote:
> Hi
>
> If you open one *.uml with the UML Model Editor, you can
>
> either Load Resource for the other *.uml and DND within the one tree
> editor,
>
> or open the other *.uml with the UML Model Editor and DND between
> tree editors.
>
> Regards
>
> Ed Willink
>
>
>
> On 27/10/2015 12:49, Camille Letavernier wrote:
>> Hi Patrik,
>>
>> This use case is currently not supported. It is not possible to
>> decorate an existing compartment or entire node (e.g. with a
>> background image)
>>
>> This is something we might consider for future customization work
>>
>> Regards,
>> Camille
>
|
|
|
Powered by
FUDForum. Page generated in 0.04341 seconds