|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.gui.components.range2.LogarithmicRange
public class LogarithmicRange
Implementation of logarithmic range.
| Field Summary | |
|---|---|
static double |
SMALLEST
Constant defining smallest number that can be defined within range. |
| Constructor Summary | |
|---|---|
LogarithmicRange()
|
|
| Method Summary | |
|---|---|
TickCalculator |
getDefaultTickCalculator()
Returns the default TickCaluclator employed by this Range. |
double |
toAbsolute(double relative,
RangedValue val)
Returns absolute value. |
double |
toRelative(double absolute,
RangedValue val)
Returns relative value in 0.0 to 1.0 range inclusively. |
double |
validate(double value)
Checks whether value is positive. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double SMALLEST
| Constructor Detail |
|---|
public LogarithmicRange()
| Method Detail |
|---|
public double toAbsolute(double relative,
RangedValue val)
toAbsolute in interface Rangerelative - value in 0.0 to 1.0 range.
com.cosylab.gui.components.range.Range#toAbsolute(double)
public double toRelative(double absolute,
RangedValue val)
toRelative in interface Rangeabsolute - value, must be larger than 0.0.
com.cosylab.gui.components.range.Range#toRelative(double)public final double validate(double value)
SMALLEST constant, this constant is returned. This
prevents setting of values that cannot be representated on logarithmic
scale.
validate in interface Rangevalue - to check.
SMALLEST
otherwise.public TickCalculator getDefaultTickCalculator()
Range
getDefaultTickCalculator in interface Range
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||