Hi Hani,
At this moment, if you want to have different shape objects you would
need to specify them manually for each node. To do that you need to
traverse the collection manually and use node: instead of nodes: :
aGroup do: [:each |
view newShape ...
view node: each
]
This will result in having a different shape object for each node.
However, I do agree that it would be nice to have a predicate that
would allow you to specify a new shape for each node, it is just that
I did not find yet a suitable solution. Ideas are welcome.
Cheers,
Doru
On Jul 2, 2007, at 4:22 PM, Hani Abdeen wrote:
Hi,
Using Mondrian easel I would giving the nodes of a given context
the possibility to have different shapes (e.g., Rectangle,
oval, ... "if we have other shapes??").
In other words, I need something like this:
context.....
......
view shape:[:node|
node condition1
ifTrue:[shape1]
ifFalse:[node condition2
ifTrue:[shape2]
ifFalse: [shape3]]].
........
view nodes: aGroup.
I have done that but I did not get what I search. How I can do that?
bests,
Hani
Hani ABDEEN
Student Phd thesis (Remodularization of Architectural Elements in
OO Softwares)
Laboratory LISTIC - Them LSE
Annecy - University de Savoie
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.iam.unibe.ch/~girba
www.iam.unibe.ch/~girba/blog/
"Every thing should have the right to be different."