Hi all,
part of AspectMaps is a polymetric view of classes and aspects. For that I want to use Glamour to specify the metrics for the dimension. The code below shows what I have (and will embed in another browser at some point) which leads me to 2 questions and a bug.
First question: how can I let each browser show its title? With 6 of these it's easy to be confused which is which. Second question: at some point in the mondrian script I need to retrieve the selections in each browser. (I dont want to automatically repaint when a selection is changed). How can I do this? I have tried to get both of these things to work myself but I'm not having any success ...
The bug: in the code below add a size: 100 to both column specifications, and you get a nice ZeroDivide error :-/
| browser mprops cprops aprops|
cprops := #(CLOC NumMeth NumAtt NumJP NumAsp). aprops := #(ALOC NumPC NumAdv NumJPP). mprops := #(MLOC MNumJP MNumAsp). browser := GLMTabulator new. browser column: [: c | c row: #cheight; row: #aheight; row: #mheight]; column: [: c | c row: #cwidth; row: #awidth; row: #mwidth]. browser showOn: #cheight; using: [ browser tree title: 'Classes Height'; display: cprops.]. browser showOn: #cwidth; using: [ browser tree title: 'Classes Width'; display: cprops.]. browser showOn: #aheight; using: [ browser tree title: 'Aspects Height'; display: aprops.]. browser showOn: #awidth; using: [ browser tree title: 'Aspects Width'; display: aprops.]. browser showOn: #mheight; using: [ browser tree title: 'Methods Height'; display: mprops.]. browser showOn: #mwidth; using: [ browser tree title: 'Methods Width'; display: mprops.]. browser openOn: 'Select' -- Johan Fabry jfabry@dcc.uchile.cl - http://dcc.uchile.cl/~jfabry PLEIAD Lab - Computer Science Department (DCC) - University of Chile