dm width: 1000; height: 500
stef
2012/3/14 Guillaume Larcheveque guillaume.larcheveque@gmail.com
authorMap "self authorMap"
| dm | dm := DistributionMap new. "dm colors: {(Color r: 0.6 g: 0.0 b: 0.0). (Color r: 0.0 g: 0.0 b: 0.6). (Color r: 1.0 g: 0.6 b: 0.0). (Color r: 0.0 g: 1.0 b: 1.0). (Color r: 0.0 g: 1.0 b: 0.0). (Color r: 1.0 g: 0.753 b: 0.796). (Color r: 0.6 g: 0.4 b: 0.0). (Color r: 0.4 g: 0.0 b: 0.6). (Color r: 1.0 g: 1.0 b: 0.0). (Color r: 0.8 g: 0.8 b: 0.8)}." dm onContainers: model allModelPackages elements: #classes properties: [ :cl | cl authors sortedCounts ifNotEmpty: [ cl
authors sortedCounts first value name ] ]. dm title: 'Authors Map of ' , model name. dm render. dm open
Typically it would be cool to have the possibility to pass it here
2012/3/14 Guillaume Larcheveque guillaume.larcheveque@gmail.com
Thanks a lot :)
We are working on making distribution cooler (reducing titles for example). We will publish the code once it is ready.
2012/3/14 Tudor Girba tudor@tudorgirba.com
You can set the width and height of the resulting window. For example: MOViewRenderer new open width: 100; height: 100
Cheers, Doru
On Wed, Mar 14, 2012 at 11:13 AM, Guillaume Larcheveque guillaume.larcheveque@gmail.com wrote:
We wanted to open a DistributionMap with a given windows size. Any
idea how
to do it? We looked with stef in the MOViewRenderer class but nothing jumps to
our
eyes.
Thanks.
-- Guillaume Larcheveque
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
-- *Guillaume Larcheveque*
-- *Guillaume Larcheveque*