javax.swing.plaf.basic

Class BasicInternalFrameTitlePane.TitlePaneLayout

public class BasicInternalFrameTitlePane.TitlePaneLayout extends Object implements LayoutManager

This class acts as the Layout Manager for the TitlePane.

UNKNOWN: Apparently this class was intended to be protected, but was made public by a compiler bug and is now public for compatibility.

Constructor Summary
TitlePaneLayout()
Creates a new TitlePaneLayout object.
Method Summary
voidaddLayoutComponent(String name, Component c)
This method is called when adding a Component to the Container.
voidlayoutContainer(Container c)
This method is called to lay out the children of the Title Pane.
DimensionminimumLayoutSize(Container c)
This method returns the minimum size of the given Container given the children that it has.
DimensionpreferredLayoutSize(Container c)
This method returns the preferred size of the given Container taking into account the children that it has.
voidremoveLayoutComponent(Component c)
This method is called when removing a Component from the Container.

Constructor Detail

TitlePaneLayout

public TitlePaneLayout()
Creates a new TitlePaneLayout object.

Method Detail

addLayoutComponent

public void addLayoutComponent(String name, Component c)
This method is called when adding a Component to the Container.

Parameters: name The name to reference the added Component by. c The Component to add.

layoutContainer

public void layoutContainer(Container c)
This method is called to lay out the children of the Title Pane.

Parameters: c The Container to lay out.

minimumLayoutSize

public Dimension minimumLayoutSize(Container c)
This method returns the minimum size of the given Container given the children that it has.

Parameters: c The Container to get a minimum size for.

Returns: The minimum size of the Container.

preferredLayoutSize

public Dimension preferredLayoutSize(Container c)
This method returns the preferred size of the given Container taking into account the children that it has.

Parameters: c The Container to lay out.

Returns: The preferred size of the Container.

removeLayoutComponent

public void removeLayoutComponent(Component c)
This method is called when removing a Component from the Container.

Parameters: c The Component to remove.