Package jisa.gui.plotting
Class JISALogTransform
- java.lang.Object
-
- de.gsi.chart.axes.spi.transforms.AbstractAxisTransform
-
- jisa.gui.plotting.JISALogTransform
-
- All Implemented Interfaces:
de.gsi.chart.axes.AxisTransform
public class JISALogTransform extends de.gsi.chart.axes.spi.transforms.AbstractAxisTransform
-
-
Field Summary
Fields Modifier and Type Field Description static doubleDB10_LOGARITHM_BASEstatic doubleDB20_LOGARITHM_BASEstatic doubleDEFAULT_LOG_MIN_VALUEstatic doubleDEFAULT_LOGARITHM_BASE
-
Constructor Summary
Constructors Constructor Description JISALogTransform(de.gsi.chart.axes.Axis axis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublebackward(double val)doubleforward(double 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)
-
-
-
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
-
-
Method Detail
-
backward
public double backward(double val)
-
forward
public double forward(double val)
-
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 interfacede.gsi.chart.axes.AxisTransform- Overrides:
setMaximumRangein classde.gsi.chart.axes.spi.transforms.AbstractAxisTransform
-
setMinimumRange
public void setMinimumRange(double val)
- Specified by:
setMinimumRangein interfacede.gsi.chart.axes.AxisTransform- Overrides:
setMinimumRangein classde.gsi.chart.axes.spi.transforms.AbstractAxisTransform
-
-