java.awt
Interface LayoutManager

All Known Subinterfaces:
LayoutManager2 sample code for java.awt.LayoutManager2 definition code for java.awt.LayoutManager2
All Known Implementing Classes:
BasicComboBoxUI.ComboBoxLayoutManager sample code for javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager definition code for javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager , BasicInternalFrameTitlePane.TitlePaneLayout sample code for javax.swing.plaf.basic.BasicInternalFrameTitlePane.TitlePaneLayout definition code for javax.swing.plaf.basic.BasicInternalFrameTitlePane.TitlePaneLayout , BasicInternalFrameUI.InternalFrameLayout sample code for javax.swing.plaf.basic.BasicInternalFrameUI.InternalFrameLayout definition code for javax.swing.plaf.basic.BasicInternalFrameUI.InternalFrameLayout , BasicOptionPaneUI.ButtonAreaLayout sample code for javax.swing.plaf.basic.BasicOptionPaneUI.ButtonAreaLayout definition code for javax.swing.plaf.basic.BasicOptionPaneUI.ButtonAreaLayout , BasicScrollBarUI sample code for javax.swing.plaf.basic.BasicScrollBarUI definition code for javax.swing.plaf.basic.BasicScrollBarUI , BasicSplitPaneDivider.DividerLayout sample code for javax.swing.plaf.basic.BasicSplitPaneDivider.DividerLayout definition code for javax.swing.plaf.basic.BasicSplitPaneDivider.DividerLayout , BasicSplitPaneUI.BasicHorizontalLayoutManager sample code for javax.swing.plaf.basic.BasicSplitPaneUI.BasicHorizontalLayoutManager definition code for javax.swing.plaf.basic.BasicSplitPaneUI.BasicHorizontalLayoutManager , BasicSplitPaneUI.BasicVerticalLayoutManager sample code for javax.swing.plaf.basic.BasicSplitPaneUI.BasicVerticalLayoutManager definition code for javax.swing.plaf.basic.BasicSplitPaneUI.BasicVerticalLayoutManager , BasicTabbedPaneUI.TabbedPaneLayout sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout , BorderLayout sample code for java.awt.BorderLayout definition code for java.awt.BorderLayout , BoxLayout sample code for javax.swing.BoxLayout definition code for javax.swing.BoxLayout , CardLayout sample code for java.awt.CardLayout definition code for java.awt.CardLayout , DefaultMenuLayout sample code for javax.swing.plaf.basic.DefaultMenuLayout definition code for javax.swing.plaf.basic.DefaultMenuLayout , FlowLayout sample code for java.awt.FlowLayout definition code for java.awt.FlowLayout , GridBagLayout sample code for java.awt.GridBagLayout definition code for java.awt.GridBagLayout , GridLayout sample code for java.awt.GridLayout definition code for java.awt.GridLayout , JRootPane.RootLayout sample code for javax.swing.JRootPane.RootLayout definition code for javax.swing.JRootPane.RootLayout , JSpinner.DateEditor sample code for javax.swing.JSpinner.DateEditor definition code for javax.swing.JSpinner.DateEditor , JSpinner.DefaultEditor sample code for javax.swing.JSpinner.DefaultEditor definition code for javax.swing.JSpinner.DefaultEditor , JSpinner.ListEditor sample code for javax.swing.JSpinner.ListEditor definition code for javax.swing.JSpinner.ListEditor , JSpinner.NumberEditor sample code for javax.swing.JSpinner.NumberEditor definition code for javax.swing.JSpinner.NumberEditor , MetalComboBoxUI.MetalComboBoxLayoutManager sample code for javax.swing.plaf.metal.MetalComboBoxUI.MetalComboBoxLayoutManager definition code for javax.swing.plaf.metal.MetalComboBoxUI.MetalComboBoxLayoutManager , MetalScrollBarUI sample code for javax.swing.plaf.metal.MetalScrollBarUI definition code for javax.swing.plaf.metal.MetalScrollBarUI , MetalTabbedPaneUI.TabbedPaneLayout sample code for javax.swing.plaf.metal.MetalTabbedPaneUI.TabbedPaneLayout definition code for javax.swing.plaf.metal.MetalTabbedPaneUI.TabbedPaneLayout , OverlayLayout sample code for javax.swing.OverlayLayout definition code for javax.swing.OverlayLayout , ScrollPaneLayout sample code for javax.swing.ScrollPaneLayout definition code for javax.swing.ScrollPaneLayout , ScrollPaneLayout.UIResource sample code for javax.swing.ScrollPaneLayout.UIResource definition code for javax.swing.ScrollPaneLayout.UIResource , SpringLayout sample code for javax.swing.SpringLayout definition code for javax.swing.SpringLayout , ViewportLayout sample code for javax.swing.ViewportLayout definition code for javax.swing.ViewportLayout

public interface LayoutManager

Defines the interface for classes that know how to lay out Containers.

See Also:
Container sample code for java.awt.Container definition code for java.awt.Container

Method Summary
 void addLayoutComponent sample code for java.awt.LayoutManager.addLayoutComponent(java.lang.String, java.awt.Component) definition code for java.awt.LayoutManager.addLayoutComponent(java.lang.String, java.awt.Component) (String sample code for java.lang.String definition code for java.lang.String  name, Component sample code for java.awt.Component definition code for java.awt.Component  comp)
          If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.
 void layoutContainer sample code for java.awt.LayoutManager.layoutContainer(java.awt.Container) definition code for java.awt.LayoutManager.layoutContainer(java.awt.Container) (Container sample code for java.awt.Container definition code for java.awt.Container  parent)
          Lays out the specified container.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension minimumLayoutSize sample code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container) (Container sample code for java.awt.Container definition code for java.awt.Container  parent)
          Calculates the minimum size dimensions for the specified container, given the components it contains.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension preferredLayoutSize sample code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container) (Container sample code for java.awt.Container definition code for java.awt.Container  parent)
          Calculates the preferred size dimensions for the specified container, given the components it contains.
 void removeLayoutComponent sample code for java.awt.LayoutManager.removeLayoutComponent(java.awt.Component) definition code for java.awt.LayoutManager.removeLayoutComponent(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  comp)
          Removes the specified component from the layout.
 

Method Detail

addLayoutComponent sample code for java.awt.LayoutManager.addLayoutComponent(java.lang.String, java.awt.Component) definition code for java.awt.LayoutManager.addLayoutComponent(java.lang.String, java.awt.Component)

void addLayoutComponent(String sample code for java.lang.String definition code for java.lang.String  name,
                        Component sample code for java.awt.Component definition code for java.awt.Component  comp)
If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.

Parameters:
name - the string to be associated with the component
comp - the component to be added

removeLayoutComponent sample code for java.awt.LayoutManager.removeLayoutComponent(java.awt.Component) definition code for java.awt.LayoutManager.removeLayoutComponent(java.awt.Component)

void removeLayoutComponent(Component sample code for java.awt.Component definition code for java.awt.Component  comp)
Removes the specified component from the layout.

Parameters:
comp - the component to be removed

preferredLayoutSize sample code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container)

Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  preferredLayoutSize(Container sample code for java.awt.Container definition code for java.awt.Container  parent)
Calculates the preferred size dimensions for the specified container, given the components it contains.

Parameters:
parent - the container to be laid out
See Also:
minimumLayoutSize(java.awt.Container) sample code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container)

minimumLayoutSize sample code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container)

Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  minimumLayoutSize(Container sample code for java.awt.Container definition code for java.awt.Container  parent)
Calculates the minimum size dimensions for the specified container, given the components it contains.

Parameters:
parent - the component to be laid out
See Also:
preferredLayoutSize(java.awt.Container) sample code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container)

layoutContainer sample code for java.awt.LayoutManager.layoutContainer(java.awt.Container) definition code for java.awt.LayoutManager.layoutContainer(java.awt.Container)

void layoutContainer(Container sample code for java.awt.Container definition code for java.awt.Container  parent)
Lays out the specified container.

Parameters:
parent - the container to be laid out