Hi,
You should use "view newShape" before the "view nodes:" or "view edges:". nodes:forEach: is used for specifying the graphs inside the node.
Try something like this:
view newShape label text: #name. view nodes: mooseModel allClasses. view edgesFrom: #superclass. view treeLayout.
Cheers, Doru
On Mar 18, 2008, at 8:38 PM, Alexandre Bergel wrote:
Dear list,
Mondrian is a great tool :-) I have a question, how can I add a label under a box. I tried the following script:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= view nodes: mooseModel allClasses forEach: [:each | view newShape label text: #name. view verticalLineLayout. ]. view edgesFrom: #superclass. view treeLayout. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
But I still have unlabeled boxes...
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"Some battles are better lost than fought."