|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jgoodies.forms.layout.BoundedSize
final class BoundedSize
Describes sizes that provide lower and upper bounds as used by the JGoodies FormLayout.
Sizes,
ConstantSize,
Sizes.ComponentSize| Field Summary | |
|---|---|
private Size |
basis
Holds the base size. |
private Size |
lowerBound
Holds an optional lower bound. |
private Size |
upperBound
Holds an optional upper bound. |
| Constructor Summary | |
|---|---|
BoundedSize(Size basis,
Size lowerBound,
Size upperBound)
Constructs a BoundedSize for the given basis using the specified lower and upper bounds. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final Size basis
private Size lowerBound
private Size upperBound
| Constructor Detail |
|---|
BoundedSize(Size basis,
Size lowerBound,
Size upperBound)
basis - the base sizelowerBound - the lower bound sizeupperBound - the upper bound size
java.lang.NullPointerException - if the basis is null| Method Detail |
|---|
public 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 Sizecontainer - 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 size
FormSpec.maximumSize(Container, List, FormLayout.Measure, FormLayout.Measure, FormLayout.Measure)public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the object with which to compare
true if this object is the same as the object
argument, false otherwise.Object.hashCode(),
Hashtablepublic int hashCode()
java.util.Hashtable.
hashCode in class java.lang.ObjectObject.equals(Object),
Hashtablepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||