Hi,
On Sun, Jul 28, 2013 at 11:36 PM, Alexandre Bergel alexandre.bergel@me.comwrote:
It is interesting. Even though, apparently you may want to use the classical nesting for this. The very first thing I've tried to do is to drag and drop a node, but nodes do not stay grouped when drag and dropping.
The whole point of this mechanism is precisely to not use nesting :). It's about laying out one flat graph by composing two existing layouts without the need of creating it explicitly.
The original idea was to offer a tree layout that is combined with a flow layout such that after a width, the next hierarchies are placed at a lower row.
I do not understand how ROMixingLayout operates. Can you write some simple tests that are not about visualizing compile methods?
Indeed, that would be good.
Doru
For example, I've tried this:
view shape rectangle color: Color red; size: 20. view nodes: (0 to: 21). view edgesFrom: [ :v | v \ 3 ].
view shape rectangle color: Color green; size: 20. view nodes: (100 to: 121).
view layout: (ROMixingLayout withInner: (ROGridLayout new) outer: ROTreeLayout new groupBy: [:v | v + 100 ]).
I get an error and I do not understand why.
Alexandre
On Jul 25, 2013, at 8:07 AM, mathieubmddehouck@mailoo.org wrote:
Ok maybe I have something.
Gofer it smalltalkhubUser: 'MathieuDehouck' project: 'RoassalAlgorithm'; package: 'RoassalAlgorithm'; load.
Then try :
"Source code: ROMondrianExample>>treeLayoutOn:" "Preambule. It includes the initialization. " | view rawView | rawView := ROView new. view := ROMondrianViewBuilder view: rawView. "-------------" "-------------"
view shape rectangle size: 45 ; color: Color green. view nodes: Magnitude withAllSubclasses. view edgesFrom: #superclass. view shape rectangle size: 20; color: Color blue. view nodes: ( Magnitude withAllSubclasses flatCollect: [ :e | e
methodDict values ] ) .
"view edgesFrom: [ :e | [e superclass] on: Exception do: [ e
methodClass ] ]."
view layout: (ROMixingLayout withInner: (RORectanglePackingLayout
new padding: 5) outer: RORadialTreeLayout groupBy: [ :e | e methodClass ] ).
"view edges do: [ :e | e - ROLine ]."
"-------------" "-------------" "Below is the initiation of the menu and opening the visualization" ROEaselMorphic new populateMenuOn: view. view open
Must bring you something like that the picture.
Regards
Mathieu
<mixing RadialTree with
RectanglePacking.jpg>_______________________________________________
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev