In this demo, you can see an example of building the System Complexity view for a group of classes using the scripting capabilities of Moose. System Complexity is a visualization that displays hierarchies of classes and for each class it shows a rectangle enriched with three metrics:
This simple visualization is especially useful to provide a first insight into the structure of the system and the distribution of code through the system.
The demo shows how we can build it from scratch by using the Moose engine, called Mondrian, for scripting visualizations.
The code for the visualization is:
view shape rectangle height: #numberOfMethods; width: #numberOfAttributes; linearFillColor: #numberOfLinesOfCode within: classGroup. view nodes: classGroup. view edgesFrom: #superclass. view treeLayout