On Sat, May 15, 2010 at 2:53 AM, Tudor Girba tudor.girba@gmail.com wrote:
Hi Mariano,
I believe you did not receive the previous mails because you are not subscribed to the mailing list and the default behavior is to only reply to the moose-dev mailing list.
If you want to subscribe, you can do it through: https://www.iam.unibe.ch/mailman/listinfo/moose-dev
I am already subscribed. I even could send this email. I wouldn't be able (probably) sent the email if I was not.
The idea is that if you return multiple values in your properties block, you will get multiple colors.
Thanks Doru/Jannik I will give a try and let you know.
Cheers, Doru
On 14 May 2010, at 20:57, Laval Jannik wrote:
Hi Mariano,
If you want, I use this script in a visualization, it should help you.
^ ((DistributionMap onContainers: anOrionModel allModelPackages elements: #classes properties: [:element | element stateIn: anOrionModel] ) propertyColorMap: (Dictionary new at: #notChanged put: Color gray; at:#isModified put: Color green; at: #isCreated put: Color blue; at: #isRemoved put: Color red; yourself); yourself) render open.
Cheers, Jannik
On May 14, 2010, at 20:53 , Mariano Martinez Peck wrote:
nobody ? :(
On Wed, May 12, 2010 at 3:58 PM, Mariano Martinez Peck < marianopeck@gmail.com> wrote: Hi folks. I am trying to script some distribution maps. For the moment I was doing simple things with just two colors. Example:
^ (DistributionMap onContainers: (self listOfCorePackages collect: [ :each | (PackageInfo named: each) ]) elements: #classes properties: [:element | element hasUsedInstances = true] ) render open.
That show me classes with used instances with blue and the rest with red. Now I want:
element hasUsedInstances = true -> blue element instanceCount > 0 and: [hasUsedInstances = false] -> red the rest (without instances) -> yellow
Forget about the colors, I don't care which color (although it would be cool to be able to choose). What I don't know how to do is to define multiple properties. And I cannot use the wizard, I have to do it by code ;)
Can someone help ?
Thank you very much in advance.
Mariano
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Jannik Laval
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Some battles are better lost than fought."