|
|||||||||
| Home >> All >> java >> [ awt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.awt
Interface LayoutManager2

- All Superinterfaces:
- LayoutManager
- All Known Implementing Classes:
- BorderLayout, CardLayout, GridBagLayout
- public interface LayoutManager2
- extends LayoutManager
Layout manager for laying out containers based on contraints. The constraints control how the layout will proceed.
- Since:
- 1.0
| Method Summary | |
void |
addLayoutComponent(Component component,
java.lang.Object constraints)
Adds the specified component to the layout, with the specified constraints object. |
float |
getLayoutAlignmentX(Container target)
Returns the preferred X axis alignment for the specified target container. |
float |
getLayoutAlignmentY(Container target)
Returns the preferred Y axis alignment for the specified target container. |
void |
invalidateLayout(Container target)
Forces the layout manager to purge any cached information about the layout of the target container. |
Dimension |
maximumLayoutSize(Container target)
Determines the maximum size of the specified target container. |
| Methods inherited from interface java.awt.LayoutManager |
addLayoutComponent, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent |
| Method Detail |
addLayoutComponent
public void addLayoutComponent(Component component, java.lang.Object constraints)
- Adds the specified component to the layout, with the specified
constraints object.
maximumLayoutSize
public Dimension maximumLayoutSize(Container target)
- Determines the maximum size of the specified target container.
getLayoutAlignmentX
public float getLayoutAlignmentX(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.
getLayoutAlignmentY
public float getLayoutAlignmentY(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.
invalidateLayout
public void invalidateLayout(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.
|
|||||||||
| Home >> All >> java >> [ awt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC