Hi Alex,
I followed your suggestion, and I got the debugger (see screenshot attached)
The error appears when using the dominanceTreeLayout... But the visualization hasn't
changed, so I have not clue what is the problem.
Any ideas?
Regards,
Veronica
On 20 Sep 2012, at 17:24, Alexandre Bergel wrote:
Hi Veronica,
Debugging visualization is a bit tricky, mainly because of a heretic behavior of Morphic.
Your image did not freeze so you should be happy :-)
The best way to debug a visualization, is to render the visualization in a bitmap,
instead of having it on screen. For example, if your visualization is:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| view |
view := MOViewRenderer new.
view shape rectangle width: [ :e | 100 / e ].
view nodes: (0 to: 20).
view open
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
then replace the last #open with:
view root applyLayout.
view getRenderedForm
So, the debuggable script should be:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| view |
view := MOViewRenderer new.
view shape rectangle width: [ :e | 100 / e ].
view nodes: (0 to: 20).
view root applyLayout.
view getRenderedForm
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
If your visualization is buggy, then you will get a debugger. If nothing appears, it
means there is no bug.
The same trick has to be used for Roassal generated visualization.
Let me know how it goes.
Cheers,
Alexandre
On Sep 20, 2012, at 9:10 AM, Veronica Isabel Uquillas Gomez <vuquilla(a)vub.ac.be>
wrote:
Hi Alex,
I have already planned to migrate my tools to use Roassal...
But for now I have to use what we have with Mondrian because we are preparing an
evaluation on our tool in Pharo1.4.
I suddenly have a problem that I do not know to detect
I draw a map with dominanceTreeLayout or forcedBaseLayout.
When the layout is dominanceTreeLayout I am getting the red rectangle with the cross.
Sometimes i get it immediately or sometimes I see part of the visualization and when i
move the scrollbars the red rectangle appears.
How can I debug that?, I haven't changed my code and I have no idea what is failing
now
if I open the same visualization with forcedBaseLayout it works fine.
Regards,
Veronica
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev