|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.range2.RangedValuePolicy com.cosylab.gui.components.range2.TrimValuePolicy
public final class TrimValuePolicy
Ensures that value will never be outside the bounds. Bounds will never be adjusted, only the value will be trimmed to minimum and maximum. If values are changed, value will be adjusted accordingly.
Constructor Summary | |
---|---|
TrimValuePolicy()
|
Method Summary | |
---|---|
static RangedValue |
trim(RangedValue params)
Trims value to bounds. |
RangedValue |
validate(RangedValue params)
Trims value to bounds. |
Methods inherited from class com.cosylab.gui.components.range2.RangedValuePolicy |
---|
addPeerPolicy, getPeerPolicy, insertPeerPolicy, removePeerPolicy, removePeerPolicyByType, validatePeerPolicy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrimValuePolicy()
Method Detail |
---|
public static RangedValue trim(RangedValue params)
public RangedValue validate(RangedValue params)
validate
in class RangedValuePolicy
params
- Triplet of values to validate.
com.cosylab.gui.components.range.RangedValuePolicy#validate(RangedValueHolder)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |