Class CenterLayout
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.CenterLayout
-
- All Implemented Interfaces:
LayoutManager
,Serializable
public class CenterLayout extends Object implements LayoutManager, Serializable
A layout manager that displays a single component in the center of its container.- Author:
- David Gilbert
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CenterLayout()
Creates a new layout manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLayoutComponent(Component comp)
Not used.void
addLayoutComponent(String name, Component comp)
Not used.void
layoutContainer(Container parent)
Lays out the components.Dimension
minimumLayoutSize(Container parent)
Returns the minimum size.Dimension
preferredLayoutSize(Container parent)
Returns the preferred size.void
removeLayoutComponent(Component comp)
Not used.void
removeLayoutComponent(String name, Component comp)
Not used.
-
-
-
Method Detail
-
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
Returns the preferred size.- Specified by:
preferredLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- the parent.- Returns:
- the preferred size.
-
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
Returns the minimum size.- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- the parent.- Returns:
- the minimum size.
-
layoutContainer
public void layoutContainer(Container parent)
Lays out the components.- Specified by:
layoutContainer
in interfaceLayoutManager
- Parameters:
parent
- the parent.
-
addLayoutComponent
public void addLayoutComponent(Component comp)
Not used.- Parameters:
comp
- the component.
-
removeLayoutComponent
public void removeLayoutComponent(Component comp)
Not used.- Specified by:
removeLayoutComponent
in interfaceLayoutManager
- Parameters:
comp
- the component.
-
addLayoutComponent
public void addLayoutComponent(String name, Component comp)
Not used.- Specified by:
addLayoutComponent
in interfaceLayoutManager
- Parameters:
name
- the component name.comp
- the component.
-
-