com.vlsolutions.swing.toolbars
public class VLToolBarLayout extends Object implements LayoutManager2
When used in horizontal orientation, this layout respects the preferred width of the contained components, and forces the height to the maximum of all the preferred heights. (so components are vertically streched to have the same height).
When used in vertical orientation, this layout respects the preferred height of the contained components, and forces the width to the maximum of all the preferred widths. (so components are horizontally streched to have the same width).
UNKNOWN: 2006/09/09 Support for LTR and RTL component orientation
Constructor Summary | |
---|---|
VLToolBarLayout() | |
VLToolBarLayout(boolean isHorizontal) Constructs a new Layout.
| |
VLToolBarLayout(boolean isHorizontal, int gap) Constructs a new Layout. |
Method Summary | |
---|---|
void | addLayoutComponent(Component comp, Object constraints) |
void | addLayoutComponent(String name, Component comp) |
float | getLayoutAlignmentX(Container target) |
float | getLayoutAlignmentY(Container target) |
void | invalidateLayout(Container target) |
void | layoutContainer(Container target) overridden to adjust position (x(top) = width(left), y(left) = height(top) |
Dimension | maximumLayoutSize(Container target) |
Dimension | minimumLayoutSize(Container parent) |
Dimension | preferredLayoutSize(Container parent) |
void | removeLayoutComponent(Component comp) |
Parameters: isHorizontal indicates if the layout will be horizontal or vertical.
Parameters: isHorizontal indicates if the layout will be horizontal or vertical. gap gap in pixels between components