is there in roassal any event that triggers right
after the layout is applied?
Currently no. It would be easy to add this.
What I'm trying to do is to center on an element
after the layout is applied (so after the element have a position in the visualization).
I can't really figure out why you need this. I would understand if the layout would be
done in a background thread, but this is not the case. Here an example on how to focus
after a layout:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| view nodes dictionaryNode |
view := ROMondrianViewBuilder new.
"enter your script below"
"-------------"
"-------------"
nodes := view nodes: Collection withAllSubclasses.
dictionaryNode := nodes detect: [ :element | element model == Dictionary ].
view open.
ROFocusView on: dictionaryNode.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Note that the use of ROFocusView cannot be done before opening the view. The reason is
that opening the view triggers the layout. Do you want to open the view after doing the
focus ? This is doable, just let me know.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.