src/java.desktop/share/classes/java/awt/GridBagConstraints.java

Print this page




 539      * The minimum width of the component.  It is used to calculate
 540      * <code>ipady</code>, where the default will be 0.
 541      * @serial
 542      * @see #ipady
 543      */
 544     int minWidth;
 545     /**
 546      * The minimum height of the component. It is used to calculate
 547      * <code>ipadx</code>, where the default will be 0.
 548      * @serial
 549      * @see #ipadx
 550      */
 551     int minHeight;
 552 
 553     // The following fields are only used if the anchor is
 554     // one of BASELINE, BASELINE_LEADING or BASELINE_TRAILING.
 555     // ascent and descent include the insets and ipady values.
 556     transient int ascent;
 557     transient int descent;
 558     transient Component.BaselineResizeBehavior baselineResizeBehavior;
 559     // The folllowing two fields are used if the baseline type is
 560     // CENTER_OFFSET.
 561     // centerPadding is either 0 or 1 and indicates if
 562     // the height needs to be padded by one when calculating where the
 563     // baseline lands
 564     transient int centerPadding;
 565     // Where the baseline lands relative to the center of the component.
 566     transient int centerOffset;
 567 
 568     /*
 569      * JDK 1.1 serialVersionUID
 570      */
 571     private static final long serialVersionUID = -1000070633030801713L;
 572 
 573     /**
 574      * Creates a <code>GridBagConstraint</code> object with
 575      * all of its fields set to their default value.
 576      */
 577     public GridBagConstraints () {
 578         gridx = RELATIVE;
 579         gridy = RELATIVE;




 539      * The minimum width of the component.  It is used to calculate
 540      * <code>ipady</code>, where the default will be 0.
 541      * @serial
 542      * @see #ipady
 543      */
 544     int minWidth;
 545     /**
 546      * The minimum height of the component. It is used to calculate
 547      * <code>ipadx</code>, where the default will be 0.
 548      * @serial
 549      * @see #ipadx
 550      */
 551     int minHeight;
 552 
 553     // The following fields are only used if the anchor is
 554     // one of BASELINE, BASELINE_LEADING or BASELINE_TRAILING.
 555     // ascent and descent include the insets and ipady values.
 556     transient int ascent;
 557     transient int descent;
 558     transient Component.BaselineResizeBehavior baselineResizeBehavior;
 559     // The following two fields are used if the baseline type is
 560     // CENTER_OFFSET.
 561     // centerPadding is either 0 or 1 and indicates if
 562     // the height needs to be padded by one when calculating where the
 563     // baseline lands
 564     transient int centerPadding;
 565     // Where the baseline lands relative to the center of the component.
 566     transient int centerOffset;
 567 
 568     /*
 569      * JDK 1.1 serialVersionUID
 570      */
 571     private static final long serialVersionUID = -1000070633030801713L;
 572 
 573     /**
 574      * Creates a <code>GridBagConstraint</code> object with
 575      * all of its fields set to their default value.
 576      */
 577     public GridBagConstraints () {
 578         gridx = RELATIVE;
 579         gridy = RELATIVE;