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 time an element is added inside the
container the callback is called.
Now how you can use this:

element callback: (ROContainerCallbackLayout new layout: (ROGridLayout new
gapSize: 2)).

Remember that you must send signalUpdate to the view if you want to see the
changes.

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.
It is a little bit ugly but you can always get the ROView from
ROMondrianViewBuilder sending the message #view and over that do all kind
of Roassal magic stuff, like adding the callback with the TreeLayout the
the ROView itself. Also for adding new nodes you should add them directly
to the ROView, or at least I haven't found the way to do that without
having to add all the nodes again to the Builder.

Hope that help you.


2013/9/20 [email protected] <[email protected]>

> *and have the visualization re-layouted?
>
> On Sep 20, 2013, at 11:24 AM, "[email protected]" <
> [email protected]>
>  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 the #nodes by adding a new node (and
> associations as well, i.e., edges) and have the visualization re-
> >
> > Thanks in advance.
> >
> > Roby
>
>
>

Reply via email to