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.
-- Johan Fabry jfabry@dcc.uchile.cl - http://dcc.uchile.cl/~jfabry PLEIAD Lab - Computer Science Department (DCC) - University of Chile