|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.range2.RangedValue
public final class RangedValue
This class stores values representing RangedValue. No checks are made for
validity of the values. Only purpose of this class is to provide data
transfer between RangedValue
and RangedValuePolicy
.
As such, this class will normaly be used only internaly by
RangedValue
.
Constructor Summary | |
---|---|
RangedValue()
|
|
RangedValue(double minimum,
double maximum,
double value)
|
Method Summary | |
---|---|
RangedValue |
deriveWithMax(double maximum)
Returns a new RangedValue with min and value the same as this object, but with the given maximum. |
RangedValue |
deriveWithMin(double minimum)
Returns a new RangedValue with max and value the same as this object, but with the given minimum. |
RangedValue |
deriveWithValue(double value)
Returns a new RangedValue with min/max the same as this object, but with the given value. |
double |
getMaximum()
Returns the maximum. |
double |
getMinimum()
Returns the minimum. |
double |
getValue()
Returns the value. |
boolean |
isValid()
Check if the value is valid within bounds. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RangedValue()
public RangedValue(double minimum, double maximum, double value)
minimum
- doublemaximum
- doublevalue
- doubleMethod Detail |
---|
public final double getMinimum()
public final double getMaximum()
public final double getValue()
public final boolean isValid()
public java.lang.String toString()
toString
in class java.lang.Object
public RangedValue deriveWithValue(double value)
value
- new value for the RangedValue
public RangedValue deriveWithMax(double maximum)
maximum
- new maximum for the RangedValue
public RangedValue deriveWithMin(double minimum)
value
- new minimum for the RangedValue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |