Package org.flexdock.docking.defaults
Class DefaultDockingPort.PortLayout
java.lang.Object
org.flexdock.docking.defaults.DefaultDockingPort.PortLayout
- All Implemented Interfaces:
LayoutManager,LayoutManager2,Serializable
- Enclosing class:
DefaultDockingPort
protected class DefaultDockingPort.PortLayout
extends Object
implements LayoutManager2, Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(Component comp, Object constraints) voidaddLayoutComponent(String name, Component comp) floatgetLayoutAlignmentX(Container target) floatgetLayoutAlignmentY(Container target) voidinvalidateLayout(Container target) voidlayoutContainer(Container parent) Instructs the layout manager to perform the layout for the specified container.maximumLayoutSize(Container target) Returns the maximum amount of space the layout can use.minimumLayoutSize(Container parent) Returns the minimum amount of space the layout needs.preferredLayoutSize(Container parent) Returns the amount of space the layout would like to have.void
-
Constructor Details
-
PortLayout
protected PortLayout()
-
-
Method Details
-
preferredLayoutSize
Returns the amount of space the layout would like to have.- Specified by:
preferredLayoutSizein interfaceLayoutManager- Parameters:
parent- the Container for which this layout manager is being used- Returns:
- a Dimension object containing the layout's preferred size
-
minimumLayoutSize
Returns the minimum amount of space the layout needs.- Specified by:
minimumLayoutSizein interfaceLayoutManager- Parameters:
parent- the Container for which this layout manager is being used- Returns:
- a Dimension object containing the layout's minimum size
-
maximumLayoutSize
Returns the maximum amount of space the layout can use.- Specified by:
maximumLayoutSizein interfaceLayoutManager2- Parameters:
target- the Container for which this layout manager is being used- Returns:
- a Dimension object containing the layout's maximum size
-
layoutContainer
Instructs the layout manager to perform the layout for the specified container.- Specified by:
layoutContainerin interfaceLayoutManager- Parameters:
parent- the Container for which this layout manager is being used
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager2
-
getLayoutAlignmentX
- Specified by:
getLayoutAlignmentXin interfaceLayoutManager2
-
getLayoutAlignmentY
- Specified by:
getLayoutAlignmentYin interfaceLayoutManager2
-
invalidateLayout
- Specified by:
invalidateLayoutin interfaceLayoutManager2
-