Package org.jfree.layout
Class CenterLayout
java.lang.Object
org.jfree.layout.CenterLayout
- All Implemented Interfaces:
LayoutManager
,Serializable
A layout manager that displays a single component in the center of its
container.
- Author:
- David Gilbert
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent
(Component comp) Not used.void
addLayoutComponent
(String name, Component comp) Not used.void
layoutContainer
(Container parent) Lays out the components.minimumLayoutSize
(Container parent) Returns the minimum size.preferredLayoutSize
(Container parent) Returns the preferred size.void
Not used.void
removeLayoutComponent
(String name, Component comp) Not used.
-
Constructor Details
-
CenterLayout
public CenterLayout()Creates a new layout manager.
-
-
Method Details
-
preferredLayoutSize
Returns the preferred size.- Specified by:
preferredLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- the parent.- Returns:
- the preferred size.
-
minimumLayoutSize
Returns the minimum size.- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- the parent.- Returns:
- the minimum size.
-
layoutContainer
Lays out the components.- Specified by:
layoutContainer
in interfaceLayoutManager
- Parameters:
parent
- the parent.
-
addLayoutComponent
Not used.- Parameters:
comp
- the component.
-
removeLayoutComponent
Not used.- Specified by:
removeLayoutComponent
in interfaceLayoutManager
- Parameters:
comp
- the component.
-
addLayoutComponent
Not used.- Specified by:
addLayoutComponent
in interfaceLayoutManager
- Parameters:
name
- the component name.comp
- the component.
-
removeLayoutComponent
Not used.- Parameters:
name
- the component name.comp
- the component.
-