15.07.2013 Views

jgrasp handbook

jgrasp handbook

jgrasp handbook

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DRAFT, February 18, 2003, Page 57<br />

as a group. Figures 42 shows the UML diagram after the PersonalLibrary class and the legend have<br />

been repositioned. For Figure 43, the UML settings (Edit – Settings) have been changed to include the<br />

JDK classes, and these have been dragged as a group to the lower part of the diagram. Note, you can<br />

experiment with making these external classes visible or not by going to View – Visible Objects – then<br />

uncheck External References.<br />

Here are several heuristics for laying out your UML diagrams:<br />

(1) The class symbol that contains main should go near the top of the diagram.<br />

(2) Classes in an inheritance hierarchy of should be laid out tree-down, and then moved as group.<br />

(3) Other dependencies should be laid out with the red dashed line pointing downward.<br />

(4) JDK classes, when included, should be toward the bottom of the diagram.<br />

(5) Line crossings should be minimized.<br />

(6) The legend is usually below the diagram.<br />

Figure 43. Second cut at laying out UML (with JDK classes included)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!