Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
Sample
Document
Interface java.awt.LayoutManager
Inherited members: ShowHide
Deprecated: ShowHide
View: ClientSubclassPackageImplementation
java.awt

Interface LayoutManager

  • All Known Subinterfaces:
    LayoutManager2
    All Known Implementing Classes:
    BorderLayout, CardLayout, FlowLayout, GridBagLayout, GridLayout
    public interface LayoutManager
    Defines the interface for classes that know how to lay out Containers.

    Swing's painting architecture assumes the children of a JComponent do not overlap. If a JComponent's LayoutManager allows children to overlap, the JComponent must override isOptimizedDrawingEnabled to return false.

    See Also:
    Container, JComponent.isOptimizedDrawingEnabled()
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator addLayoutComponent Reveal DetailHide Detail
      void addLayoutComponent(java.lang.String name, Component comp)
      If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.
      void addLayoutComponent(java.lang.String name, Component comp)
      If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.
      Parameters:
      name - the string to be associated with the component
      comp - the component to be added
      Ordinary member indicator layoutContainer Reveal DetailHide Detail
      void layoutContainer(Container parent)
      Lays out the specified container.
      void layoutContainer(Container parent)
      Lays out the specified container.
      Parameters:
      parent - the container to be laid out
      Ordinary member indicator minimumLayoutSize Reveal DetailHide Detail
      Dimension minimumLayoutSize(Container parent)
      Calculates the minimum size dimensions for the specified container, given the components it contains.
      Dimension minimumLayoutSize(Container parent)
      Calculates the minimum size dimensions for the specified container, given the components it contains.
      Parameters:
      parent - the component to be laid out
      See Also:
      preferredLayoutSize(java.awt.Container)
      Ordinary member indicator preferredLayoutSize Reveal DetailHide Detail
      Dimension preferredLayoutSize(Container parent)
      Calculates the preferred size dimensions for the specified container, given the components it contains.
      Dimension preferredLayoutSize(Container parent)
      Calculates the preferred size dimensions for the specified container, given the components it contains.
      Parameters:
      parent - the container to be laid out
      See Also:
      minimumLayoutSize(java.awt.Container)
      Ordinary member indicator removeLayoutComponent Reveal DetailHide Detail
      void removeLayoutComponent(Component comp)
      Removes the specified component from the layout.
      void removeLayoutComponent(Component comp)
      Removes the specified component from the layout.
      Parameters:
      comp - the component to be removed
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge