Logo

15.3.8 Scripting in Mondrian Easel

Mondrian provides the Mondrian Easel, a dedicated interface for scripting visualizations. The interface can be open on an input entity, and this entity can be directly accessed in the script via a variable name.

For example, the picture below shows a Mondrian Easel opened on all model classes from the ArgoUml case study. The variable is displayed on the right hand side as classGroup. The script is entered on the bottom left and uses this variable:

view shape rectangle
width: #numberOfAttributes;
height: #numberOfMethods;
linearFillColor: #numberOfLinesOfCode within: classGroup.
view nodes: classGroup.
view edgesFrom: #superclass.
view treeLayout.

Pressing the generate button leads to the generation of the picture to the top. As can be seen the code corresponds to a simple version of the System Complexity.

Mondrian Easel

Add a Note