Hi Stef,
Try this. First obtain allFoldersOfInterest and allFilesOfInterest and
then:
view shape rectangle height: #numberOfFunctions.
view nodes: allFoldersOfInterest.
view shape rectangle height: #numberOfFunctions.
view nodes: allFilesOfInterest.
view edgesFrom: #belongsTo.
view treeLayout
Cheers,
Doru
On 26 Nov 2009, at 23:42, Stéphane Ducasse wrote:
I want it to look like that
where a box represent a folder or a file and folder get as shape the
number of functions they contain
<argouml-namespace-complexity.pdf>
On Nov 26, 2009, at 11:24 PM, Tudor Girba wrote:
> Hi Stef,
>
> I am not sure I understand what the exact problem is.
>
> From reading this code, it looks like you will have a rectangle for
> each folder in the folderGroup and inside each of these, you will
> display the sub tree of folders and files.
>
> What exactly else would you like the visualization to be?
>
> Cheers,
> Doru
>
>
> On 26 Nov 2009, at 23:17, stephane ducasse wrote:
>
>> hi all
>>
>> I would like to display files and folders. I did something like
>> that but it only display folder and I do not like the first
>> nesting (the first folder got the other nested in).
>> I also found FolderGroup rather boring because it is not
>> polymorphic to folder.
>> May be we should really start to consider trait for Famix40.
>>
>> view shape rectangle
>> width: #numberOfFiles;
>> height: #numberOfFunctions.
>> view nodes: folderGroup
>> forEach: [:each |
>> view node: each.
>> view shape rectangle
>> width: #numberOfFiles;
>> height: #numberOfFunctions.
>> view nodes: each allRecursiveFolders.
>> view nodes: each allRecursiveFiles.
>> view edgesFrom: #belongsTo.
>> view treeLayout.
>> view interaction
>> popupText: [:aFile | aFile entities first numberOfVariables
>> printString, ' variables x ',
>> aFile entities first numberOfFunctions
>> printString, ' functions ' ].
>> ]
>>
>> any suggestion how to code that in a better way?
>> Mondrian looks too magic for me.
>>
>> Stef
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> Moose-dev(a)iam.unibe.ch
>>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
>
www.tudorgirba.com
>
> "It's not what we do that matters most, it's how we do it."
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev(a)iam.unibe.ch
>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"It's not how it is, it is how we see it."