java::awt::LayoutManager Class Reference

Inheritance diagram for java::awt::LayoutManager:

Inheritance graph
java::awt::FlowLayoutjava::awt::GridLayoutjava::awt::LayoutManager2java::lang::Interfacejava::lang::Objectjava::awt::BorderLayout
[legend]
Collaboration diagram for java::awt::LayoutManager:

Collaboration graph
java::lang::Interfacejava::lang::Object
[legend]

List of all members.


Detailed Description

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

See also:
Container
Version:
1.24, 01/23/03
Author:
Sami Shaio

Arthur van Hoff


Public Member Functions

virtual void addLayoutComponent (const String &name, const Ref< Component > &comp)=0
 If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.
virtual void removeLayoutComponent (const Ref< Component > &comp)=0
 Removes the specified component from the layout.
virtual Dimension preferredLayoutSize (const Container &parent) const =0
 Calculates the preferred size dimensions for the specified container, given the components it contains.
virtual Dimension minimumLayoutSize (const Container &parent) const =0
 Calculates the minimum size dimensions for the specified container, given the components it contains.
virtual void layoutContainer (const Container &parent)=0
 Lays out the specified container.

Member Function Documentation

virtual void java::awt::LayoutManager::addLayoutComponent ( const String name,
const Ref< Component > &  comp 
) [pure virtual]

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

Implemented in java::awt::BorderLayout, java::awt::FlowLayout, and java::awt::GridLayout.

virtual void java::awt::LayoutManager::removeLayoutComponent ( const Ref< Component > &  comp  )  [pure virtual]

Removes the specified component from the layout.

Parameters:
comp the component to be removed

Implemented in java::awt::BorderLayout, java::awt::FlowLayout, and java::awt::GridLayout.

virtual Dimension java::awt::LayoutManager::preferredLayoutSize ( const Container parent  )  const [pure virtual]

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

Parameters:
parent the container to be laid out
See also:
minimumLayoutSize

Implemented in java::awt::BorderLayout, java::awt::FlowLayout, and java::awt::GridLayout.

virtual Dimension java::awt::LayoutManager::minimumLayoutSize ( const Container parent  )  const [pure virtual]

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

Parameters:
parent the component to be laid out
See also:
preferredLayoutSize

Implemented in java::awt::BorderLayout, java::awt::FlowLayout, and java::awt::GridLayout.

virtual void java::awt::LayoutManager::layoutContainer ( const Container parent  )  [pure virtual]

Lays out the specified container.

Parameters:
parent the container to be laid out

Implemented in java::awt::BorderLayout, java::awt::FlowLayout, and java::awt::GridLayout.


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:03 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3