This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.awt
interface LayoutManager

All Known Subinterfaces:
LayoutManager2
All Known Implementing Classes:
BasicComboBoxUI.ComboBoxLayoutManager, MetalComboBoxUI.MetalComboBoxLayoutManager, BasicInternalFrameTitlePane.TitlePaneLayout, BasicInternalFrameUI.InternalFrameLayout, BasicOptionPaneUI.ButtonAreaLayout, BasicScrollBarUI, MetalScrollBarUI, BasicSplitPaneDivider.DividerLayout, BasicTabbedPaneUI.TabbedPaneLayout, MetalTabbedPaneUI.TabbedPaneLayout, FlowLayout, GridLayout, JSpinner.DefaultEditor, JSpinner.DateEditor, JSpinner.ListEditor, JSpinner.NumberEditor, ScrollPaneLayout, ScrollPaneLayout.UIResource, ViewportLayout

public interface LayoutManager

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

Swing's painting architecture assumes the children of a JComponent do not overlap. If a JComponent's LayoutManager allows children to overlap, the JComponent must override isOptimizedDrawingEnabled to return false.


Method Summary
 void

          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

          Lays out the specified container.
 Dimension

          Calculates the minimum size dimensions for the specified container, given the components it contains.
 Dimension

          Calculates the preferred size dimensions for the specified container, given the components it contains.
 void

          Removes the specified component from the layout.
 

Method Detail

addLayoutComponent

public void addLayoutComponent(String name,
                               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

layoutContainer

public void layoutContainer(Container parent)
Lays out the specified container.

Parameters:
parent - the container to be laid out

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains.

Parameters:
parent - the component to be laid out

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified container, given the components it contains.

Parameters:
parent - the container to be laid out

removeLayoutComponent

public void removeLayoutComponent(Component comp)
Removes the specified component from the layout.

Parameters:
comp - the component to be removed


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.