public interface LayoutManager2 extends LayoutManager
LayoutManager,
Container| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(Component component,
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.
|
addLayoutComponent, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponentvoid addLayoutComponent(Component component, Object constraints)
component - the component to addconstraints - the constraints to satisfyDimension maximumLayoutSize(Container target)
target - the container to lay outComponent.getMaximumSize()float getLayoutAlignmentX(Container target)
target - the target containerfloat getLayoutAlignmentY(Container target)
target - the target containervoid invalidateLayout(Container target)
target - the target container