Ok thanx. It works.

On Tue, Oct 4, 2011 at 11:43 AM, Tudor Girba <tudor@tudorgirba.com> wrote:
Of course it is possible. Only if:color: is not implemented in LineShape.

So, at the moment, you can simply use:
   color: [:each | ... ifTrue: [Color blue] ifFalse: [Color lightGray ] ]

Doru


On Tue, Oct 4, 2011 at 11:34 AM, Usman Bhatti <usman.bhatti@gmail.com> wrote:
Hello,

We are working on the visualization of plugins in Mondrian and we are trying to create some custom visu. Question: Is there anyway we can color a few edges in Mondrian according to some condition? That is, we are trying to describe a condition for coloring edges according to the plugin they target as illustrated by the bold line in the script below:

view shape rectangle
       width:  [:p | p outgoingFAMIXEclipsePluginImport size] ;
       height:  [:p | p incomingFAMIXEclipsePluginImport size] ;
       
       if: [ p | p name includesSubString: 'uml'] fillColor: Color blue.
view nodes: (eclipsePluginGroup select: [:p | p name includesSubString: 'papyrus']).

view shape arrowedLine
       if: [ :i | i target name = 'org.eclipse.papyrus.core'] fillColor: Color red.
view edges: (MooseModel root allModels first allWithType: FAMIXEclipsePluginImport) from: #source to: #target.

view dominanceTreeLayout .
 
thanx in advance,
Usman & Nicolas

_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--
--
www.tudorgirba.com

"Every thing has its own flow"


_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev