java::awt::LayoutManager2 Class Reference

Inheritance diagram for java::awt::LayoutManager2:

Inheritance graph
java::awt::BorderLayoutjava::awt::LayoutManagerjava::lang::Interfacejava::lang::Object
[legend]
Collaboration diagram for java::awt::LayoutManager2:

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

List of all members.


Detailed Description

Defines an interface for classes that know how to layout Containers based on a layout constraints object.

This interface extends the LayoutManager interface to deal with layouts explicitly in terms of constraint objects that specify how and where components should be added to the layout.

This minimal extension to LayoutManager is intended for tool providers who wish to the creation of constraint-based layouts. It does not yet provide full, general support for custom constraint-based layout managers.

See also:
LayoutManager

Container

Version:
1.13, 01/23/03
Author:
Jonni Kanerva

Public Member Functions

virtual void addLayoutComponent (const Ref< Component > &comp, const ObjectRef &constraints)=0
 Adds the specified component to the layout, using the specified constraint object.
virtual Dimension maximumLayoutSize (const Container &target) const =0
 Calculates the maximum size dimensions for the specified container, given the components it contains.
virtual jfloat getLayoutAlignmentX (const Container &target)=0
 Returns the alignment along the x axis.
virtual jfloat getLayoutAlignmentY (const Container &target)=0
 Returns the alignment along the y axis.
virtual void invalidateLayout (const Container &target)=0
 Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.

Member Function Documentation

virtual void java::awt::LayoutManager2::addLayoutComponent ( const Ref< Component > &  comp,
const ObjectRef constraints 
) [pure virtual]

Adds the specified component to the layout, using the specified constraint object.

Parameters:
comp the component to be added
constraints where/how the component is added to the layout.

Implemented in java::awt::BorderLayout.

virtual Dimension java::awt::LayoutManager2::maximumLayoutSize ( const Container target  )  const [pure virtual]

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

See also:
java.awt.Component::getMaximumSize

LayoutManager

Implemented in java::awt::BorderLayout.

virtual jfloat java::awt::LayoutManager2::getLayoutAlignmentX ( const Container target  )  [pure virtual]

Returns the alignment along the x axis.

This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.

Implemented in java::awt::BorderLayout.

virtual jfloat java::awt::LayoutManager2::getLayoutAlignmentY ( const Container target  )  [pure virtual]

Returns the alignment along the y axis.

This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.

Implemented in java::awt::BorderLayout.

virtual void java::awt::LayoutManager2::invalidateLayout ( const Container target  )  [pure virtual]

Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.

Implemented in java::awt::BorderLayout.


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