API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. GroupLayout View Source
Author(s)
Tomas Pavek
Jan Stola
Scott Violet
Since
1.6
Version
1.2, 04/07/06
Serial
Hierarchy
 Object
      GroupLayout
Implements
 LayoutManager2
Subclasses
Description
public class GroupLayout
  GroupLayout is a LayoutManager that hierarchically groups components in order to position them in a Container.
See also:   
Constructors
public GroupLayout (Container host)
  Creates a GroupLayout for the specified Container.
Methods
Hide/Show inherited methods
public void addLayoutComponent (Component component, Object constraints) [Specified in LayoutManager2]
  Notification that a Component has been added to the parent container.
public void addLayoutComponent (String name, Component component)
  Notification that a Component has been added to the parent container.
public ParallelGroup createBaselineGroup (boolean resizable, boolean anchorBaselineToTop)
  Creates and returns a ParallelGroup that aligns it's elements along the baseline.
public ParallelGroup createParallelGroup ()
  Creates and returns a ParallelGroup with an alignment of Alignment.LEADING.
public ParallelGroup createParallelGroup (Alignment alignment)
  Creates and returns a ParallelGroup with the specified alignment.
public ParallelGroup createParallelGroup (Alignment alignment, boolean resizable)
  Creates and returns a ParallelGroup with the specified alignment and resize behavior.
public SequentialGroup createSequentialGroup ()
  Creates and returns a SequentialGroup.
public boolean getAutoCreateContainerGaps ()
  Returns true if gaps between the container and components that border the container are automatically created.
public boolean getAutoCreateGaps ()
  Returns true if gaps between components are automatically created.
public boolean getHonorsVisibility ()
  Returns whether component visiblity is considered when sizing and positioning components.
public float getLayoutAlignmentX (Container parent) [Specified in LayoutManager2]
  Returns the alignment along the x axis.
public float getLayoutAlignmentY (Container parent) [Specified in LayoutManager2]
  Returns the alignment along the y axis.
public LayoutStyle getLayoutStyle ()
  Returns the LayoutStyle used for calculating the preferred gap between components.
public void invalidateLayout (Container parent) [Specified in LayoutManager2]
  Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
public void layoutContainer (Container parent)
  Lays out the specified container.
public void linkSize (Component components)
  Forces the specified components to have the same size regardless of their preferred, minimum or maximum sizes.
public void linkSize (int axis, Component components)
  Forces the specified components to have the same size along the specified axis regardless of their preferred, minimum or maximum sizes.
public Dimension maximumLayoutSize (Container parent) [Specified in LayoutManager2]
  Returns the maximum size for the specified container.
public Dimension minimumLayoutSize (Container parent)
  Returns the minimum size for the specified container.
public Dimension preferredLayoutSize (Container parent)
  Returns the preferred size for the specified container.
public void removeLayoutComponent (Component component)
  Notification that a Component has been removed from the parent container.
public void replace (Component existingComponent, Component newComponent)
  Replaces an existing component with a new one.
public void setAutoCreateContainerGaps (boolean autoCreateContainerPadding)
  Sets whether a gap between the container and components that touch the border of the container should automatically be created.
public void setAutoCreateGaps (boolean autoCreatePadding)
  Sets whether a gap between components should automatically be created.
public void setHonorsVisibility (boolean honorsVisibility)
  Sets whether component visiblity is considered when sizing and positioning components.
public void setHonorsVisibility (Component component, Boolean honorsVisibility)
  Sets whether the component's visiblity is considered for sizing and positioning.
public void setHorizontalGroup (Group group)
  Sets the Group that positions and sizes components along the horizontal axis.
public void setLayoutStyle (LayoutStyle layoutStyle)
  Sets the LayoutStyle used to calculate the preferred gaps between components.
public void setVerticalGroup (Group group)
  Sets the Group that positions and sizes components along the vertical axis.
public String toString ()
  Returns a string representation of this GroupLayout.
Fields
Hide/Show inherited fields
publicfinalstatic int DEFAULT_SIZE = "-1"
  Indicates the size from the component or gap should be used for a particular range value.
publicfinalstatic int PREFERRED_SIZE = "-2"
  Indicates the preferred size from the component or gap should be used for a particular range value.
Nested Classes
  GroupLayout.Alignment
Enumeration of the possible ways ParallelGroup can align its children.
  GroupLayout.Group
Group provides the basis for the two types of operations supported by GroupLayout: laying out components one after another (SequentialGroup) or aligned (ParallelGroup).
  GroupLayout.SequentialGroup
A Group that positions and sizes its elements sequentially, one after another.
  GroupLayout.ParallelGroup
A Group that aligns and sizes it's children.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar