BorderLayout places controls in five regions
+--------------------------------+ | NORTH / TOP | +---+------------------------+---+ | | | | | W | | E | | E | | A | | S | | S | | T | | T | | / | | / | | L | CENTER | R | | E | | I | | F | | G | | T | | H | | | | T | | | | | +---+------------------------+---+ | SOUTH / BOTTOM | +--------------------------------+The controls at the NORTH/SOUTH borders get their preferred heights, the controls at the EAST/WEST get their preferred widths and the center region grow/shrink according to the remaining space. If more than one control is placed inside a region the controls are equally distributed across their axis where the grow (CENTER controlled by the
BorderLayout#type value)
| field | type | note |
|---|---|---|
| type | int | type specifies how controls will be positioned within the center region.
The default value is SWT#HORIZONTAL.
Possible values are:
|
| marginWidth | int | marginWidth specifies the number of points of horizontal margin that will be placed along the left and right edges of the layout. The default value is 0. |
| marginHeight | int | marginHeight specifies the number of points of vertical margin that will be placed along the top and bottom edges of the layout. The default value is 0. |
| spacing | int | spacing specifies the number of points between the edge of one region and its neighboring regions. The default value is 0. |
| controlSpacing | int | controlSpacing specifies the number of points between the edge of one control and its neighboring control inside a region. The default value is 0. |
| widthDistributionFactor | double | If the width of the SWT#LEFT and SWT#RIGHT region exceeds the
available space this factor is used to distribute the size to the controls,
valid values range between [0 ... 1]
The default value is 0.5 (equal distribution of available space) |
| heightDistributionFactor | double | If the height of the SWT#TOP and SWT#BOTTOM region exceeds
the available space this factor is used to distribute the size to the
controls, valid values range between [0 ... 1]
The default value is 0.5 (equal distribution of available space) |
<init>()toString()