Package de.gsi.chart.axes.spi.format
Class DefaultLogFormatter
- java.lang.Object
-
- javafx.util.StringConverter<java.lang.Number>
-
- de.gsi.chart.axes.spi.format.AbstractFormatter
-
- de.gsi.chart.axes.spi.format.DefaultLogFormatter
-
- All Implemented Interfaces:
AxisLabelFormatter
public class DefaultLogFormatter extends AbstractFormatter
- Author:
- rstein
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_SMALL_LOG_AXIS-
Fields inherited from class de.gsi.chart.axes.spi.format.AbstractFormatter
labelCache, localSchmidtTriggerThreshold, majorTickMarksCopy, rangeMax, rangeMin, schmittTriggerThreshold, unitScaling
-
-
Constructor Summary
Constructors Constructor Description DefaultLogFormatter()Construct a DefaultFormatter for the given NumberAxisDefaultLogFormatter(Axis axis)Construct a DefaultFormatter for the given NumberAxis
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.NumberfromString(java.lang.String string)Converts the string provided into an object defined by the specific converter.protected doublegetLogRange()protected voidrangeUpdated()java.lang.StringtoString(java.lang.Number object)Converts the object provided into its string form.-
Methods inherited from class de.gsi.chart.axes.spi.format.AbstractFormatter
getRange, getTickUnitSupplier, schmittTriggerThresholdProperty, setTickUnitSupplier, tickUnitSupplierProperty, updateFormatter
-
-
-
-
Field Detail
-
DEFAULT_SMALL_LOG_AXIS
public static final int DEFAULT_SMALL_LOG_AXIS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultLogFormatter
public DefaultLogFormatter(Axis axis)
Construct a DefaultFormatter for the given NumberAxis- Parameters:
axis- The axis to format tick marks for
-
DefaultLogFormatter
public DefaultLogFormatter()
Construct a DefaultFormatter for the given NumberAxis
-
-
Method Detail
-
rangeUpdated
protected void rangeUpdated()
- Specified by:
rangeUpdatedin classAbstractFormatter
-
getLogRange
protected double getLogRange()
- Overrides:
getLogRangein classAbstractFormatter
-
toString
public java.lang.String toString(java.lang.Number object)
Description copied from interface:AxisLabelFormatterConverts the object provided into its string form. Format of the returned string is defined by the specific converter.- Specified by:
toStringin interfaceAxisLabelFormatter- Specified by:
toStringin classjavafx.util.StringConverter<java.lang.Number>- Parameters:
object- the number to be converted- Returns:
- a string representation of the object passed in.
-
fromString
public java.lang.Number fromString(java.lang.String string)
Description copied from interface:AxisLabelFormatterConverts the string provided into an object defined by the specific converter. Format of the string and type of the resulting object is defined by the specific converter.- Specified by:
fromStringin interfaceAxisLabelFormatter- Specified by:
fromStringin classjavafx.util.StringConverter<java.lang.Number>- Parameters:
string- the string to be converted back into a number- Returns:
- an object representation of the string passed in.
-
-