LayoutManager2NameLayoutManager2
DescriptionLayoutManager2 is an extension of LayoutManager. It provides a more generalized way to add components to a container, as well as more sizing and alignment methods. Interface Definition
public abstract interface java.awt.LayoutManager2 extends java.awt.LayoutManager { // Interface Methods public abstract void addLayoutComponent (Component comp, Object constraints); public abstract float getLayoutAlignmentX(Container target); public abstract float getLayoutAlignmentY(Container target); public abstract void invalidateLayout(Container target); public abstract Dimension maximumLayoutSize(Container target); } Interface MethodsaddLayoutComponentpublic abstract void addLayoutComponent (Component comp, Object constraints)
getLayoutAlignmentXpublic abstract float getLayoutAlignmentX (Container target)
getLayoutAlignmentYpublic abstract float getLayoutAlignmentY (Container target)
invalidateLayoutpublic abstract void invalidateLayout (Container target)
maximumLayoutSizepublic abstract Dimension maximumLayoutSize (Container target)
See AlsoBorderLayout, CardLayout, Component, Container, GridBagLayout, Object, String |
|