API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. GridBagConstraints View Source
Author(s)
Doug Stein
Bill Spitzak (orignial NeWS & OLIT implementation)
Since
JDK1.0
Version
1.41, 05/26/06
Serial
Hierarchy
 Object
      GridBagConstraints
Implements
 Cloneable
 Serializable
Subclasses
Description
public class GridBagConstraints
  The GridBagConstraints class specifies constraints for components that are laid out using the GridBagLayout class.
See also:    GridBagLayout
Constructors
public GridBagConstraints ()
Creates a GridBagConstraint object with all of its fields set to their default value.
public GridBagConstraints (int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets insets, int ipadx, int ipady)
  Creates a GridBagConstraints object with all of its fields set to the passed-in arguments.
Methods
Hide/Show inherited methods
public Object clone ()
  Creates a copy of this grid bag constraint.
pack-private boolean isVerticallyResizable ()
Fields
Hide/Show inherited fields
publicfinalstatic int ABOVE_BASELINE = "1024"
  Possible value for the anchor field.
publicfinalstatic int ABOVE_BASELINE_LEADING = "1280"
  Possible value for the anchor field.
publicfinalstatic int ABOVE_BASELINE_TRAILING = "1536"
  Possible value for the anchor field.
public int anchor
  This field is used when the component is smaller than its display area.
pack-privatetransient int ascent
publicfinalstatic int BASELINE = "256"
  Possible value for the anchor field.
publicfinalstatic int BASELINE_LEADING = "512"
  Possible value for the anchor field.
publicfinalstatic int BASELINE_TRAILING = "768"
  Possible value for the anchor field.
pack-privatetransient BaselineResizeBehavior baselineResizeBehavior
publicfinalstatic int BELOW_BASELINE = "1792"
  Possible value for the anchor field.
publicfinalstatic int BELOW_BASELINE_LEADING = "2048"
  Possible value for the anchor field.
publicfinalstatic int BELOW_BASELINE_TRAILING = "2304"
  Possible value for the anchor field.
publicfinalstatic int BOTH = "1"
Resize the component both horizontally and vertically.
publicfinalstatic int CENTER = "10"
Put the component in the center of its display area.
pack-privatetransient int centerOffset
pack-privatetransient int centerPadding
pack-privatetransient int descent
publicfinalstatic int EAST = "13"
Put the component on the right side of its display area, centered vertically.
public int fill
  This field is used when the component's display area is larger than the component's requested size.
publicfinalstatic int FIRST_LINE_END = "24"
  Place the component in the corner of its display area where the first line of text on a page would normally end for the current ComponentOrienation.
publicfinalstatic int FIRST_LINE_START = "23"
  Place the component in the corner of its display area where the first line of text on a page would normally begin for the current ComponentOrienation.
public int gridheight
  Specifies the number of cells in a column for the component's display area.
public int gridwidth
  Specifies the number of cells in a row for the component's display area.
public int gridx
  Specifies the cell containing the leading edge of the component's display area, where the first cell in a row has gridx=0.
public int gridy
  Specifies the cell at the top of the component's display area, where the topmost cell has gridy=0.
publicfinalstatic int HORIZONTAL = "2"
Resize the component horizontally but not vertically.
public Insets insets
  This field specifies the external padding of the component, the minimum amount of space between the component and the edges of its display area.
public int ipadx
  This field specifies the internal padding of the component, how much space to add to the minimum width of the component.
public int ipady
  This field specifies the internal padding, that is, how much space to add to the minimum height of the component.
publicfinalstatic int LAST_LINE_END = "26"
  Place the component in the corner of its display area where the last line of text on a page would normally end for the current ComponentOrienation.
publicfinalstatic int LAST_LINE_START = "25"
  Place the component in the corner of its display area where the last line of text on a page would normally start for the current ComponentOrienation.
publicfinalstatic int LINE_END = "22"
  Place the component centered along the edge of its display area where lines of text would normally end for the current ComponentOrienation.
publicfinalstatic int LINE_START = "21"
  Place the component centered along the edge of its display area where lines of text would normally begin for the current ComponentOrienation.
pack-private int minHeight
  The minimum height of the component.
pack-private int minWidth
  The minimum width of the component.
publicfinalstatic int NONE = "0"
Do not resize the component.
publicfinalstatic int NORTH = "11"
Put the component at the top of its display area, centered horizontally.
publicfinalstatic int NORTHEAST = "12"
Put the component at the top-right corner of its display area.
publicfinalstatic int NORTHWEST = "18"
Put the component at the top-left corner of its display area.
publicfinalstatic int PAGE_END = "20"
  Place the component centered along the edge of its display area associated with the end of a page for the current ComponentOrienation.
publicfinalstatic int PAGE_START = "19"
  Place the component centered along the edge of its display area associated with the start of a page for the current ComponentOrienation.
publicfinalstatic int RELATIVE = "-1"
  Specifies that this component is the next-to-last component in its column or row (gridwidth, gridheight), or that this component be placed next to the previously added component (gridx, gridy).
publicfinalstatic int REMAINDER = "0"
Specifies that this component is the last component in its column or row.
publicfinalstatic int SOUTH = "15"
Put the component at the bottom of its display area, centered horizontally.
publicfinalstatic int SOUTHEAST = "14"
Put the component at the bottom-right corner of its display area.
publicfinalstatic int SOUTHWEST = "16"
Put the component at the bottom-left corner of its display area.
pack-private int tempHeight
Temporary place holder for the Height of the component.
pack-private int tempWidth
Temporary place holder for the Width of the component.
pack-private int tempX
Temporary place holder for the x coordinate.
pack-private int tempY
Temporary place holder for the y coordinate.
publicfinalstatic int VERTICAL = "3"
Resize the component vertically but not horizontally.
public double weightx
  Specifies how to distribute extra horizontal space.
public double weighty
  Specifies how to distribute extra vertical space.
publicfinalstatic int WEST = "17"
Put the component on the left side of its display area, centered vertically.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar