public interface LayoutManager2 extends LayoutManager
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.
LayoutManager,
Container
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(Component
Adds the specified component to the layout, using the specified constraint object.
|
float |
getLayoutAlignmentX(Container
Returns the alignment along the x axis.
|
float |
getLayoutAlignmentY(Container
Returns the alignment along the y axis.
|
void |
invalidateLayout(Container
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
|
Dimension |
maximumLayoutSize(Container
Calculates the maximum size dimensions for the specified container, given the components it contains.
|
addLayoutComponent, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponentvoid addLayoutComponent(Componentcomp, Object constraints)
comp - the component to be added
constraints - where/how the component is added to the layout.
DimensionmaximumLayoutSize(Container target)
Component.getMaximumSize() ,
LayoutManager
float getLayoutAlignmentX(Containertarget)
float getLayoutAlignmentY(Containertarget)
void invalidateLayout(Containertarget)