java.awt

Interface LayoutManager2

  • All Superinterfaces:
    LayoutManager
    All Known Implementing Classes:
    BorderLayout, CardLayout, GridBagLayout
    public interface LayoutManager2 extends LayoutManager
    Defines 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
      Ordinary member indicator addLayoutComponent Reveal DetailHide Detail
      Adds the specified component to the layout, using the specified constraint object.
      Inherited member indicator addLayoutComponent Reveal DetailHide Detail
      If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.
      Ordinary member indicator getLayoutAlignmentX Reveal DetailHide Detail
      Returns the alignment along the x axis.
      Ordinary member indicator getLayoutAlignmentY Reveal DetailHide Detail
      Returns the alignment along the y axis.
      Ordinary member indicator invalidateLayout Reveal DetailHide Detail
      Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
      Inherited member indicator layoutContainer Reveal DetailHide Detail
      Lays out the specified container.
      Ordinary member indicator maximumLayoutSize Reveal DetailHide Detail
      Calculates the maximum size dimensions for the specified container, given the components it contains.
      Inherited member indicator minimumLayoutSize Reveal DetailHide Detail
      Calculates the minimum size dimensions for the specified container, given the components it contains.
      Inherited member indicator preferredLayoutSize Reveal DetailHide Detail
      Calculates the preferred size dimensions for the specified container, given the components it contains.
      Inherited member indicator removeLayoutComponent Reveal DetailHide Detail
      Removes the specified component from the layout.
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge