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