org.jfree.report.modules.gui.swing.common

Class CenterLayout

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

Constructor Summary
CenterLayout()
Creates a new layout manager.
Method Summary
voidaddLayoutComponent(Component comp)
Not used.
voidaddLayoutComponent(String name, Component comp)
Not used.
voidlayoutContainer(Container parent)
Lays out the components.
DimensionminimumLayoutSize(Container parent)
Returns the minimum size.
DimensionpreferredLayoutSize(Container parent)
Returns the preferred size.
voidremoveLayoutComponent(Component comp)
Not used.
voidremoveLayoutComponent(String name, Component comp)
Not used.

Constructor Detail

CenterLayout

public CenterLayout()
Creates a new layout manager.

Method Detail

addLayoutComponent

public void addLayoutComponent(Component comp)
Not used.

Parameters: comp the component.

addLayoutComponent

public void addLayoutComponent(String name, Component comp)
Not used.

Parameters: name the component name. comp the component.

layoutContainer

public void layoutContainer(Container parent)
Lays out the components.

Parameters: parent the parent.

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)
Returns the minimum size.

Parameters: parent the parent.

Returns: the minimum size.

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
Returns the preferred size.

Parameters: parent the parent.

Returns: the preferred size.

removeLayoutComponent

public void removeLayoutComponent(Component comp)
Not used.

Parameters: comp the component.

removeLayoutComponent

public void removeLayoutComponent(String name, Component comp)
Not used.

Parameters: name the component name. comp the component.