|
||||||||||
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.ProperOrderPolicy
public class ProperOrderPolicy
This policy enforces the proper order of values. For a triplet of numbers
specified in RangedValueHolder
it will rearange them (if
neccessary) so that minimum will be less or equal to value and value will
be less or equal to maximum.
Constructor Summary | |
---|---|
ProperOrderPolicy()
|
Method Summary | |
---|---|
RangedValue |
validate(RangedValue params)
Swaps the parameters as neccessary to establis proper ordering of values. |
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 ProperOrderPolicy()
Method Detail |
---|
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 |