Lines Matching defs:weight

104  * GridLayout's distribution of excess space accommodates the principle of weight.
111 * If either a weight or alignment were defined along a given axis then the component
112 * is taken as <em>flexible</em> in that direction. If no weight or alignment was set,
123 * weight or a gravity. To prevent a column from stretching, ensure that one of the components
124 * in the column does not define a weight or a gravity.
142 * had never been added to it. GONE views are taken to have zero weight during excess space
1204 ((spec.weight == 0) ? 0 : getDeltas()[i]);
1598 if (spec.weight != 0) {
1629 float weight = spec.weight;
1630 if (weight != 0) {
1631 int delta = Math.round((weight * totalDelta / totalWeight));
1636 totalWeight -= weight;
1685 totalWeight += spec.weight;
1815 * The weight property is also included in Spec and specifies the proportion of any
1858 * <li>{@link #rowSpec}<code>.weight</code> = 0 </li>
1862 * <li>{@link #columnSpec}<code>.weight</code> = 0 </li>
2427 final float weight;
2429 private Spec(boolean startDefined, Interval span, Alignment alignment, float weight) {
2433 this.weight = weight;
2436 private Spec(boolean startDefined, int start, int size, Alignment alignment, float weight) {
2437 this(startDefined, new Interval(start, start + size), alignment, weight);
2444 if (weight == 0f) {
2451 return new Spec(startDefined, span, alignment, weight);
2455 return new Spec(startDefined, span, alignment, weight);
2459 return (alignment == UNDEFINED_ALIGNMENT && weight == 0) ? INFLEXIBLE : CAN_STRETCH;
2507 * <li> {@code spec.weight = weight} </li>
2515 * @param weight the weight
2517 public static Spec spec(int start, int size, Alignment alignment, float weight) {
2518 return new Spec(start != UNDEFINED, start, size, alignment, weight);
2522 * Equivalent to: {@code spec(start, 1, alignment, weight)}.
2526 * @param weight the weight
2528 public static Spec spec(int start, Alignment alignment, float weight) {
2529 return spec(start, 1, alignment, weight);
2533 * Equivalent to: {@code spec(start, 1, default_alignment, weight)} -
2539 * @param weight the weight
2541 public static Spec spec(int start, int size, float weight) {
2542 return spec(start, size, UNDEFINED_ALIGNMENT, weight);
2546 * Equivalent to: {@code spec(start, 1, weight)}.
2549 * @param weight the weight
2551 public static Spec spec(int start, float weight) {
2552 return spec(start, 1, weight);