java.lang.Object
net.miginfocom.layout.Grid.FlowSizeSpec
- Enclosing class:
Grid
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
FlowSizeSpec
(int[][] sizes, ResizeConstraint[] resConstsInclGaps) -
Method Summary
Modifier and TypeMethodDescriptionprivate int
expandSizes
(DimConstraint[] specs, Float[] defGrow, int targetSize, int fromIx, int len, int sizeType, int eagerness)
-
Field Details
-
sizes
private final int[][] sizes -
resConstsInclGaps
-
-
Constructor Details
-
FlowSizeSpec
-
-
Method Details
-
expandSizes
private int expandSizes(DimConstraint[] specs, Float[] defGrow, int targetSize, int fromIx, int len, int sizeType, int eagerness) - Parameters:
specs
- The specs for the columns or rows. Last index will be used offromIx + len
is greater than this array's length.defGrow
- The default grow weight if the specs does not have anyone that will grow. Comes from "push" in the CC.targetSize
- The size to try to meet.fromIx
-len
-sizeType
-eagerness
- How eager the algorithm should be to try to expand the sizes.- 0 - Grow only rows/columns which have the
sizeType
set to be the containing components AND which has a grow weight > 0. - 1 - Grow only rows/columns which have the
sizeType
set to be the containing components AND which has a grow weight > 0 OR unspecified. - 2 - Grow all rows/columns that have a grow weight > 0.
- 3 - Grow all rows/columns that have a grow weight > 0 OR unspecified.
- 0 - Grow only rows/columns which have the
- Returns:
- The new size.
-