Serialized Form


Package de.pxclass.gui

Class de.pxclass.gui.PXElasticConstraints extends java.lang.Object implements Serializable

serialVersionUID: 772166752371075235L

Serialized Fields

gridX

int gridX
Specifies the column at the left of the component's cell, where the leftmost column has gridX=0.

The default value is 0. gridX should be greather than 0.


gridY

int gridY
Specifies the row at the top of the component's cell, where the topmost row has gridY=0.

The default value is 0. gridY should be greather than 0.


gridWidth

int gridWidth
Specifies the number of columns for the component's cell.

gridWidth should be greater than 0 and the default value is 1.


gridHeight

int gridHeight
Specifies the number of rows for the component's cell.

gridHeight should be greater than 0 and the default value is 1.


anchor

int anchor
This field is used when the component is smaller than its cell. It determines where, within the cell, to place the component. Possible values are PXElasticConstraints.CENTER, PXElasticConstraints.NORTH, PXElasticConstraints.NORTHEAST, PXElasticConstraints.EAST, PXElasticConstraints.SOUTHEAST, PXElasticConstraints.SOUTH, PXElasticConstraints.SOUTHWEST, PXElasticConstraints.WEST, and PXElasticConstraints.NORTHWEST. The default value is WEST.


insets

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 cell.

The default value is null which is interpreted as all insets set to 0.


fill

int fill
This field is used when the component's cell is larger than the component's requested size. It determines whether to resize the component, and if so, how.

The following values are valid for fill:

The default value is NONE.


shrinkX

double shrinkX
This field is used when the components parent container is smaller then the size requested by all its children components.

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.


shrinkY

double shrinkY
This field is used when the components parent container is smaller then the size requested by all its children components.

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.


stretchX

double stretchX
This field is used when the components parent container is larger then the size requested by all its children components.

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.


stretchY

double stretchY
This field is used when the components parent container is larger then the size requested by all its children components.

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.


limitPolicy

int limitPolicy
Specifies the behaviour of the layout manager when reaching the limits of the size of the component associated with these constraints.

Default is "do not heed the maximum size of a component, but heed its minimum size, the component will always be painted".

See Also:
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

constraintsMap

java.util.Map<K,V> constraintsMap
This 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.


cellArea

de.pxclass.gui.PXElasticLayout.CellArea cellArea
the layout information


heedingInvisibleComponents

boolean heedingInvisibleComponents
true, if invisible components should be heeded when calculating the layout, else false


rowGap

int rowGap
the gap between rows


columnGap

int columnGap
the gap between columns


outerTopGap

int outerTopGap
the gap between the parent container and the first row


outerLeftGap

int outerLeftGap
the gap between the parent container and the first column


outerBottomGap

int outerBottomGap
the gap between the parent container and the last row


outerRightGap

int outerRightGap
the gap between the parent container and the last column


debugMode

boolean debugMode
true if this layout manager's debug mode is enabled, else false



Copyright © 2008. All Rights Reserved.