public abstract class AbstractFormatter extends StringConverter<Number> implements AxisLabelFormatter
| Type | Property and Description |
|---|---|
DoubleProperty |
schmittTriggerThreshold
sets the min/max threshold when to change from one formatter domain to the other
|
ObjectProperty<TickUnitSupplier> |
tickUnitSupplier
Strategy to compute major tick unit when auto-range is on or when axis bounds change.
|
| Modifier and Type | Field and Description |
|---|---|
protected FormatterLabelCache |
labelCache |
protected double |
localSchmidtTriggerThreshold |
protected List<Double> |
majorTickMarksCopy |
protected double |
rangeMax |
protected double |
rangeMin |
protected DoubleProperty |
schmittTriggerThreshold |
protected double |
unitScaling |
| Constructor and Description |
|---|
AbstractFormatter() |
AbstractFormatter(Axis axis)
Construct a DefaultFormatter for the given NumberAxis
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
getLogRange() |
protected double |
getRange() |
TickUnitSupplier |
getTickUnitSupplier()
Returns the value of the
tickUnitSupplierProperty(). |
protected abstract void |
rangeUpdated() |
DoubleProperty |
schmittTriggerThresholdProperty()
sets the min/max threshold when to change from one formatter domain to the other
|
void |
setTickUnitSupplier(TickUnitSupplier supplier)
Sets the value of the
tickUnitSupplierProperty(). |
ObjectProperty<TickUnitSupplier> |
tickUnitSupplierProperty()
Strategy to compute major tick unit when auto-range is on or when axis bounds change.
|
void |
updateFormatter(List<Double> newMajorTickMarks,
double unitScaling)
Called just before new TickMarks are computed
|
fromString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromString, toStringpublic DoubleProperty schmittTriggerThresholdProperty
public ObjectProperty<TickUnitSupplier> tickUnitSupplierProperty
DefaultTickUnitSupplier.
See TickUnitSupplier for more information about the expected behaviour of the strategy.
tickUnitSupplierProperty in interface AxisLabelFormattergetTickUnitSupplier(),
setTickUnitSupplier(TickUnitSupplier)protected FormatterLabelCache labelCache
protected double unitScaling
protected double rangeMin
protected double rangeMax
protected double localSchmidtTriggerThreshold
protected DoubleProperty schmittTriggerThreshold
public AbstractFormatter()
public AbstractFormatter(Axis axis)
axis - The axis to format tick marks forprotected double getLogRange()
protected double getRange()
public TickUnitSupplier getTickUnitSupplier()
tickUnitSupplierProperty().getTickUnitSupplier in interface AxisLabelFormatterprotected abstract void rangeUpdated()
public DoubleProperty schmittTriggerThresholdProperty()
public void setTickUnitSupplier(TickUnitSupplier supplier)
tickUnitSupplierProperty().setTickUnitSupplier in interface AxisLabelFormattersupplier - the tick unit supplier. If null, the default one will be usedpublic ObjectProperty<TickUnitSupplier> tickUnitSupplierProperty()
DefaultTickUnitSupplier.
See TickUnitSupplier for more information about the expected behaviour of the strategy.
tickUnitSupplierProperty in interface AxisLabelFormattergetTickUnitSupplier(),
setTickUnitSupplier(TickUnitSupplier)public void updateFormatter(List<Double> newMajorTickMarks, double unitScaling)
AxisLabelFormatterupdateFormatter in interface AxisLabelFormatternewMajorTickMarks - for which the labels should be computedunitScaling - scaling applied to the raw data set unitsCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.