Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.awt.GridBagLayout

Availability: JDK 1.0

public class GridBagLayout extends Object implements LayoutManager2, Serializable {
   // Public Constructor
      public GridBagLayout();
   // Constants
      protected static final int MAXGRIDSIZE;
      protected static final int MINSIZE;
      protected static final int PREFERREDSIZE;
   // Public Instance Variables
      public double[] columnWeights;
      public int[] columnWidths;
      public int[] rowHeights;
      public double[] rowWeights;
   // Protected Instance Variables
      protected Hashtable comptable;
      protected GridBagConstraints defaultConstraints;
      protected GridBagLayoutInfo layoutInfo;
   // Public Instance Methods
      public void addLayoutComponent(String name, Component comp);
1.1  public void addLayoutComponent(Component comp, Object constraints);
      public GridBagConstraints getConstraints(Component comp);
1.1  public float getLayoutAlignmentX(Container parent);
1.1  public float getLayoutAlignmentY(Container parent);
      public int[][] getLayoutDimensions();
      public Point getLayoutOrigin();
      public double[][] getLayoutWeights();
1.1  public void invalidateLayout(Container target);
      public void layoutContainer(Container parent);
      public Point location(int x, int y);
1.1  public Dimension maximumLayoutSize(Container target);
      public Dimension minimumLayoutSize(Container parent);
      public Dimension preferredLayoutSize(Container parent);
      public void removeLayoutComponent(Component comp);
      public void setConstraints(Component comp, GridBagConstraints constraints);
      public String toString();  // Overrides Object.toString()
   // Protected Instance Methods
      protected void AdjustForGravity(GridBagConstraints constraints, Rectangle r);
      protected void ArrangeGrid(Container parent);
      protected GridBagLayoutInfo GetLayoutInfo(Container parent, int sizeflag);
      protected Dimension GetMinSize(Container parent, GridBagLayoutInfo info);
      protected GridBagConstraints lookupConstraints(Component comp);
}

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.