public class DefaultFormatter extends AbstractFormatter
schmittTriggerThresholdProperty, tickUnitSupplierProperty| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SMALL_AXIS |
protected NumberFormatterImpl |
myFormatter |
protected int |
oldRangeIndex |
protected int |
rangeIndex |
labelCache, localSchmidtTriggerThreshold, majorTickMarksCopy, rangeMax, rangeMin, schmittTriggerThreshold, unitScaling| Constructor and Description |
|---|
DefaultFormatter()
Construct a DefaultFormatter for the given NumberAxis
|
DefaultFormatter(Axis axis)
Construct a DefaultFormatter for the given NumberAxis
|
DefaultFormatter(Axis axis,
String prefix,
String suffix)
Construct a DefaultFormatter for the given NumberAxis with a prefix and/or suffix.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
fromString(String string)
Converts the string provided into a Number defined by the this converter.
|
protected void |
rangeUpdated() |
String |
toString(Number object)
Converts the object provided into its string form.
|
getLogRange, getRange, getTickUnitSupplier, schmittTriggerThresholdProperty, setTickUnitSupplier, tickUnitSupplierProperty, updateFormatterpublic static final int DEFAULT_SMALL_AXIS
protected NumberFormatterImpl myFormatter
protected int rangeIndex
protected int oldRangeIndex
public DefaultFormatter()
public DefaultFormatter(Axis axis)
axis - The axis to format tick marks forpublic DefaultFormatter(Axis axis, String prefix, String suffix)
axis - The axis to format tick marks forprefix - The prefix to append to the start of formatted number, can be null if not neededsuffix - The suffix to append to the end of formatted number, can be null if not neededpublic Number fromString(String string)
fromString in interface AxisLabelFormatterfromString in class StringConverter<Number>string - the string to be converted back into a numberStringConverter.toString(T)protected void rangeUpdated()
rangeUpdated in class AbstractFormatterpublic String toString(Number object)
toString in interface AxisLabelFormattertoString in class StringConverter<Number>object - the number to be convertedStringConverter.toString(T)Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.