Lines Matching refs:min

216     // Used by prepare, indicates min, pref or max isn't going to be used.
337 private static void checkSize(int min, int pref, int max,
339 checkResizeType(min, isComponentSpring);
346 checkLessThan(min, pref);
358 private static void checkLessThan(int min, int max) {
359 if (min >= 0 && max >= 0 && min > max) {
361 "Following is not met: min<=pref<=max");
1051 // Step 4: (for min/pref/max size calculations only) calculate the
1262 * Spring consists of a range: min, pref and max, a value some where in
1264 * min/max/pref. If the min/pref/max has internally changes, or needs
1269 private int min;
1277 min = pref = max = UNSET;
1335 if (min == UNSET) {
1336 min = constrain(calculateMinimumSize(axis));
1338 return min;
1378 * Resets the cached min/max/pref.
1381 size = min = pref = max = UNSET;
1392 return Math.min(value, Short.MAX_VALUE);
1404 int min = getMinimumSize(axis);
1406 return (min != pref || pref != getMaximumSize(axis));
1467 * the following is not met (for specific values): {@code min}
1514 * @param min the minimum size or one of {@code DEFAULT_SIZE} or
1522 public Group addComponent(Component component, int min, int pref,
1524 return addSpring(new ComponentSpring(component, min, pref, max));
1542 * @param min the minimum size of the gap
1549 public Group addGap(int min, int pref, int max) {
1550 return addSpring(new GapSpring(min, pref, max));
1700 // Clear cached pref/min/max.
1723 // Clear cached pref/min/max.
1814 public SequentialGroup addComponent(Component component, int min,
1817 component, min, pref, max);
1827 * @param min the minimum size or one of {@code DEFAULT_SIZE} or
1836 Component component, int min, int pref, int max) {
1837 super.addComponent(component, min, pref, max);
1854 public SequentialGroup addGap(int min, int pref, int max) {
1855 return (SequentialGroup)super.addGap(min, pref, max);
2027 spring.setSize(axis, origin, Math.min(
2031 // Adjust between min/pref
2046 // 1. Calculate the resizability of each spring (pref - min or
2074 springDelta.delta = Math.min(sDelta, springDelta.delta);
2094 // Nothing resizable, use the min or max of each of the
2353 // Delta, one of pref - min or max - pref.
2482 public ParallelGroup addComponent(Component component, int min, int pref,
2484 return (ParallelGroup)super.addComponent(component, min, pref, max);
2497 public ParallelGroup addGap(int min, int pref, int max) {
2498 return (ParallelGroup)super.addGap(min, pref, max);
2541 * @param min the minimum size
2549 Alignment alignment, int min, int pref, int max) {
2552 min, pref, max);
2587 int springSize = Math.min(
2878 height = Math.min(descent, springMax -
2882 height = Math.min(ascent, springMax -
2937 // min/pref/max are either a value >= 0 or one of
2939 private final int min;
2949 private ComponentSpring(Component component, int min, int pref,
2957 checkSize(min, pref, max, true);
2959 this.min = min;
2979 int min = getMinimumSize(axis);
2982 return Math.min(max, Math.max(min, pref));
3001 if (min >= 0) {
3002 return min;
3004 if (min == PREFERRED_SIZE) {
3007 assert (min == DEFAULT_SIZE);
3134 int min = getMinimumSize(axis);
3136 return Math.min(max, Math.max(min, pref));
3168 private final int min;
3172 GapSpring(int min, int pref, int max) {
3173 checkSize(min, pref, max, false);
3174 this.min = min;
3180 if (min == PREFERRED_SIZE) {
3183 return min;
3298 size += Math.min(maxPadding, lastSize);
3486 size += Math.min(maxPadding, lastSize);