Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Layout within Container (Diagram Element)
Layout within Container (Diagram Element) [message #1610019] Tue, 10 February 2015 13:54 Go to next message
Studs Terkel is currently offline Studs TerkelFriend
Messages: 27
Registered: July 2011
Junior Member
Hello,

is there a possiblity to determine the initial layout of a container element?

For example, i have a container A and want the contained elements to be initially layouted vertically and i have a container B and want the contained elements to be initially layouted horizontally.
Re: Layout within Container (Diagram Element) [message #1612857 is a reply to message #1610019] Thu, 12 February 2015 08:46 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 236
Registered: August 2010
Senior Member
> Hello,

Hello,

Unfortunately, this is not possible without providing its own layout
programmatically.
If you are interested by that, a documentation is available here [1] and
there is also similar threads on the forum (like this one here [2])


[1]
http://www.eclipse.org/sirius/doc/developer/extensions-provide_custom-arrange-all.html
[2]
https://www.eclipse.org/forums/index.php/mv/msg/639946/1234795/#msg_1234795


>
> is there a possiblity to determine the initial layout of a container
> element?
>
> For example, i have a container A and want the contained elements to be
> initially layouted vertically and i have a container B and want the
> contained elements to be initially layouted horizontally.



Regards,


--
Florian - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Layout within Container (Diagram Element) [message #1612894 is a reply to message #1612857] Thu, 12 February 2015 09:10 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 470
Registered: May 2011
Senior Member
Hello,

A limited alternative is to add a "Composite Layout" to your Diagram
Description in your VSM (odesign). You will find it at the same level as
the layers. In the "Direction" parameter, choose "Left to Right".
This will change the default display of the edges to be drawn from left
to right (horizontaly then). This also causes to have containers with
elements having no connection to display these elements vertically
(top-down). However, if these elements have connection, the default
layout may not keep them vertically aligned.

Regards,
Steve

Le 12/02/2015 09:46, Florian Barbin a écrit :
>> Hello,
>
> Hello,
>
> Unfortunately, this is not possible without providing its own layout
> programmatically.
> If you are interested by that, a documentation is available here [1] and
> there is also similar threads on the forum (like this one here [2])
>
>
> [1]
> http://www.eclipse.org/sirius/doc/developer/extensions-provide_custom-arrange-all.html
>
> [2]
> https://www.eclipse.org/forums/index.php/mv/msg/639946/1234795/#msg_1234795
>
>
>>
>> is there a possiblity to determine the initial layout of a container
>> element?
>>
>> For example, i have a container A and want the contained elements to be
>> initially layouted vertically and i have a container B and want the
>> contained elements to be initially layouted horizontally.
>
>
>
> Regards,
>
>


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Steve Monnier - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Layout within Container (Diagram Element) [message #1613296 is a reply to message #1612894] Thu, 12 February 2015 15:01 Go to previous message
Studs Terkel is currently offline Studs TerkelFriend
Messages: 27
Registered: July 2011
Junior Member
Quote:

A limited alternative is to add a "Composite Layout" to your Diagram
Description in your VSM (odesign). You will find it at the same level as
the layers. In the "Direction" parameter, choose "Left to Right".
This will change the default display of the edges to be drawn from left
to right (horizontaly then). This also causes to have containers with
elements having no connection to display these elements vertically
(top-down). However, if these elements have connection, the default
layout may not keep them vertically aligned.


I am currently using this solution (connected elements top to button, not connected from left to right).
Lets hope, I never want to layout something from right to left Wink
Previous Topic:Expand and collapse Container
Next Topic:Parent and Child Node
Goto Forum:
  


Current Time: Thu Apr 02 23:41:51 GMT 2020

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

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

Back to the top