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
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.
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, 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