FileDocCategorySizeDatePackage
GridBagLayoutInfo.javaAPI DocJava SE 6 API2418Tue Jun 10 00:25:16 BST 2008java.awt

GridBagLayoutInfo

public class GridBagLayoutInfo extends Object implements Serializable
The {@code GridBagLayoutInfo} is an utility class for {@code GridBagLayout} layout manager. It stores align, size and baseline parameters for every component within a container.

see
java.awt.GridBagLayout
see
java.awt.GridBagConstraints
since
1.6

Fields Summary
private static final long
serialVersionUID
int
width
int
height
int
startx
int
starty
int[]
minWidth
int[]
minHeight
double[]
weightX
double[]
weightY
boolean
hasBaseline
short[]
baselineType
int[]
maxAscent
int[]
maxDescent
Constructors Summary
GridBagLayoutInfo(int width, int height)
Creates an instance of GridBagLayoutInfo representing {@code GridBagLayout} grid cells with it's own parameters.

param
width the columns
param
height the rows
since
6.0

           /* Max descent (height - baseline) */

                                  
        
        this.width = width;
        this.height = height;
    
Methods Summary
booleanhasBaseline(int row)
Returns true if there is a baseline for the specified row.

        return (hasBaseline && baselineType[row] != 0);
    
booleanhasConstantDescent(int row)
Returns true if the specified row has any component aligned on the baseline with a baseline resize behavior of CONSTANT_DESCENT.

        return ((baselineType[row] & (1 << Component.BaselineResizeBehavior.
                                      CONSTANT_DESCENT.ordinal())) != 0);