Java Reference
In-Depth Information
Border Layout
Border Layout
s allow for the placement of inner elements in the following
locations: top, bottom, left, right, and center. In terms of GMF graphical defini-
tion properties, the values in Table 11-4 correspond to these options.
Table 11-4
Border Layout Properties
Border Layout Data
Alignment
Vertical
CENTER
CENTER
true | false
TOP
BEGINNING
true
BOTTOM
END
true
LEFT
BEGINNING
false
RIGHT
END
false
In Figure 11-5, a
Border Layout
is used on the outer rectangle, which also
has a margin border to provide spacing between its outer edge and the inner ele-
ments. Additional rectangles are added to the top, bottom, left, and right loca-
tions. A rectangle is also added in the center position and has a compound border
to achieve the (outer) margin border and (inner) line border. Each of these rec-
tangles has child
Border Layout Data
elements with alignment and vertical
property settings.
Figure 11-5
Border layout
Grid Layout
The
Grid Layout
is a powerful layout, although with additional complexity
required to configure. Each figure added to a parent that uses
Grid Layout
provides its own
Grid Layout Data
. The
Grid Layout
itself has just two
Search WWH ::
Custom Search