Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Interface java.awt.LayoutManager

Implementing Classes:
GridLayout

public abstract interface LayoutManager
Defines the interface for classes that know how to layout Containers.

Version:
1.16, 03/18/98
See Also:
Container

Method Summary
void addLayoutComponent(String name, Component comp)
          Adds the specified component with the specified name to the layout.
void layoutContainer(Container parent)
          Lays out the container in the specified panel.
java.awt.Dimension minimumLayoutSize(Container parent)
          Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.
java.awt.Dimension preferredLayoutSize(Container parent)
          Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.
void removeLayoutComponent(Component comp)
          Removes the specified component from the layout.
 

Method Detail

addLayoutComponent

public 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 void removeLayoutComponent(Component comp)
Removes the specified component from the layout.
Parameters:
comp - the component ot be removed

preferredLayoutSize

public java.awt.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 to be laid out
See Also:
minimumLayoutSize

minimumLayoutSize

public java.awt.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 to be laid out
See Also:
preferredLayoutSize

layoutContainer

public void layoutContainer(Container parent)
Lays out the container in the specified panel.
Parameters:
parent - the component which needs to be laid out

Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD