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
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@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."
Implement TransformerShape (by the way, any one seen the Movie?) that draws itself different based on some property of its entity.
AA
On 2 Jul 2007, at 16:54 , Tudor Girba wrote:
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.
thanks Doru,
I will try this solution. It is not really bad but I think that I will have a problem with the specification of the layout of the nodes!! I am not sure now, so I will try to see.
May be I will find the time for enhance the BorderShape to allow for drawing dashed lines.
bests, Hani
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@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."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hani ABDEEN Student Phd thesis (Remodularization of Architectural Elements in OO Softwares) Laboratory LISTIC - Them LSE Annecy - University de Savoie
Hi Hani,
You will have no troubles in specifying the layout. The layout works on the current graph regardless of how you added nodes and edges to it.
Cheers, Doru
On Jul 2, 2007, at 6:03 PM, Hani Abdeen wrote:
thanks Doru,
I will try this solution. It is not really bad but I think that I will have a problem with the specification of the layout of the nodes!! I am not sure now, so I will try to see.
May be I will find the time for enhance the BorderShape to allow for drawing dashed lines.
bests, Hani
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@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."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hani ABDEEN Student Phd thesis (Remodularization of Architectural Elements in OO Softwares) Laboratory LISTIC - Them LSE Annecy - University de Savoie
-- www.iam.unibe.ch/~girba www.iam.unibe.ch/~girba/blog/
"No matter how many recipes we'll know, we'll still value a chef."