General Diagramming Guidelines

Scott W. Ambler · Cambridge University Press eBooks · 2005

The guidelines presented in this chapter are applicable to all types of diagrams, UML or otherwise. The terms “symbols,” “lines,” and “labels” are used throughout: ■ Symbols represent diagram elements such as class boxes, object boxes, use cases, and actors. ■ Lines represent diagram elements such as associations, dependencies, and transitions between states. ■ Labels represent diagram elements such as class names, association roles, and constraints. Readability Guidelines Avoid Crossing Lines When two lines cross on a diagram, such as two associations on a UML class diagram, the potential for misreading a diagram exists. Depict Crossing Lines as a Jump You can't always avoid crossing lines; for example, you cannot fully connect five symbols (try it and see). When you need to have two lines cross, one of them should “hop” over the other as in Figure 1. Avoid Diagonal or Curved Lines Straight lines, drawn either vertically or horizontally, are easier for your eyes to follow than diagonal or curved lines. A good approach is to place symbols on diagrams as if they are centered on the grid point of a graph, a built-in feature of many computer-aided system-engineering (CASE) tools. This makes it easier to connect your symbols by only using horizontal and vertical lines. Note how three lines are improved in Figure 2 when this approach is taken. Also note how the line between A and C has been depicted in “step fashion” as a line with vertical and horizontal segments.

Read the paper · More papers on PaperTik