java.lang.Object
java.awt.BorderLayout
com.aoapps.hodgepodge.awt.MultiBorderLayout
- All Implemented Interfaces:
LayoutManager,LayoutManager2,Serializable
Overrides
BorderLayout to support multiple
components in all of the four borders. Only one component
is allowed in the Center. Components are added from North
to South and West to East.- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
FieldsFields inherited from class java.awt.BorderLayout
AFTER_LAST_LINE, AFTER_LINE_ENDS, BEFORE_FIRST_LINE, BEFORE_LINE_BEGINS, CENTER, EAST, LINE_END, LINE_START, NORTH, PAGE_END, PAGE_START, SOUTH, WEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(Component component, Object name) voidaddLayoutComponent(String name, Component component) Deprecated.protected DimensiongetLayoutSize(Container target, boolean minimum) voidlayoutContainer(Container target) minimumLayoutSize(Container target) preferredLayoutSize(Container target) static booleanvoidremoveLayoutComponent(Component component) Methods inherited from class java.awt.BorderLayout
getConstraints, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getLayoutComponent, getLayoutComponent, getVgap, invalidateLayout, maximumLayoutSize, setHgap, setVgap, toString
-
Field Details
-
northComponents
-
westComponents
-
eastComponents
-
southComponents
-
center
-
-
Constructor Details
-
MultiBorderLayout
public MultiBorderLayout() -
MultiBorderLayout
public MultiBorderLayout(int hgap, int vgap)
-
-
Method Details
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager2- Overrides:
addLayoutComponentin classBorderLayout
-
addLayoutComponent
Deprecated.replaced byaddLayoutComponent(Component, Object).- Specified by:
addLayoutComponentin interfaceLayoutManager- Overrides:
addLayoutComponentin classBorderLayout
-
getLayoutSize
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager- Overrides:
layoutContainerin classBorderLayout
-
minimumLayoutSize
- Specified by:
minimumLayoutSizein interfaceLayoutManager- Overrides:
minimumLayoutSizein classBorderLayout
-
preferredLayoutSize
- Specified by:
preferredLayoutSizein interfaceLayoutManager- Overrides:
preferredLayoutSizein classBorderLayout
-
remove
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager- Overrides:
removeLayoutComponentin classBorderLayout
-

addLayoutComponent(Component, Object).