Java Reference
In-Depth Information
A complication here is the label on the RequirementGroup , which,
although nested within a nonresizable figure, causes the figure to grow by default
as the text exceeds the width of the figure. To address this, the children Maximum
Size , Minimum Size , and Preferred Size elements are added to the
Rounded Rectangle to prevent resizing.
Notice that we have “hard-coded” the dependency link blue. Optionally, we
can create a preference for this type of connection to allow the user to modify it,
as you saw in the mindmap diagram Section 4.3.5, “Diagram Preferences.”
4.4.2 Tooling Definition
The tooling definition is straightforward, as always. We need two groups again:
one for Nodes and the other for Links. Because of our numerous connection
types, we need several Link tools, depending on their source and target types.
Figure 4-17 shows the palette model. Here, we are more interested in simply dis-
playing dependency relationships and are not so interested in allowing for the
creation of elements on the diagram, so we could exclude a palette definition
altogether.
Figure 4-17
Requirements tooling definition
4.4.3 Mapping Definition
The structure of the requirements model differs from that of the mindmap model,
in that children of RequirementGroup s and Requirement s are maintained in
containment references of the elements, not in containment references of the root
element. Thus, you can see how the mapping differs in this example. Figure 4-18
is our domain model to use as a reference through this discussion.
Search WWH ::




Custom Search