final class BoundedSize extends java.lang.Object implements Size, java.io.Serializable
Sizes
,
ConstantSize
,
Sizes.ComponentSize
Constructor and Description |
---|
BoundedSize(Size basis,
Size lowerBound,
Size upperBound)
Constructs a BoundedSize for the given basis using the
specified lower and upper bounds.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Indicates whether some other BoundedSize is "equal to" this one.
|
int |
hashCode()
Returns a hash code value for the object.
|
int |
maximumSize(java.awt.Container container,
java.util.List components,
FormLayout.Measure minMeasure,
FormLayout.Measure prefMeasure,
FormLayout.Measure defaultMeasure)
Returns this size as pixel size.
|
java.lang.String |
toString()
Returns a string representation of this size object.
|
BoundedSize(Size basis, Size lowerBound, Size upperBound)
basis
- the base sizelowerBound
- the lower bound sizeupperBound
- the upper bound sizejava.lang.NullPointerException
- if the basis is nullpublic int maximumSize(java.awt.Container container, java.util.List components, FormLayout.Measure minMeasure, FormLayout.Measure prefMeasure, FormLayout.Measure defaultMeasure)
Invoked by FormSpec
to determine the size of a column or
row.
maximumSize
in interface Size
container
- the layout containercomponents
- the list of components to measureminMeasure
- the measure used to determine the minimum sizeprefMeasure
- the measure used to determine the preferred sizedefaultMeasure
- the measure used to determine the default sizeFormSpec.maximumSize(Container, List, FormLayout.Measure, FormLayout.Measure, FormLayout.Measure)
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- the object with which to comparetrue
if this object is the same as the object
argument, false
otherwise.Object.hashCode()
,
Hashtable
public int hashCode()
java.util.Hashtable
.hashCode
in class java.lang.Object
Object.equals(Object)
,
Hashtable
public java.lang.String toString()
toString
in class java.lang.Object