Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » SVG customization and comprtments
SVG customization and comprtments [message #1712669] Tue, 27 October 2015 11:59 Go to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 195
Registered: January 2013
Location: Sweden
Senior Member
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 #1712674 is a reply to message #1712669] Tue, 27 October 2015 12:49 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
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


Camille Letavernier
Re: SVG customization and comprtments [message #1712688 is a reply to message #1712674] Tue, 27 October 2015 13:34 Go to previous messageGo to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 195
Registered: January 2013
Location: Sweden
Senior Member
Ok, thanks Camille,

I found "Figure customization and custom shape support in all diagrams" in https://www.eclipse.org/papyrus/project-info/new_and_noteworthy_1.1.0.php

There the figure is customized and maybe that could be an alternative. Is there any more information on this somewhere?

I'd like to show the figure with rounded corners (as well as one compartment for contained elements), would that be possible using this?

Regards
Patrik
Re: SVG customization and comprtments [message #1712693 is a reply to message #1712688] Tue, 27 October 2015 13:50 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
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


Camille Letavernier
Re: SVG customization and comprtments [message #1712716 is a reply to message #1712693] Tue, 27 October 2015 15:42 Go to previous messageGo to next message
Klaas Gadeyne is currently offline Klaas GadeyneFriend
Messages: 165
Registered: July 2009
Senior Member
Hi Patrick,

https://bugs.eclipse.org/bugs/show_bug.cgi?id=472167 lists some of the exceptions to the "almost" qualification of Camille (might save you from some frustration Smile )

@Camille: I've added this to the wiki page. Feel free to correct me!

HTH,

Klaas
Re: SVG customization and comprtments [message #1712757 is a reply to message #1712716] Wed, 28 October 2015 05:40 Go to previous messageGo to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 195
Registered: January 2013
Location: Sweden
Senior Member
Thanks Camille and Klaas, this got me a bit further
Re: SVG customization and comprtments [message #1713930 is a reply to message #1712674] Sun, 08 November 2015 17:32 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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
Re: SVG customization and comprtments [message #1713932 is a reply to message #1713930] Sun, 08 November 2015 17:35 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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
>
Previous Topic:Adaptation of attributes filters in defined MARTE stereotypes
Next Topic:How to generate source file for PrimitiveTypes in C++?
Goto Forum:
  


Current Time: Fri Apr 19 14:51:00 GMT 2024

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

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

Back to the top