|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Package de.pxclass.gui |
---|
Class de.pxclass.gui.PXElasticConstraints extends java.lang.Object implements Serializable |
---|
serialVersionUID: 772166752371075235L
Serialized Fields |
---|
int gridX
gridX=0
.
The default value is 0. gridX
should be greather than 0.
int gridY
gridY=0
.
The default value is 0. gridY
should be greather than 0.
int gridWidth
gridWidth
should be greater than 0 and the default value is
1.
int gridHeight
gridHeight
should be greater than 0 and the default value is
1.
int anchor
PXElasticConstraints.CENTER
, PXElasticConstraints.NORTH
, PXElasticConstraints.NORTHEAST
, PXElasticConstraints.EAST
,
PXElasticConstraints.SOUTHEAST
, PXElasticConstraints.SOUTH
, PXElasticConstraints.SOUTHWEST
, PXElasticConstraints.WEST
,
and PXElasticConstraints.NORTHWEST
. The default value is WEST
.
java.awt.Insets insets
The default value is null
which is interpreted as all insets
set to 0.
int fill
The following values are valid for fill
:
NONE
: Do not resize the component.
HORIZONTAL
: Make the component wide enough to fill its
cell horizontally, but do not change its height.
VERTICAL
: Make the component tall enough to fill its
cell vertically, but do not change its width.
BOTH
: Make the component fill its cell entirely.
AS_STRETCH_X
: Make the component wider in the way it
is stretched by its stretchX
, but do not change its height.
AS_STRETCH_Y
: Make the component taller in the way it
is stretched by its stretchY
, but do not change its width.
AS_STRETCH_X_AND_Y
: Make the component wider and
taller in the way it is stretched by its stretchX
and
stretchY
.
AS_STRETCH_X | VERTICAL
: This is a combination of
AS_STRETCH_X
and VERTICAL
(see above)
AS_STRETCH_Y | HORIZONTAL
: This is a combination of
AS_STRETCH_Y
and HORIZONTAL
(see above)
The default value is NONE
.
double shrinkX
The elastic layout manager calculates the shrinkX
of a
column to be the maximum shrinkX
of all the components in
that column. If the resulting layout is larger horizontally than the area
it needs to fill, the missing space is distributed to each column in
proportion to its shrinkX
– each column with a
shrinkX
greater than 0 is getting smaller. A column that has
a shrinkX
of 0 is not beeing resized.
If all the shrinkX
values of all columns of the layout area
are zero, all columns and their components remain unresized –
the rightmost components might exceed the size of the parent container and
could be not visible any more.
The default value of this field is 0. shrinkX
should be a
non-negative value.
double shrinkY
The elastic layout manager calculates the shrinkY
of a row
to be the maximum shrinkY
of all the components in that row.
If the resulting layout is larger vertically than the area it needs to
fill, the missing space is distributed to each row in proportion to its
shrinkY
– each row with a shrinkY
greater than 0 is getting smaller. A row that has a shrinkY
of 0 is not beeing resized.
If all the shrinkY
values of all rows of the layout area are
zero, all rows and their components remain unresized – the
bottommost components might exceed the size of the parent container and
could be not visible any more.
The default value of this field is 0. shrinkY
should be a
non-negative value.
double stretchX
The elastic layout manager calculates the stretchX
of a
column to be the maximum stretchX
of all the components in
that column. If the resulting layout is smaller horizontally than the area
it needs to fill, the extra space is distributed to each column in
proportion to its stretchX
– each column with a
stretchX
greater than 0 is getting larger. A column that has
a stretchX
of 0 is not beeing resized.
If all the stretchX
values of all columns of the layout area
are zero, all columns and their components remain unresized –
the extra space appears right of the rightmost column.
The default value of this field is 0. stretchX
should be a
non-negative value.
double stretchY
The elastic layout manager calculates the stretchY
of a row
to be the maximum stretchY
of all the components in that
row. If the resulting layout is smaller vertically than the area it needs
to fill, the extra space is distributed to each row in proportion to its
stretchY
– each row with a stretchY
greater than 0 is getting larger. A row that has a stretchY
of 0 is not beeing resized.
If all the stretchY
values of all rows of the layout area
are zero, all rows and their components remain unresized – the
extra space appears below the bottommost row.
The default value of this field is 0. stretchY
should be a
non-negative value.
int limitPolicy
Default is "do not heed the maximum size of a component, but heed its minimum size, the component will always be painted".
PXElasticConstraints.HEED_NO_SIZES
,
PXElasticConstraints.HEED_MAXIMUM_SIZE
,
PXElasticConstraints.HEED_MINIMUM_SIZE
,
PXElasticConstraints.CUT_OUT_OF_BOUNDS
Class de.pxclass.gui.PXElasticLayout extends java.lang.Object implements Serializable |
---|
serialVersionUID: -2090216419041566261L
Serialized Fields |
---|
java.util.Map<K,V> constraintsMap
Map
maintains the association between a component and
its constraints. The Keys in the map are the components and the values are
the instances of PXElasticConstraints
.
de.pxclass.gui.PXElasticLayout.CellArea cellArea
boolean heedingInvisibleComponents
true
, if invisible components should be heeded when
calculating the layout, else false
int rowGap
int columnGap
int outerTopGap
int outerLeftGap
int outerBottomGap
int outerRightGap
boolean debugMode
true
if this layout manager's debug mode is enabled, else
false
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |