Different layouts in the same view?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Different layouts in the same view?

roberto.minelli@usi.ch
Hi,

I'm using Roassal and I have the following question: Is there a way to have, in the same view, two different set of nodes with different layouts?

For example 20 nodes layout'ed in a grid and other 20 nodes layout'ed using a tree but in the same view?

Cheers,
Roberto
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Different layouts in the same view?

Ben Coman
[hidden email] wrote:

> Hi,
>
> I'm using Roassal and I have the following question: Is there a way to have, in the same view, two different set of nodes with different layouts?
>
> For example 20 nodes layout'ed in a grid and other 20 nodes layout'ed using a tree but in the same view?
>
> Cheers,
> Roberto
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>  
So that I didn't need to define edges for the tree layout, I use grid
and circle layouts. Try the following in Rossal Easel...

rawView add: (group1 := ROElement sprite).
rawView add: (group2 := ROElement sprite).
1 to: 10 do:
[     :i |
    group1 add: (ROElement spriteOn: i).
    group2 add: (ROElement spriteOn: i).
].
ROGridLayout on: group1 elements.
ROCircleLayout on: group2 elements.
ROHorizontalLineLayout on: rawView elements.
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Different layouts in the same view?

abergel
In reply to this post by roberto.minelli@usi.ch
There is no easy way to do this.

In addition to what said Ben, you can still do this using the Mondrian DSL.
You can try in a Roassal easel.

nodes := view nodes: (1 to: 20).
ROCircleLayout on: (nodes copyFrom: 1 to: 10).
ROGridLayout on: (nodes copyFrom: 11 to: 20).
view noLayout.


On Nov 28, 2012, at 11:17 AM, [hidden email] wrote:

> Hi,
>
> I'm using Roassal and I have the following question: Is there a way to have, in the same view, two different set of nodes with different layouts?
>
> For example 20 nodes layout'ed in a grid and other 20 nodes layout'ed using a tree but in the same view?
>
> Cheers,
> Roberto
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev