Skip to main content



      Home
Home » Eclipse Projects » Sirius » Layout within Container (Diagram Element)
Layout within Container (Diagram Element) [message #1610019] Tue, 10 February 2015 08:54 Go to next message
Eclipse UserFriend
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 03:46 Go to previous messageGo to next message
Eclipse UserFriend
> 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 04:10 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Layout within Container (Diagram Element) [message #1613296 is a reply to message #1612894] Thu, 12 February 2015 10:01 Go to previous message
Eclipse UserFriend
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: Sat May 24 09:53:52 EDT 2025

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

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

Back to the top