Class Grid.FlowSizeSpec

java.lang.Object
net.miginfocom.layout.Grid.FlowSizeSpec
Enclosing class:
Grid

private static final class Grid.FlowSizeSpec extends Object
  • Field Details

    • sizes

      private final int[][] sizes
    • resConstsInclGaps

      private final ResizeConstraint[] resConstsInclGaps
  • Constructor Details

    • FlowSizeSpec

      private FlowSizeSpec(int[][] sizes, ResizeConstraint[] resConstsInclGaps)
  • 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 of fromIx + 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.
      Returns:
      The new size.