java.awt
Interface LayoutManager2
-
- All Superinterfaces:
- LayoutManager
- All Known Implementing Classes:
- BorderLayout, CardLayout, GridBagLayout
public interface LayoutManager2 extends LayoutManagerDefines an interface for classes that know how to layout Containers based on a layout constraints object. This interface extends the LayoutManager interface to deal with layouts explicitly in terms of constraint objects that specify how and where components should be added to the layout.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.
- See Also:
LayoutManager,Container
-
-
Methods Modifier and Type Method and Description 
addLayoutComponent 
Adds the specified component to the layout, using the specified constraint object.
addLayoutComponent 
If the layout manager uses a per-component string, adds the componentcompto the layout, associating it with the string specified byname.
getLayoutAlignmentX 
Returns the alignment along the x axis.
getLayoutAlignmentY 
Returns the alignment along the y axis.
invalidateLayout 
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
layoutContainer 
Lays out the specified container.
maximumLayoutSize 
Calculates the maximum size dimensions for the specified container, given the components it contains.
minimumLayoutSize 
Calculates the minimum size dimensions for the specified container, given the components it contains.
preferredLayoutSize 
Calculates the preferred size dimensions for the specified container, given the components it contains.
removeLayoutComponent 
Removes the specified component from the layout.
-
