On 1 juil. 2010, at 18:40, Johan Fabry wrote:
On 01 Jul 2010, at 12:22, Simon Denier wrote:
Is there a way to ask Mondrian to redraw itself
when the structure of nodes has changed.
I have a view with some options. When an option is activated, it actually adds new nodes
to the view, hence the layout needs to be computed again.
I tried 'view updateWindow' but it does not work.
Yes, AspectMaps does that on each structural zoom action to redraw the contents of a
node. The code I have is as follows:
aView forNode: (...the node...) do: [(...the mondrian script for the inside of the node
...)]
aView root allEdgesDo: #resetCache; applyLayout.
aView updateWindow.
OK, I thought you were doing it the glamour way.
It's really cumbersome to make it work in my case due to the structure of the viz. At
best I got two views, the new one and the old one side by side.
All I need is simply to tell the view to redraw itself from scratch. I guess need a
Mondrian guru.
--
Simon