|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.layouts.formlayout.BoundedSize
Describes sizes that provide lower and upper bounds as used by the JGoodies FormLayout.
NOTE: This code is part of the JGoodies Forms port.
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 |
compressible()
Describes if this Size can be compressed, if container space gets scarce. |
boolean |
equals(java.lang.Object object)
Indicates whether some other BoundedSize is "equal to" this one. |
Size |
getBasis()
Returns the base size, which is not- null . |
Size |
getLowerBound()
Returns the optional lower bound. |
Size |
getUpperBound()
Returns the optional upper bound. |
int |
hashCode()
Returns a hash code value for the object. |
int |
maximumSize(JQContainer 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 |
Constructor Detail |
public BoundedSize(Size basis, Size lowerBound, Size upperBound)
basis
- the base sizelowerBound
- the lower bound sizeupperBound
- the upper bound size
java.lang.IllegalArgumentException
- if the basis is nullMethod Detail |
public Size getBasis()
null
.
public Size getLowerBound()
public Size getUpperBound()
public int maximumSize(JQContainer 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 size
public boolean compressible()
#compressedSizes
to check whether a column or row can be compressed or not.BoundedSizes are compressible if the base Size is compressible.
compressible
in interface Size
true
if and only if the basis is compressiblepublic boolean equals(java.lang.Object object)
object
- the object with which to compare
public int hashCode()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |