java.awt
Interface LayoutManager2
java.lang.Object
|
+--java.awt.LayoutManager
|
+--java.awt.LayoutManager2
All Implemented Interfaces:
LayoutManager
Layout manager for laying out containers based on contraints. The
constraints control how the layout will proceed.
Since:Author:- Aaron M. Renn <arenn@urbanophile.com>
See Also:
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:
- the x-axis alignment preference
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:
- the y-axis alignment preference
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:
- the maximum size of the container
See Also: