/** * Computes the maximum size for the given list of components, using this * form spec and the specified measure. * <p> * * Invoked by FormLayout to determine the size of one of my elements * * @param container * the layout container * @param components * the list of components to measure * @param minMeasure * the measure used to determine the minimum size * @param prefMeasure * the measure used to determine the preferred size * @param defaultMeasure * the measure used to determine the default size * @return the maximum size in pixels */ final int maximumSize(Container container, List components, FormLayout.Measure minMeasure, FormLayout.Measure prefMeasure, FormLayout.Measure defaultMeasure) { return size.maximumSize(container, components, minMeasure, prefMeasure, defaultMeasure); }
/** * Computes the maximum size for the given list of components, using * this form spec and the specified measure.<p> * * Invoked by FormLayout to determine the size of one of my elements * * @param container the layout container * @param components the list of components to measure * @param minMeasure the measure used to determine the minimum size * @param prefMeasure the measure used to determine the preferred size * @param defaultMeasure the measure used to determine the default size * @return the maximum size in pixels */ final int maximumSize(Container container, List components, FormLayout.Measure minMeasure, FormLayout.Measure prefMeasure, FormLayout.Measure defaultMeasure) { return size.maximumSize(container, components, minMeasure, prefMeasure, defaultMeasure); }
/** * Computes the maximum size for the given list of components, using * this form spec and the specified measure.<p> * * Invoked by FormLayout to determine the size of one of my elements * * @param container the layout container * @param components the list of components to measure * @param minMeasure the measure used to determine the minimum size * @param prefMeasure the measure used to determine the preferred size * @param defaultMeasure the measure used to determine the default size * @return the maximum size in pixels */ final int maximumSize(Container container, List components, FormLayout.Measure minMeasure, FormLayout.Measure prefMeasure, FormLayout.Measure defaultMeasure) { return size.maximumSize(container, components, minMeasure, prefMeasure, defaultMeasure); }
int size = basis.maximumSize(container, components, minMeasure, prefMeasure, defaultMeasure); if (lowerBound != null) { size = Math.max(size, lowerBound.maximumSize(container, components, minMeasure, prefMeasure, defaultMeasure)); size = Math.min(size, upperBound.maximumSize(container, components, minMeasure, prefMeasure, defaultMeasure));
FormLayout.Measure prefMeasure, FormLayout.Measure defaultMeasure) { int size = basis.maximumSize(container, components, minMeasure, defaultMeasure); if (lowerBound != null) { size = Math.max(size, lowerBound.maximumSize( container, components, size = Math.min(size, upperBound.maximumSize( container, components,
FormLayout.Measure prefMeasure, FormLayout.Measure defaultMeasure) { int size = basis.maximumSize(container, components, minMeasure, defaultMeasure); if (lowerBound != null) { size = Math.max(size, lowerBound.maximumSize( container, components, size = Math.min(size, upperBound.maximumSize( container, components,