/** * Describes if this Size can be compressed, if container space gets scarce. * Used by the FormLayout size computations in <code>#compressedSizes</code> * to check whether a column or row can be compressed or not.<p> * * BoundedSizes are compressible if the base Size is compressible. * * @return <code>true</code> if and only if the basis is compressible * * @since 1.1 */ public boolean compressible() { return getBasis().compressible(); }
/** * Describes if this Size can be compressed, if container space gets scarce. * Used by the FormLayout size computations in {@code #compressedSizes} * to check whether a column or row can be compressed or not.<p> * * BoundedSizes are compressible if the base Size is compressible. * * @return {@code true} if and only if the basis is compressible * * @since 1.1 */ @Override public boolean compressible() { return getBasis().compressible(); }
FormSpec formSpec = (FormSpec) formSpecs.get(i); sizes[i] = prefSizes[i]; if (formSpec.getSize().compressible()) { sizes[i] -= (int) Math.round((prefSizes[i] - minSizes[i])
FormSpec formSpec = (FormSpec) formSpecs.get(i); sizes[i] = prefSizes[i]; if (formSpec.getSize().compressible()) { sizes[i] -= (int) Math.round((prefSizes[i] - minSizes[i])