Exporting Class Diagrams as Images


AgileJ StructureViews' class diagrams can be exported to image files. Right click on empty space on a diagram, and in the context menu which opens select Export .

Next you will be prompted where to save your image file.

As soon as the image file generation has completed, which typically takes less than ten seconds, a confirmation message box will appear.

Scaling

There is a global setting which can be used to adjust the magnification of png images. Select

Window - Preferences - AgileJ StructureViews - Advanced

to change the Image Export Scale, which is expressed as a percentage.

Troubleshooting

A large class diagram containing, say, 50 types can occupy a large canvas. Exporting a large PNG image requires a large chunk of Java heap to complete. If an export fails please try:

  • Changing the export scale factor to produce a smaller image
  • Filtering down the class diagram and improving the layout to take up less space - the Eclipse properties view shows the dimensions of the class diagram canvas in pixels as a guide
  • Increasing the Java heap space (by editing the -Xmx entry in your eclipse.ini file)

Copyright © AgileJ Ltd. All rights reserved.

AgileJ StructureViews is a plugin for Eclipse which generates UML class diagrams reverse engineered from Java source code.

Learn More

Stay Up To Date


Get In Touch

AgileJ Ltd
Trident Court, 1 Oakcroft Road
Chessington, Surrey
KT9 1BD
United Kingdom
+44 20 8123 2318