Saturday, March 20, 2010

Improved Graphviz Visualization

I have improved the visualization with several new features. You can use this new diagram generator right away as described in the end.

Several diagrams with different focus and level of detail are generated. Below are samples of the different types of diagrams. You can click on the images below to see them in full scale.

Module dependencies:


One separate diagram for each module:

Diagram with focus on elements marked as core domain (hint="umlgraph=core"). Note that core domain objects also have another font color (and background color) in all diagrams.

And finally, a diagram with full detail of all objects.

All colors can be configured using generator properties file and it is also possible to set the color for individual elements using a hint in model file (hint="umlgraph.bgcolor=FFCC99"). It is also possible to hide elements using hint="umlgraph=hide".

You can generate the new diagrams in your Sculptor project right away. Version 1.8.1-SNAPSHOT includes this, but even if you need to use an older version (not snaphot) you can drop in the new generator templates in your project. Download from trunk
umlgraphhelper.ext to your src/main/resources/extensions/ and
UMLGraph.xpt to your src/main/resources/templates/

To generate images (png) from the generated Graphviz dot files you can use the new fornax-graphviz-m2-plugin. Add the following to your pom.xml:


You also need to install the excellent Graphviz tool.

No comments:

Post a Comment