A topology-shape-metrics approach for the automatic layout of UML class diagrams

  • Authors:
  • Markus Eiglsperger;Michael Kaufmann;Martin Siebenhaller

  • Affiliations:
  • Universität Tübingen;Universität Tübingen;Universität Tübingen

  • Venue:
  • Proceedings of the 2003 ACM symposium on Software visualization
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

Class diagrams are among the most popular visualizations for object oriented software systems and have a broad range of applications. In many settings it is desirable that the placement of the diagram elements is determined automatically, especially when the diagrams are generated automatically which is usually the case in reverse engineering. For this reason the automatic layout of class diagram gained importance in the last years. Current approaches for the automatic layout of class diagrams are based on the hierarchic graph drawing paradigm. These algorithms produce good results for class diagrams with large and deep structural information, i.e., diagrams with a large and deep inheritance hierarchy. However, they do not perform satisfactorily in absence of this information. We propose in this work a new algorithm for automatic layout of class diagram which is based on the topology-shape-metrics approach. The algorithm is an adaption of sophisticated graph drawing algorithms which have proven their effectiveness in many applications. The algorithm works as well for class diagrams with rich structural information as for class diagrams with few or no structural information. It improves therefore the existing algorithms significantly. An implementation of the algorithm is used in the reverse engineering tool JarInspector.