|
||||||||||
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.LimitedRangePolicy
public class LimitedRangePolicy
This is the implementation of RangedValuePolicy
that allows
values of RangedValue
to be only within the specified range.
This range is defined by allowedMinimum and allowedMaximum. These values
are independent from minimum and maximum defined in RangedValue
in that no value can be outside these bounds, including minimum and maximum,
but will be cropped to these values.
Constructor Summary | |
---|---|
LimitedRangePolicy(double allowedMinimum,
double allowedMaximum)
Constructor for LimitedRangedValuePolicy. |
Method Summary | |
---|---|
RangedValue |
validate(RangedValue params)
Passes the value triplet params that may be modified by
validate method. |
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 LimitedRangePolicy(double allowedMinimum, double allowedMaximum)
rangedValue
- Method Detail |
---|
public RangedValue validate(RangedValue params)
RangedValuePolicy
params
that may be modified by
validate method. Regardles of the changes made, all three values will
still be made to comply with the basic definition of
RangedValue
.
Before or after this policy has been executed it must call protected method validatePeerPolicy(RangedValue).
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 |