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.
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.
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.