Package org.flexdock.view
Class View.ViewLayout
java.lang.Object
org.flexdock.view.View.ViewLayout
- All Implemented Interfaces:
LayoutManager
,LayoutManager2
,Serializable
- Enclosing class:
- View
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 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
-
ViewLayout
protected ViewLayout()
-
-
Method Details
-
preferredLayoutSize
Returns the amount of space the layout would like to have.- Specified by:
preferredLayoutSize
in 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:
minimumLayoutSize
in 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:
maximumLayoutSize
in 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:
layoutContainer
in interfaceLayoutManager
- Parameters:
parent
- the Container for which this layout manager is being used
-
addLayoutComponent
- Specified by:
addLayoutComponent
in interfaceLayoutManager
-
removeLayoutComponent
- Specified by:
removeLayoutComponent
in interfaceLayoutManager
-
addLayoutComponent
- Specified by:
addLayoutComponent
in interfaceLayoutManager2
-
getLayoutAlignmentX
- Specified by:
getLayoutAlignmentX
in interfaceLayoutManager2
-
getLayoutAlignmentY
- Specified by:
getLayoutAlignmentY
in interfaceLayoutManager2
-
invalidateLayout
- Specified by:
invalidateLayout
in interfaceLayoutManager2
-