Re: [Pharo-dev] Dynamically adding nodes to Roassal

2013-09-29 Thread Tudor Girba
You would get answers to these questions faster on the moose mailing list. Doru On Mon, Sep 30, 2013 at 8:13 AM, roberto.mine...@usi.ch < roberto.mine...@usi.ch> wrote: > Anyone can help here? > > On Sep 20, 2013, at 5:32 PM, roberto.mine...@usi.ch wrote: > > > Hi, > > > > It's me again.. > > >

Re: [Pharo-dev] Dynamically adding nodes to Roassal

2013-09-29 Thread roberto.mine...@usi.ch
Anyone can help here? On Sep 20, 2013, at 5:32 PM, roberto.mine...@usi.ch wrote: > Hi, > > It's me again.. > > I managed to have something *almost* working, but the behavior of the > ROTreeMapLayout is not clear to me. > > Using the ROMondrianViewBuilder I can specify the size of the Tree ma

Re: [Pharo-dev] Dynamically adding nodes to Roassal

2013-09-20 Thread roberto.mine...@usi.ch
Hi, It's me again.. I managed to have something *almost* working, but the behavior of the ROTreeMapLayout is not clear to me. Using the ROMondrianViewBuilder I can specify the size of the Tree map, but then I am not able to dynamically add nodes. Well, at least I did not manage to do that. S

Re: [Pharo-dev] Dynamically adding nodes to Roassal

2013-09-20 Thread roberto.mine...@usi.ch
Thanks for the reference! On Sep 20, 2013, at 3:02 PM, b...@openinworld.com wrote: > Have a look at [1], section 5.6.2 LEKCimDynamicTreeLayout > Note however that my project was based entirely on using raw ROView, rather > than ROMondrianViewBuilder. > > [1] > http://files.openinworld.com/LEKt

Re: [Pharo-dev] Dynamically adding nodes to Roassal

2013-09-20 Thread roberto.mine...@usi.ch
I started yesterday to read the chapter. I bought the book at ESUG. :D On Sep 20, 2013, at 3:13 PM, Alejandro Infante wrote: > Also I forgot to tell you that the new book "Deep into Pharo" has a chapter > for Roassal and another for Mondrian. > > Maybe that's the best place to start from, th

Re: [Pharo-dev] Dynamically adding nodes to Roassal

2013-09-20 Thread Alejandro Infante
Also I forgot to tell you that the new book "Deep into Pharo" has a chapter for Roassal and another for Mondrian. Maybe that's the best place to start from, the link of the book is http://rmod.lille.inria.fr/pbe2/. 2013/9/20 roberto.mine...@usi.ch > Thanks Alejandro, > > Yes I went through the

Re: [Pharo-dev] Dynamically adding nodes to Roassal

2013-09-20 Thread roberto.mine...@usi.ch
Thanks Alejandro, Yes I went through the examples and I understood the difference between the examples using the builder (which are easier) and with pure Roassal, which are..let's say.. less user friendly.. I am trying, in pure Roassal, to do a tree map and add another node to the ROView then

Re: [Pharo-dev] Dynamically adding nodes to Roassal

2013-09-20 Thread btc
roberto.mine...@usi.ch wrote: *and have the visualization re-layouted? On Sep 20, 2013, at 11:24 AM, "roberto.mine...@usi.ch" wrote: Hi, I was playing around with Roassal (in particular, a tree map) and I have a question: Is there a way to dynamically adding nodes? I mean, onc

Re: [Pharo-dev] Dynamically adding nodes to Roassal

2013-09-20 Thread Alejandro Infante
Well, If you started with the Easel then you must have seen the examples. Well at first you see two boxes with examples inside (one on the top and the other below (If you dont see the second one just drag the view). The first one has a label at the top-left corner that says ROMondrianExample, and

Re: [Pharo-dev] Dynamically adding nodes to Roassal

2013-09-20 Thread roberto.mine...@usi.ch
Thanks Alejandro, I will try what you propose! What do you mean by > Another thing bothering me is that you mentioned the method #nodes, thats > from the ROMondrianViewBuilder, which I think is not that friendly with > dynamic stuff. How would you construct a view without using the ROMondrianVi

Re: [Pharo-dev] Dynamically adding nodes to Roassal

2013-09-20 Thread Alejandro Infante
In Roassal calling the method #signalUpdate to the view should show those new nodes. If you want to re-layout the nodes you should apply a new layout to the nodes before the #signalUpdate. Another pretty interesting feature is the method ROContainer>>callback: aCallback. The idea is that every tim

Re: [Pharo-dev] Dynamically adding nodes to Roassal

2013-09-20 Thread roberto.mine...@usi.ch
*and have the visualization re-layouted? On Sep 20, 2013, at 11:24 AM, "roberto.mine...@usi.ch" wrote: > Hi, > > I was playing around with Roassal (in particular, a tree map) and I have a > question: Is there a way to dynamically adding nodes? I mean, once the view > is generated to update t

[Pharo-dev] Dynamically adding nodes to Roassal

2013-09-20 Thread roberto.mine...@usi.ch
Hi, I was playing around with Roassal (in particular, a tree map) and I have a question: Is there a way to dynamically adding nodes? I mean, once the view is generated to update the #nodes by adding a new node (and associations as well, i.e., edges) and have the visualization re- Thanks in adv