APIdia Launch Partner
Top Description Fields Constructors Methods
java.awt

public final Class GridBagLayoutInfo

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serial

The GridBagLayoutInfo is an utility class for GridBagLayout layout manager. It stores align, size and baseline parameters for every component within a container.
Since
1.6
See Also
java.awt.GridBagLayout, java.awt.GridBagConstraints

Field Summary

Modifier and TypeField and Description
pack-priv short[]
pack-priv boolean
pack-priv int
pack-priv int[]
pack-priv int[]
pack-priv int[]
pack-priv int[]
private static final long
serialVersionUID

Use serialVersionUID from JDK 1.6 for interoperability.

pack-priv int
pack-priv int
pack-priv double[]
pack-priv double[]
pack-priv int

Constructor Summary

AccessConstructor and Description
pack-priv
GridBagLayoutInfo(int
the columns
width
,
int
the rows
height
)

Creates an instance of GridBagLayoutInfo representing GridBagLayout grid cells with it's own parameters.

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
hasBaseline(int row)

Returns true if there is a baseline for the specified row.

pack-priv boolean
hasConstantDescent(int row)

Returns true if the specified row has any component aligned on the baseline with a baseline resize behavior of CONSTANT_DESCENT.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baselineTypeback to summary
pack-priv short[] baselineType
hasBaselineback to summary
pack-priv boolean hasBaseline
heightback to summary
pack-priv int height
maxAscentback to summary
pack-priv int[] maxAscent
maxDescentback to summary
pack-priv int[] maxDescent
minHeightback to summary
pack-priv int[] minHeight
minWidthback to summary
pack-priv int[] minWidth
serialVersionUIDback to summary
private static final long serialVersionUID

Use serialVersionUID from JDK 1.6 for interoperability.

Annotations
@Serial
startxback to summary
pack-priv int startx
startyback to summary
pack-priv int starty
weightXback to summary
pack-priv double[] weightX
weightYback to summary
pack-priv double[] weightY
widthback to summary
pack-priv int width

Constructor Detail

GridBagLayoutInfoback to summary
pack-priv GridBagLayoutInfo(int width, int height)

Creates an instance of GridBagLayoutInfo representing GridBagLayout grid cells with it's own parameters.

Parameters
width:int

the columns

height:int

the rows

Since
1.6

Method Detail

hasBaselineback to summary
pack-priv boolean hasBaseline(int row)

Returns true if there is a baseline for the specified row.

hasConstantDescentback to summary
pack-priv boolean hasConstantDescent(int row)

Returns true if the specified row has any component aligned on the baseline with a baseline resize behavior of CONSTANT_DESCENT.