Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt

Interface LayoutManager

java.lang.Object
|
+--java.awt.LayoutManager


public interface LayoutManager

This interface is for laying out containers in a particular sequence.

Since:Author:See Also:

Method Summary

voidaddLayoutComponent(java.lang.String name, java.awt.Component component)

Adds the specified component to the layout group.
voidlayoutContainer(java.awt.Container parent)

Lays out the components in the given container.
java.awt.DimensionminimumLayoutSize(java.awt.Container parent)

Calculates the minimum size for this container, taking into account the components it contains.
java.awt.DimensionpreferredLayoutSize(java.awt.Container parent)

Calculates the preferred size for this container, taking into account the components it contains.
voidremoveLayoutComponent(java.awt.Component component)

Removes the specified component from the layout group.

Method Details

addLayoutComponent

public void addLayoutComponent(java.lang.String name, java.awt.Component component)

Adds the specified component to the layout group.

Parameters:


layoutContainer

public void layoutContainer(java.awt.Container parent)

Lays out the components in the given container.

Parameters:


minimumLayoutSize

public Dimension minimumLayoutSize(java.awt.Container parent)

Calculates the minimum size for this container, taking into account the components it contains.

Parameters:

Returns:

See Also:


preferredLayoutSize

public Dimension preferredLayoutSize(java.awt.Container parent)

Calculates the preferred size for this container, taking into account the components it contains.

Parameters:

Returns:

See Also:


removeLayoutComponent

public void removeLayoutComponent(java.awt.Component component)

Removes the specified component from the layout group.

Parameters: