org.jfree.layout

Class CenterLayout

Implemented Interfaces:
LayoutManager, Serializable

public class CenterLayout
extends java.lang.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

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.

Constructor Details

CenterLayout

public CenterLayout()
Creates a new layout manager.

Method Details

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.