Home » Eclipse Projects » Sirius » Diagram styling questions
Diagram styling questions [message #1721171] |
Mon, 25 January 2016 08:03  |
Eclipse User |
|
|
|
Hi Sirius group,
I have two questions with regards to styling a diagram.
1. How can I change the font family used for labels by default?
2. How I can define some kind of padding in a container containing
compartments? Should this be done as a border or are there other
possibilities?
Thanks in advance for your help,
Axel
|
|
| |
Re: Diagram styling questions [message #1721320 is a reply to message #1721310] |
Tue, 26 January 2016 10:18   |
Eclipse User |
|
|
|
Hi Laurent,
thanks for your reply.
Attached you find two sketches showing a container containing two
compartments.
1st the container background colour should surround the compartments on
the left and the right side.
2nd the compartments should have some space between them (horizontal
white line in desired.png).
3rd the compartments should contain some space (left, right, top,
bottom) around their content.
Is this understandable?
Best regards,
Axel
Am 26.01.2016 um 15:00 schrieb Laurent Redor:
> Hi,
>
> Le 25/01/2016 14:03, Axel Guckelsberger a écrit :
>> Hi Sirius group,
>>
>> I have two questions with regards to styling a diagram.
>>
>> 1. How can I change the font family used for labels by default?
>>
>
> The default font used can be changed in preferences : "Sirius/Sirius
> Diagram/Appearance/Default font".
>
>> 2. How I can define some kind of padding in a container containing
>> compartments? Should this be done as a border or are there other
>> possibilities?
>
> Can you give us a sketch of what you expect?
>>
>> Thanks in advance for your help,
>> Axel
>
> Regards,
>
Attachment: current.png
(Size: 3.63KB, Downloaded 213 times)
Attachment: desired.png
(Size: 3.85KB, Downloaded 183 times)
|
|
|
Re: Diagram styling questions [message #1721331 is a reply to message #1721320] |
Tue, 26 January 2016 11:04   |
Eclipse User |
|
|
|
Le 26/01/2016 16:18, Axel Guckelsberger a écrit :
> Hi Laurent,
>
> thanks for your reply.
>
> Attached you find two sketches showing a container containing two
> compartments.
>
> 1st the container background colour should surround the compartments on
> the left and the right side.
>
> 2nd the compartments should have some space between them (horizontal
> white line in desired.png).
>
> 3rd the compartments should contain some space (left, right, top,
> bottom) around their content.
>
> Is this understandable?
>
Yes, it is understandable. There is not really a notion of padding. But
I think you can use the border size of compartment/container to have
something like expected.
> Best regards,
> Axel
>
>
> Am 26.01.2016 um 15:00 schrieb Laurent Redor:
>> Hi,
>>
>> Le 25/01/2016 14:03, Axel Guckelsberger a écrit :
>>> Hi Sirius group,
>>>
>>> I have two questions with regards to styling a diagram.
>>>
>>> 1. How can I change the font family used for labels by default?
>>>
>>
>> The default font used can be changed in preferences : "Sirius/Sirius
>> Diagram/Appearance/Default font".
>>
>>> 2. How I can define some kind of padding in a container containing
>>> compartments? Should this be done as a border or are there other
>>> possibilities?
>>
>> Can you give us a sketch of what you expect?
>>>
>>> Thanks in advance for your help,
>>> Axel
>>
>> Regards,
>>
>
--
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Diagram styling questions [message #1721354 is a reply to message #1721331] |
Tue, 26 January 2016 13:56   |
Eclipse User |
|
|
|
I could manage it using some container hierarchy: with having only a
vertical stack the border seems to be ignored. I tried around with
different combinations of vertical and horizontal stacks, but no way to
get the inner margins.
Thus I added a free form container containing the vertical stack. So it
is working using the following hierarchy:
1. Free form container with a gradient having a border with the outer
colour (for the horizontal line between the inner sections).
2. Vertical stack container with a gradient having a border with the
inner colour (for adjusting inner content elements).
3. List container without a border (size 0) containing the sub nodes.
There are only two annoying things with that approach: 1st the free form
container leads to the inner alignment being a bit random; 2nd the inner
container gets a shadow which looks not that nice; but I can live with
these drawbacks, since the result looks much better than having all
inner labels attached to the left border.
I played a bit with labels for these three containers. My current
setting is that only the outer (free form) container has a visible label
which starts with a few space chars. This way the label stays at the top
also if the inner container is positioned elsewhere or moved.
Going to submit my solution to the Sirius gallery (bug 448492) after the
final release of course.
Maybe this helps somebody who needs to configure a similar layout.
If anybody knows a better solution please reply :-)
Axel
Am 26.01.2016 um 17:04 schrieb Laurent Redor:
> Le 26/01/2016 16:18, Axel Guckelsberger a écrit :
>> Hi Laurent,
>>
>> thanks for your reply.
>>
>> Attached you find two sketches showing a container containing two
>> compartments.
>>
>> 1st the container background colour should surround the compartments on
>> the left and the right side.
>>
>> 2nd the compartments should have some space between them (horizontal
>> white line in desired.png).
>>
>> 3rd the compartments should contain some space (left, right, top,
>> bottom) around their content.
>>
>> Is this understandable?
>>
>
> Yes, it is understandable. There is not really a notion of padding. But
> I think you can use the border size of compartment/container to have
> something like expected.
>
>> Best regards,
>> Axel
>>
>>
>> Am 26.01.2016 um 15:00 schrieb Laurent Redor:
>>> Hi,
>>>
>>> Le 25/01/2016 14:03, Axel Guckelsberger a écrit :
>>>> Hi Sirius group,
>>>>
>>>> I have two questions with regards to styling a diagram.
>>>>
>>>> 1. How can I change the font family used for labels by default?
>>>>
>>>
>>> The default font used can be changed in preferences : "Sirius/Sirius
>>> Diagram/Appearance/Default font".
>>>
>>>> 2. How I can define some kind of padding in a container containing
>>>> compartments? Should this be done as a border or are there other
>>>> possibilities?
>>>
>>> Can you give us a sketch of what you expect?
>>>>
>>>> Thanks in advance for your help,
>>>> Axel
>>>
>>> Regards,
>>>
>>
>
>
|
|
|
Re: Diagram styling questions [message #1721902 is a reply to message #1721354] |
Mon, 01 February 2016 10:00  |
Eclipse User |
|
|
|
Hi Axel,
I made a few attempts with the border size and compartiments.
I thought you should use the border size of a "root" VStack container
mappingto draw the external border and then the border size of the
contained mapping to draw the border between the compartments, but I
think we have some issue with label borders (between label and content
panes)
Attached to this message you will see my results for a VStack container
mapping with two sub container mapping (list with their default label
border style).
It appears that this label border should take the size defined in the
VSM (see border between labels EClass2 and EA1).
Could you create the corresponding bug on the bugzilla if this
corresponds to something which corrected might help you to obtain the
wanted layout ?
Another tip, on List container, you might want to remove the label
border, you just have to set the label border style so "No Label Border
For List". ("Label Border for container" on FreeForm container to have
thge corresponding label border, by default container have no label
border and children can be place in the whole content area.)
Regards,
Maxime
Le 26/01/2016 19:56, Axel Guckelsberger a écrit :
> I could manage it using some container hierarchy: with having only a
> vertical stack the border seems to be ignored. I tried around with
> different combinations of vertical and horizontal stacks, but no way to
> get the inner margins.
>
> Thus I added a free form container containing the vertical stack. So it
> is working using the following hierarchy:
>
> 1. Free form container with a gradient having a border with the outer
> colour (for the horizontal line between the inner sections).
> 2. Vertical stack container with a gradient having a border with the
> inner colour (for adjusting inner content elements).
> 3. List container without a border (size 0) containing the sub nodes.
>
> There are only two annoying things with that approach: 1st the free form
> container leads to the inner alignment being a bit random; 2nd the inner
> container gets a shadow which looks not that nice; but I can live with
> these drawbacks, since the result looks much better than having all
> inner labels attached to the left border.
>
> I played a bit with labels for these three containers. My current
> setting is that only the outer (free form) container has a visible label
> which starts with a few space chars. This way the label stays at the top
> also if the inner container is positioned elsewhere or moved.
>
> Going to submit my solution to the Sirius gallery (bug 448492) after the
> final release of course.
>
> Maybe this helps somebody who needs to configure a similar layout.
>
> If anybody knows a better solution please reply :-)
>
> Axel
>
>
> Am 26.01.2016 um 17:04 schrieb Laurent Redor:
>> Le 26/01/2016 16:18, Axel Guckelsberger a écrit :
>>> Hi Laurent,
>>>
>>> thanks for your reply.
>>>
>>> Attached you find two sketches showing a container containing two
>>> compartments.
>>>
>>> 1st the container background colour should surround the compartments on
>>> the left and the right side.
>>>
>>> 2nd the compartments should have some space between them (horizontal
>>> white line in desired.png).
>>>
>>> 3rd the compartments should contain some space (left, right, top,
>>> bottom) around their content.
>>>
>>> Is this understandable?
>>>
>>
>> Yes, it is understandable. There is not really a notion of padding. But
>> I think you can use the border size of compartment/container to have
>> something like expected.
>>
>>> Best regards,
>>> Axel
>>>
>>>
>>> Am 26.01.2016 um 15:00 schrieb Laurent Redor:
>>>> Hi,
>>>>
>>>> Le 25/01/2016 14:03, Axel Guckelsberger a écrit :
>>>>> Hi Sirius group,
>>>>>
>>>>> I have two questions with regards to styling a diagram.
>>>>>
>>>>> 1. How can I change the font family used for labels by default?
>>>>>
>>>>
>>>> The default font used can be changed in preferences : "Sirius/Sirius
>>>> Diagram/Appearance/Default font".
>>>>
>>>>> 2. How I can define some kind of padding in a container containing
>>>>> compartments? Should this be done as a border or are there other
>>>>> possibilities?
>>>>
>>>> Can you give us a sketch of what you expect?
>>>>>
>>>>> Thanks in advance for your help,
>>>>> Axel
>>>>
>>>> Regards,
>>>>
>>>
>>
>>
>
--
Maxime - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Attachment: border2.png
(Size: 61.34KB, Downloaded 196 times)
Attachment: border.png
(Size: 94.13KB, Downloaded 415 times)
|
|
|
Goto Forum:
Current Time: Wed Jul 09 09:04:12 EDT 2025
Powered by FUDForum. Page generated in 0.07941 seconds
|