Hi Johan,
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.
Pretty nice :).
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.
You hit another issue that is on the to do list, unfortunately. I saw that actually I forgot to open an issue, so I created a new one: http://code.google.com/p/moose-technology/issues/detail?id=259
But, just to make communication easier, here is a short sentence that summarizes the main terms in Glamour: A Browser is composed of Panes that are displayed via one or more Presentations.
So, in your case, you actually refer to the presentations or to the panes, and not to the browser.
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?
As I understand, you will want to embed this browser in another browser (let's call this the outerBrowser). As a browser encapsulates the internal state, you have to explicitly specify what gets out and under what name. To do that, you will have to do something line:
browser sendToOutside: #selectedCHeight from: #cheight.
Afterwards, in the outerBrowser you might have something like:
outerBrowser column: #main; column: #properties. outerBrowser showOn: #properties; using: [ outerBrowser custom: browser ]. outerBrowser showOn: #main; fromOutside: #entity; from: #properties-
#selectedCHeight ...
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 :-/
The fix size panes are not properly supported by the MorphicRenderer : (, so this will have to wait again. http://code.google.com/p/moose-technology/issues/detail?id=184
Cheers, Doru
| 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
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Beauty is where we see it."