roberto.minelli@usi.ch 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 Moose-dev@iam.unibe.ch 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.