|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.util.gfx.geometry.SizeSpec
public final class SizeSpec
A class that combines a minimum, preferred and maximum size to form a specification for a size of something.
| Constructor Summary | |
|---|---|
SizeSpec()
Constructor for null-sizes |
|
SizeSpec(AtNumber min,
AtRefNumber pref,
AtNumber max)
Constructor. |
|
SizeSpec(AtRefNumber prefSize)
Constructor for specifying a preferred size and no max/min. |
|
SizeSpec(int staticSize)
Constructor for specifying an min/preferred/max size with the same size. |
|
SizeSpec(java.lang.Integer min,
java.lang.Integer pref,
java.lang.Integer max)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
AtNumber |
getMaximumSize()
Returns the maximum size. |
AtNumber |
getMinimumSize()
Returns the minimum size. |
AtRefNumber |
getPreferredSize()
Returns the preferred size. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SizeSpec()
public SizeSpec(int staticSize)
staticSize - The size that is to be the forced size. Wrapped in a AtNumber.
public SizeSpec(java.lang.Integer min,
java.lang.Integer pref,
java.lang.Integer max)
AtFixed values.
min - Minimum size. If null there will be no min.pref - Preferred size. If null there will be no preferred size.max - Maximum size. If null there will be no max.public SizeSpec(AtRefNumber prefSize)
prefSize - The preferred size.
public SizeSpec(AtNumber min,
AtRefNumber pref,
AtNumber max)
min - Minimum size. May be null.pref - Preferred size. May be null.max - Maximum size. May be null.| Method Detail |
|---|
public AtNumber getMinimumSize()
null.public AtRefNumber getPreferredSize()
null.public AtNumber getMaximumSize()
null.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||