Java Reference
In-Depth Information
The filled circle is added next and thus is put into the second row. It has
default horizontal and vertical span values of 1, and it uses horizontal and
vertical alignment values of END . As such, it is situated again at the bot-
tom right of its cell.
The hollow square uses horizontal and vertical alignment values of
BEGINNING , placing it at the upper left of its cell.
The filled square uses a horizontal and vertical span of 2, with vertical
alignment CENTER . Its horizontal alignment is set to BEGINNING and has
a horizontal indent of 20. This causes it to be situated the same distance
from the left edge of its cell, but centered vertically. You can see this and
other layout effects clearly when comparing the left and right images
above where the parent rectangle is resized.
Figure 11-6
Grid layout
Combining Layouts in Complex Figures
You also likely will combine layouts when designing complex figures. The sam-
ple diagrams in this topic and the UML2 Tools project provide many examples
 
Search WWH ::




Custom Search