Login | Register
My pages Projects Community openCollabNet

argouml-graphviz
Project home

If you were registered and logged in, you could join this project.

Summary Plugin to let ArgoUML generate graphviz files
Category design
License BSD License
Owner(s) linus

Mission

Enabling export to SVG, PDF, etc. for each diagram via Graphviz (Graph Visualization Software) which will reposition all the elements per diagram.

This project concerns XSL transformation per diagram from one XMI to several DOT files to enable the following use cases

  • Exporting an existing but large diagram to see how graphviz would present the same information but repositioned.
  • Exporting an imported diagram which lacks proper ArgoUML positioning to see how graphviz would create a diagram with positioning.

the first use case results in diagrams in an export format that advise the user how to optimise positioning and gain new insights into your currently complex design. The second will provide you with a head start when you have to do positioning from scratch.

Related resources

  • An XMI and XSL file can be processed on the command line with the XSLT command line processor called xsltproc. It can be installed with apt-get install xsltproc and used in this way xsltproc -o example-class-diagram.dot ClassDiagram2DOT.xsl example.xmi.
  • Alternatively, this can be done in Java with java net.sf.saxon.Transform -o example-class-diagram.dot example.xmi ClassDiagram2DOT.xsl
  • Subsequently a diagram can be created by running dot -Tpdf example-class-diagram.dot -oexample-class-diagram.pdf or dot -Tsvg example-class-diagram.dot -oexample-class-diagram.svg
  • The technical implementation has been inspired by http://www.aliabdelaziz.org/Reverse_Engineering_DataBase_Part_2