The plug tags window and panel can have three types of layout:
The three layout managers are implemented by using the Motif attachments of elements; elements can be attached to each other or to the window's edge.
A window of panel with the borderlayout is split into five regions: top, bottom, left, right and center. Each of these regions can contain exactly one child element. When a non-panel element is inserted in one of the regions, an extra panel to contain the element is inserted. The top element is attached to to top, left and right of the window and the bottom element to the bottom, left and right. The left and right element are attached to the left and right of the window respectively and to the top and bottom element, if they exist, otherwise they are attached to the window's edge.
The top region is on the top of the window or panel element. Each element in the top region will use the full width of the window or panel. The height of an element in the top region is the height it minimal needs.
The bottom region is on the bottom of the window or panel element. Each element in the bottom region will use the full width of the window or panel. The height of an element in the bottom region is the height it minimal needs.
The left region is at the left of the window or panel element. Each element in the left region will use the full height of the window or panel, except for the space that is used by the bottom and top regions. The width of an element in the left region is the width it minimal needs.
The right region is at the right of the window or panel element. Each element in the right region will use the full height of the window or panel, except for the space that is used by the bottom and top regions. The width of an element in the right region is the width it minimal needs.
The center region is in the center of the window and panel element. The center element uses the space left by the other regions of the window or panel.
The horizontal layout places the elements next to each other on a horizontal line. The elements contained are vertically centered. There are three possible aligns of the horizontal layout:
The elements are placed to the left of the window. This means that the elements are placed next to each other, where the first element touches the window's left edge.
The elements are placed in the center of the window. This means that the elements are placed next to each other and as a whole horizontally centered. An extra panel in inserted.
The elements are placed to the right of the window. This means that the elements are placed next to each other, where the last element touches the window's right edge.
The vertical layout places the elements under each other on a vertical line. The contained elements are horizontally centered. There are three possible aligns of the vertical layout:
The elements are placed to the top of the window. This means that the elements are placed under each other, where the first element touches the window's top edge.
The elements are placed in the center of the window. This means that the elements are placed under each other and as a whole vertically centered. An extra panel is inserted.
The elements are placed to the bottom of the window. This means that the elements are place under each other, where the last element touches the bottom of the window.