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
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent
(Component component, Object name) void
addLayoutComponent
(String name, Component component) Deprecated.protected Dimension
getLayoutSize
(Container target, boolean minimum) void
layoutContainer
(Container target) minimumLayoutSize
(Container target) preferredLayoutSize
(Container target) static boolean
void
removeLayoutComponent
(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:
addLayoutComponent
in interfaceLayoutManager2
- Overrides:
addLayoutComponent
in classBorderLayout
-
addLayoutComponent
Deprecated.replaced byaddLayoutComponent(Component, Object)
.- Specified by:
addLayoutComponent
in interfaceLayoutManager
- Overrides:
addLayoutComponent
in classBorderLayout
-
getLayoutSize
-
layoutContainer
- Specified by:
layoutContainer
in interfaceLayoutManager
- Overrides:
layoutContainer
in classBorderLayout
-
minimumLayoutSize
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- Overrides:
minimumLayoutSize
in classBorderLayout
-
preferredLayoutSize
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
- Overrides:
preferredLayoutSize
in classBorderLayout
-
remove
-
removeLayoutComponent
- Specified by:
removeLayoutComponent
in interfaceLayoutManager
- Overrides:
removeLayoutComponent
in classBorderLayout
-
addLayoutComponent(Component, Object)
.