| java.lang.Object com.jgoodies.forms.layout.BoundedSize
BoundedSize | final public class BoundedSize implements Size,Serializable(Code) | | Describes sizes that provide lower and upper bounds
as used by the JGoodies FormLayout.
author: Karsten Lentzsch version: $Revision: 1.9 $ See Also: Sizes See Also: ConstantSize |
Constructor Summary | |
public | BoundedSize(Size basis, Size lowerBound, Size upperBound) Constructs a BoundedSize for the given basis using the
specified lower and upper bounds.
TODO: Consider throwing an IllegalArgumentException,
if the lower bound and upper bound are both null . |
BoundedSize | public BoundedSize(Size basis, Size lowerBound, Size upperBound)(Code) | | Constructs a BoundedSize for the given basis using the
specified lower and upper bounds.
TODO: Consider throwing an IllegalArgumentException,
if the lower bound and upper bound are both null .
Parameters: basis - the base size Parameters: lowerBound - the lower bound size Parameters: upperBound - the upper bound size throws: NullPointerException - if the basis is null since: 1.1 |
compressible | public boolean compressible()(Code) | | Describes if this Size can be compressed, if container space gets scarce.
Used by the FormLayout size computations in #compressedSizes
to check whether a column or row can be compressed or not.
BoundedSizes are compressible if the base Size is compressible.
true if and only if the basis is compressible since: 1.1 |
equals | public boolean equals(Object object)(Code) | | Indicates whether some other BoundedSize is "equal to" this one.
Parameters: object - the object with which to compare true if this object is the same as the objectargument, false otherwise. See Also: Object.hashCode See Also: java.util.Hashtable |
getBasis | public Size getBasis()(Code) | | Returns the base size, which is not-null .
the base size since: 1.1 |
getLowerBound | public Size getLowerBound()(Code) | | Returns the optional lower bound.
the optional lower bound since: 1.1 |
getUpperBound | public Size getUpperBound()(Code) | | Returns the optional upper bound.
the optional upper bound since: 1.1 |
hashCode | public int hashCode()(Code) | | Returns a hash code value for the object. This method is
supported for the benefit of hashtables such as those provided by
java.util.Hashtable .
a hash code value for this object. See Also: Object.equals(Object) See Also: java.util.Hashtable |
maximumSize | public int maximumSize(Container container, List components, FormLayout.Measure minMeasure, FormLayout.Measure prefMeasure, FormLayout.Measure defaultMeasure)(Code) | | Returns this size as pixel size. Neither requires the component
list nor the specified measures. Honors the lower and upper bound.
Invoked by FormSpec to determine the size of a column or
row.
Parameters: container - the layout container Parameters: components - the list of components to measure Parameters: minMeasure - the measure used to determine the minimum size Parameters: prefMeasure - the measure used to determine the preferred size Parameters: defaultMeasure - the measure used to determine the default size the maximum size in pixels See Also: FormSpec.maximumSize(ContainerListFormLayout.MeasureFormLayout.MeasureFormLayout.Measure) |
toString | public String toString()(Code) | | Returns a string representation of this size object.
Note: The string representation may change
at any time. It is strongly recommended to not use this string
for parsing purposes.
a string representation of the constant size |
|
|