javax.swing.plaf.basic
Class BasicInternalFrameTitlePane.TitlePaneLayout

java.lang.Object
  extended by javax.swing.plaf.basic.BasicInternalFrameTitlePane.TitlePaneLayout
All Implemented Interfaces:
LayoutManager
Enclosing class:
BasicInternalFrameTitlePane

public class BasicInternalFrameTitlePane.TitlePaneLayout
extends Object
implements LayoutManager

This class acts as the Layout Manager for the TitlePane.


Constructor Summary
BasicInternalFrameTitlePane.TitlePaneLayout()
          Creates a new TitlePaneLayout object.
 
Method Summary
 void addLayoutComponent(String name, Component c)
          This method is called when adding a Component to the Container.
 void layoutContainer(Container c)
          This method is called to lay out the children of the Title Pane.
 Dimension minimumLayoutSize(Container c)
          This method returns the minimum size of the given Container given the children that it has.
 Dimension preferredLayoutSize(Container c)
          This method returns the preferred size of the given Container taking into account the children that it has.
 void removeLayoutComponent(Component c)
          This method is called when removing a Component from the Container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicInternalFrameTitlePane.TitlePaneLayout

public BasicInternalFrameTitlePane.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.

Specified by:
addLayoutComponent in interface LayoutManager
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.

Specified by:
layoutContainer in interface LayoutManager
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.

Specified by:
minimumLayoutSize in interface LayoutManager
Parameters:
c - The Container to get a minimum size for.
Returns:
The minimum size of the Container.
See Also:
LayoutManager.preferredLayoutSize(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.

Specified by:
preferredLayoutSize in interface LayoutManager
Parameters:
c - The Container to lay out.
Returns:
The preferred size of the Container.
See Also:
LayoutManager.minimumLayoutSize(Container)

removeLayoutComponent

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

Specified by:
removeLayoutComponent in interface LayoutManager
Parameters:
c - The Component to remove.