You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
5.3 Laying Out the UML Diagram<br />
DRAFT, February 18, 2003, Page 56<br />
Currently, jGRASP has limited automatic layout capabilities. However, manually arranging the class<br />
symbols in the diagram is straightforward, and once this is done, jGRASP remembers your layout from<br />
one generate/update to the next.<br />
To begin, locate the class symbol that contains main. In our example, this would be the PersonalLibrary<br />
class. Remember the project name should reflect the name of this class. Generally, you want this class<br />
near the top of the diagram. Left click on the class symbol and then while holding down the left mouse<br />
button, drag the symbol to the area of the diagram you want it, and then release the mouse button. Now<br />
repeat this for the other class symbols until you have the diagram looking like you want it. Keep in mind<br />
that class–subclass relationships are indicated by the inheritance arrow and that these should be laid out<br />
in a tree-down fashion. You can do this automatically by selecting all classes for a particular class–<br />
subclass hierarchy (hold down SHIFT and left-click each class). Then on UML window menu, click on<br />
Layout – Tree Down to perform the operation. With a one or more classes selected, you can move them<br />
Figure 42. First cut at laying out the UML