Package de.gsi.chart.axes.spi.transforms
Class LogarithmicAxisTransform
- java.lang.Object
-
- de.gsi.chart.axes.spi.transforms.AbstractAxisTransform
-
- de.gsi.chart.axes.spi.transforms.LogarithmicAxisTransform
-
- All Implemented Interfaces:
AxisTransform
- Direct Known Subclasses:
LogarithmicTimeAxisTransform
public class LogarithmicAxisTransform extends AbstractAxisTransform
- Author:
- rstein
-
-
Field Summary
Fields Modifier and Type Field Description static doubleDB10_LOGARITHM_BASEstatic doubleDB20_LOGARITHM_BASEstatic doubleDEFAULT_LOG_MIN_VALUEstatic doubleDEFAULT_LOGARITHM_BASE-
Fields inherited from class de.gsi.chart.axes.spi.transforms.AbstractAxisTransform
axis, rangeMax, rangeMin
-
-
Constructor Summary
Constructors Constructor Description LogarithmicAxisTransform(Axis axis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublebackward(double val)default backward transform for affine functions: backward(forward(val)) = forward(backward(val)) = val;doubleforward(double val)default forward transform for affine functions: backward(forward(val)) = forward(backward(val)) = val;doublegetLogarithmBase()Returns the value of thelogarithmBaseProperty().doublegetRoundedMaximumRange(double max)doublegetRoundedMinimumRange(double min)protected doublelog(double value)javafx.beans.property.DoublePropertylogarithmBaseProperty()Base of the logarithm used by the axis, must be grater than 1.protected doublepow(double value)voidsetLogarithmBase(double value)Sets value of thelogarithmBaseProperty().voidsetMaximumRange(double val)voidsetMinimumRange(double val)-
Methods inherited from class de.gsi.chart.axes.spi.transforms.AbstractAxisTransform
getMaximumRange, getMinimumRange
-
-
-
-
Field Detail
-
DEFAULT_LOGARITHM_BASE
public static final double DEFAULT_LOGARITHM_BASE
- See Also:
- Constant Field Values
-
DEFAULT_LOG_MIN_VALUE
public static final double DEFAULT_LOG_MIN_VALUE
- See Also:
- Constant Field Values
-
DB20_LOGARITHM_BASE
public static final double DB20_LOGARITHM_BASE
-
DB10_LOGARITHM_BASE
public static final double DB10_LOGARITHM_BASE
-
-
Constructor Detail
-
LogarithmicAxisTransform
public LogarithmicAxisTransform(Axis axis)
-
-
Method Detail
-
backward
public double backward(double val)
Description copied from interface:AxisTransformdefault backward transform for affine functions: backward(forward(val)) = forward(backward(val)) = val;- Parameters:
val- input value- Returns:
- output value
-
forward
public double forward(double val)
Description copied from interface:AxisTransformdefault forward transform for affine functions: backward(forward(val)) = forward(backward(val)) = val;- Parameters:
val- input value- Returns:
- output value
-
getLogarithmBase
public double getLogarithmBase()
Returns the value of thelogarithmBaseProperty().- Returns:
- base of the logarithm
-
getRoundedMaximumRange
public double getRoundedMaximumRange(double max)
-
getRoundedMinimumRange
public double getRoundedMinimumRange(double min)
-
log
protected double log(double value)
-
logarithmBaseProperty
public javafx.beans.property.DoubleProperty logarithmBaseProperty()
Base of the logarithm used by the axis, must be grater than 1.Default value: 10
- Returns:
- base of the logarithm
-
pow
protected double pow(double value)
-
setLogarithmBase
public void setLogarithmBase(double value)
Sets value of thelogarithmBaseProperty().- Parameters:
value- base of the logarithm, value > 1
-
setMaximumRange
public void setMaximumRange(double val)
- Specified by:
setMaximumRangein interfaceAxisTransform- Overrides:
setMaximumRangein classAbstractAxisTransform
-
setMinimumRange
public void setMinimumRange(double val)
- Specified by:
setMinimumRangein interfaceAxisTransform- Overrides:
setMinimumRangein classAbstractAxisTransform
-
-