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 double
DB10_LOGARITHM_BASE
static double
DB20_LOGARITHM_BASE
static double
DEFAULT_LOG_MIN_VALUE
static double
DEFAULT_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 double
backward(double val)
double
forward(double val)
double
getLogarithmBase()
Returns the value of thelogarithmBaseProperty()
.double
getRoundedMaximumRange(double max)
double
getRoundedMinimumRange(double min)
protected double
log(double value)
javafx.beans.property.DoubleProperty
logarithmBaseProperty()
Base of the logarithm used by the axis, must be grater than 1.protected double
pow(double value)
void
setLogarithmBase(double value)
Sets value of thelogarithmBaseProperty()
.void
setMaximumRange(double val)
void
setMinimumRange(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:
setMaximumRange
in interfacede.gsi.chart.axes.AxisTransform
- Overrides:
setMaximumRange
in classde.gsi.chart.axes.spi.transforms.AbstractAxisTransform
-
setMinimumRange
public void setMinimumRange(double val)
- Specified by:
setMinimumRange
in interfacede.gsi.chart.axes.AxisTransform
- Overrides:
setMinimumRange
in classde.gsi.chart.axes.spi.transforms.AbstractAxisTransform
-
-