public class RowFlowLayoutConstraints
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
int |
anchor
This field is used when the component is smaller than its
display area.
|
static int |
BOTTOM |
static int |
CENTER |
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 . |
int |
gridy
Specifies the cell at the top of the component's display area,
where the topmost cell has
gridy=0 . |
java.awt.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.
|
int |
ipadx
This field specifies the internal padding of the component, how much
space to add to the minimum width of the component.
|
int |
ipady
This field specifies the internal padding, that is, how much
space to add to the minimum height of the component.
|
static int |
TOP |
Constructor and Description |
---|
RowFlowLayoutConstraints()
Creates a
GridBagConstraint object with
all of its fields set to their default value. |
RowFlowLayoutConstraints(int gridx,
int gridy) |
RowFlowLayoutConstraints(int gridx,
int gridy,
int anchor,
java.awt.Insets insets,
int ipadx,
int ipady)
Creates a
GridBagConstraints object with
all of its fields set to the passed-in arguments. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a copy of this row-flow layout constraint.
|
java.lang.String |
toString() |
public static final int TOP
public static final int CENTER
public static final int BOTTOM
public int gridx
gridx=0
.
The leading edge of a component's display area is its left edge for
a horizontal, left-to-right container and its right edge for a
horizontal, right-to-left container.
The value RELATIVE
specifies that the component be placed at new row before gridy
The value Integer.MAX_VALUE
specifies that the component be placed at last of row gridy
just before this component was added.
The default value is RELATIVE
. gridx
should be a non-negative value.
clone()
,
util.RowFlowLayoutConstraints#gridy
,
ComponentOrientation
public int gridy
gridy=0
. The value RELATIVE
specifies that the component be placed just
below the component that was added to the container just before
this component was added.
The default value is RELATIVE
. gridy
should be a non-negative value.
clone()
,
util.RowFlowLayoutConstraints#gridx
public java.awt.Insets insets
The default value is new Insets(0, 0, 0, 0)
.
clone()
public int ipadx
ipadx
pixels.
The default value is 0
.
clone()
,
util.RowFlowLayoutConstraints#ipady
public int ipady
ipady
pixels.
The default value is 0.
clone()
,
util.RowFlowLayoutConstraints#ipadx
public int anchor
There are three kinds of possible values: code>RowFlowLayoutConstraints.TOP, RowFlowLayoutConstraints.CENTER
, RowFlowLayoutConstraints.BOTTOM
.
clone()
,
ComponentOrientation
public RowFlowLayoutConstraints()
GridBagConstraint
object with
all of its fields set to their default value.public RowFlowLayoutConstraints(int gridx, int gridy)
public RowFlowLayoutConstraints(int gridx, int gridy, int anchor, java.awt.Insets insets, int ipadx, int ipady)
GridBagConstraints
object with
all of its fields set to the passed-in arguments.
Note: Because the use of this constructor hinders readability
of source code, this constructor should only be used by
automatic source code generation tools.gridx
- The initial gridx value.gridy
- The initial gridy value.gridwidth
- The initial gridwidth value.gridheight
- The initial gridheight value.weightx
- The initial weightx value.weighty
- The initial weighty value.anchor
- The initial anchor value.fill
- The initial fill value.insets
- The initial insets value.ipadx
- The initial ipadx value.ipady
- The initial ipady value.util.RowFlowLayoutConstraints#gridx
,
util.RowFlowLayoutConstraints#gridy
,
util.RowFlowLayoutConstraints#gridwidth
,
util.RowFlowLayoutConstraints#gridheight
,
util.RowFlowLayoutConstraints#weightx
,
util.RowFlowLayoutConstraints#weighty
,
util.RowFlowLayoutConstraints#anchor
,
util.RowFlowLayoutConstraints#fill
,
util.RowFlowLayoutConstraints#insets
,
util.RowFlowLayoutConstraints#ipadx
,
util.RowFlowLayoutConstraints#ipady
Copyright ? 2022. All Rights Reserved.