Interface java.awt.LayoutManager
All Packages This Package Previous Next
Interface java.awt.LayoutManager
-
public interface
LayoutManager
-
extends Object
Defines the interface for classes that know how to layout Containers.
-
See Also:
-
Container
-
Version:
-
1.10, 08/17/95
-
Author:
-
Sami Shaio,
Arthur van Hoff
-
addLayoutComponent(String, Component)
-
Adds the specified component with the specified name to
the layout.
-
layoutContainer(Container)
-
Lays out the container in the specified panel.
-
minimumLayoutSize(Container)
-
Calculates the minimum size dimensions for the specified
panel given the components in the specified parent container.
-
preferredLayoutSize(Container)
-
Calculates the preferred size dimensions for the specified
panel given the components in the specified parent container.
-
removeLayoutComponent(Component)
-
Removes the specified component from the layout.
addLayoutComponent
public abstract void addLayoutComponent(String name,
Component comp)
-
Adds the specified component with the specified name to
the layout.
-
Parameters:
-
name
-
the component name
-
comp
-
the component to be added
removeLayoutComponent
public abstract void removeLayoutComponent(Component comp)
-
Removes the specified component from the layout.
-
Parameters:
-
comp
-
the component ot be removed
preferredLayoutSize
public abstract Dimension preferredLayoutSize(Container parent)
-
Calculates the preferred size dimensions for the specified
panel given the components in the specified parent container.
-
Parameters:
-
parent
-
the component which needs to be laid out
-
See Also:
-
minimumSize
minimumLayoutSize
public abstract Dimension minimumLayoutSize(Container parent)
-
Calculates the minimum size dimensions for the specified
panel given the components in the specified parent container.
-
Parameters:
-
parent
-
the component which needs to be laid out
-
See Also:
-
preferredSize
layoutContainer
public abstract void layoutContainer(Container parent)
-
Lays out the container in the specified panel.
-
Parameters:
-
parent
-
the component which needs to be laid out
All Packages This Package Previous Next