java.awt

Interface LayoutManager

public interface LayoutManager

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

Since: 1.0

See Also: Container

UNKNOWN: updated to 1.4

Method Summary
voidaddLayoutComponent(String name, Component component)
Adds the specified component to the layout group.
voidlayoutContainer(Container parent)
Lays out the components in the given container.
DimensionminimumLayoutSize(Container parent)
Calculates the minimum size for this container, taking into account the components it contains.
DimensionpreferredLayoutSize(Container parent)
Calculates the preferred size for this container, taking into account the components it contains.
voidremoveLayoutComponent(Component component)
Removes the specified component from the layout group.

Method Detail

addLayoutComponent

public void addLayoutComponent(String name, Component component)
Adds the specified component to the layout group.

Parameters: name the name of the component to add component the component to add

layoutContainer

public void layoutContainer(Container parent)
Lays out the components in the given container.

Parameters: parent the container to lay out

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)
Calculates the minimum size for this container, taking into account the components it contains.

Parameters: parent the parent container to lay out

Returns: the minimum dimensions of this container

See Also: preferredLayoutSize

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
Calculates the preferred size for this container, taking into account the components it contains.

Parameters: parent the parent container to lay out

Returns: the preferred dimensions of this container

See Also: minimumLayoutSize

removeLayoutComponent

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

Parameters: component the component to remove