public class DefaultMenuLayout extends BoxLayout implements UIResource
BoxLayout.| Constructor and Description |
|---|
DefaultMenuLayout(Container target,
int axis)
Creates a new instance of DefaultMenuLayout.
|
| Modifier and Type | Method and Description |
|---|---|
Dimension |
preferredLayoutSize(Container target)
Returns the preferred size for the layout of the menu.
|
addLayoutComponent, addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, layoutContainer, maximumLayoutSize, minimumLayoutSize, removeLayoutComponentpublic DefaultMenuLayout(Container target, int axis)
target - the component that is laid outaxis - the axis along which the component is laid outpublic Dimension preferredLayoutSize(Container target)
preferredLayoutSize in interface LayoutManagerpreferredLayoutSize in class BoxLayouttarget - the Container which's preferred size we calculateLayoutManager.minimumLayoutSize(Container)