| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final int | |
| private static final double | |
| private final double[] | |
| private final double[] | |
| private final ConstrainedColumnResize. | |
| private final double[] | |
| private final ResizeFeaturesBase | |
| private final double[] | |
| private final BitSet | |
| private static final int | |
| private final Region | |
| private final double |
| Access | Constructor and Description |
|---|---|
| public | ResizeHelper(ResizeFeaturesBase<S> rf, double target, List<? extends TableColumnBase<?, ?>> columns, ConstrainedColumnResize.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if sum of columns equals or greater than the target widthApplies computed column widths to the tree/table columns, snapping coordinates if required. |
| protected static double | |
| protected double | |
| protected boolean | |
| protected double | |
| protected double | |
| protected void | |
| protected void | distributeSmallDelta(double delta)
for small deltas, we use a simpler, but more expensive algorithm to distribute space in small steps, each time favoring a column that is further away from its preferred width. |
| protected double | Returns: unused portion of delta, or Double.NaN if it did not find a good candidateFinds the best column to shrink, then reduces its width. |
| protected double | |
| protected boolean | |
| protected static boolean | |
| protected int | markOppositeColumns(int ix)
updates skip bitset with columns that might be resized, and returns the number of the opposite columns |
| protected void | |
| protected double | |
| public boolean | |
| public void | |
| protected void | |
| protected double | Returns: unused portion of delta, or Double.NaN if it did not find a good candidateFinds the best column to shrink, then reduces its width. |
| protected double | |
| protected double |
| columns | back to summary |
|---|---|
| private final List<? extends TableColumnBase<?, ?>> columns | |
| count | back to summary |
|---|---|
| private final int count | |
| EPSILON | back to summary |
|---|---|
| private static final double EPSILON | |
| max | back to summary |
|---|---|
| private final double[] max | |
| min | back to summary |
|---|---|
| private final double[] min | |
| mode | back to summary |
|---|---|
| private final ConstrainedColumnResize. | |
| pref | back to summary |
|---|---|
| private final double[] pref | |
| rf | back to summary |
|---|---|
| private final ResizeFeaturesBase<S> rf | |
| size | back to summary |
|---|---|
| private final double[] size | |
| skip | back to summary |
|---|---|
| private final BitSet skip | |
| SMALL_DELTA | back to summary |
|---|---|
| private static final int SMALL_DELTA | |
| snap | back to summary |
|---|---|
| private final Region snap | |
| target | back to summary |
|---|---|
| private final double target | |
| ResizeHelper | back to summary |
|---|---|
| public ResizeHelper(ResizeFeaturesBase<S> rf, double target, List<? extends TableColumnBase<?, ?>> columns, ConstrainedColumnResize. | |
| applySizes | back to summary |
|---|---|
| public boolean applySizes() Applies computed column widths to the tree/table columns, snapping coordinates if required.
| |
| clip | back to summary |
|---|---|
| protected static double clip(double v, double min, double max) | |
| computeAllowedDelta | back to summary |
|---|---|
| protected double computeAllowedDelta(boolean expanding) returns the allowable delta for all of the opposite columns | |
| distributeDelta | back to summary |
|---|---|
| protected boolean distributeDelta(int ix, double delta) | |
| distributeDeltaFlexHead | back to summary |
|---|---|
| protected double distributeDeltaFlexHead(double delta) | |
| distributeDeltaFlexTail | back to summary |
|---|---|
| protected double distributeDeltaFlexTail(double delta) | |
| distributeDeltaRemainingColumns | back to summary |
|---|---|
| protected void distributeDeltaRemainingColumns(double delta) | |
| distributeSmallDelta | back to summary |
|---|---|
| protected void distributeSmallDelta(double delta) for small deltas, we use a simpler, but more expensive algorithm to distribute space in small steps, each time favoring a column that is further away from its preferred width. | |
| expandSmall | back to summary |
|---|---|
| protected double expandSmall(double delta) Finds the best column to shrink, then reduces its width. Adds the column to skip list if the column width hits a constraint after adjustement.
| |
| getAllowedDelta | back to summary |
|---|---|
| protected double getAllowedDelta(int ix, boolean expanding) non-negative | |
| isCornerCase | back to summary |
|---|---|
| protected boolean isCornerCase(double delta, int ix) | |
| isZero | back to summary |
|---|---|
| protected static boolean isZero(double x) | |
| markOppositeColumns | back to summary |
|---|---|
| protected int markOppositeColumns(int ix) updates skip bitset with columns that might be resized, and returns the number of the opposite columns | |
| resetSizeChanges | back to summary |
|---|---|
| protected void resetSizeChanges() | |
| resize | back to summary |
|---|---|
| protected double resize(int ix, double delta) | |
| resizeColumn | back to summary |
|---|---|
| public boolean resizeColumn(TableColumnBase<?, ?> column) | |
| resizeToContentWidth | back to summary |
|---|---|
| public void resizeToContentWidth() | |
| setSkip | back to summary |
|---|---|
| protected void setSkip(int from, int toExclusive) range set with limit check | |
| shrinkSmall | back to summary |
|---|---|
| protected double shrinkSmall(double delta) Finds the best column to shrink, then reduces its width. Adds the column to skip list if the column width hits a constraint after adjustement.
| |
| snap | back to summary |
|---|---|
| protected double snap(double x) | |
| sumSizes | back to summary |
|---|---|
| protected double sumSizes() | |