Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt

Interface LayoutManager2

java.lang.Object
|
+--java.awt.LayoutManager
   |
   +--java.awt.LayoutManager2

All Implemented Interfaces:

LayoutManager


public interface LayoutManager2

implements LayoutManager

Layout manager for laying out containers based on contraints. The constraints control how the layout will proceed.

Since:Author:See Also:

Method Summary

voidaddLayoutComponent(java.awt.Component component, java.lang.Object contraint)

Adds the specified component to the layout, with the specified constraint object.
floatgetLayoutAlignmentX(java.awt.Container target)

Returns the preferred X axis alignment for the specified target container.
floatgetLayoutAlignmentY(java.awt.Container target)

Returns the preferred Y axis alignment for the specified target container.
voidinvalidateLayout(java.awt.Container target)

Forces the layout manager to purge any cached information about the layout of the target container.
java.awt.DimensionmaximumLayoutSize(java.awt.Container target)

Determines the maximum size of the specified target container.

Method Details

addLayoutComponent

public void addLayoutComponent(java.awt.Component component, java.lang.Object contraint)

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

Parameters:


getLayoutAlignmentX

public float getLayoutAlignmentX(java.awt.Container target)

Returns the preferred X axis alignment for the specified target container. This value will range from 0 to 1 where 0 is alignment closest to the origin, 0.5 is centered, and 1 is aligned furthest from the origin.

Parameters:

Returns:


getLayoutAlignmentY

public float getLayoutAlignmentY(java.awt.Container target)

Returns the preferred Y axis alignment for the specified target container. This value will range from 0 to 1 where 0 is alignment closest to the origin, 0.5 is centered, and 1 is aligned furthest from the origin.

Parameters:

Returns:


invalidateLayout

public void invalidateLayout(java.awt.Container target)

Forces the layout manager to purge any cached information about the layout of the target container. This will force it to be recalculated.

Parameters:


maximumLayoutSize

public Dimension maximumLayoutSize(java.awt.Container target)

Determines the maximum size of the specified target container.

Parameters:

Returns:

See Also: