|
||||||||||
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.ShiftValuePolicy
public class ShiftValuePolicy
Defines value policy that maintains constant span. Whenever value moves outside the bounds of the range, min and max will be adjusted to follow the value or will be set to limit of the range.
Constructor Summary | |
---|---|
ShiftValuePolicy()
Default constructor for ShiftValuePolicy. |
|
ShiftValuePolicy(double factor)
Default constructor for ShiftValuePolicy. |
Method Summary | |
---|---|
double |
getFactor()
Returns factor ammount. |
void |
setFactor(double factor)
Sets new shift factor. |
RangedValue |
validate(RangedValue params)
Calculates new limits for the range. |
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 ShiftValuePolicy()
public ShiftValuePolicy(double factor)
factor
- doubleMethod Detail |
---|
public RangedValue validate(RangedValue params)
validate
in class RangedValuePolicy
params
- RangedValueHolder
com.cosylab.gui.components.range.RangedValuePolicy#validate(RangedValueHolder)
public double getFactor()
public void setFactor(double factor)
factor
- double
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |