T
- The type of axispublic abstract class NumericLabelFormatterBase<T extends INumericAxis> extends java.lang.Object implements ILabelFormatter<T>
ILabelFormatter
for NumericAxis
and its subclassesModifier | Constructor and Description |
---|---|
protected |
NumericLabelFormatterBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract ILabelFormatter<T> |
createLabelFormatterFor(ScientificNotation scientificNotation)
Creates a
ILabelFormatter for specified ScientificNotation value. |
java.lang.CharSequence |
formatCursorLabel(double dataValue)
Formats a label for the cursor, from the specified data-value passed in
|
java.lang.CharSequence |
formatLabel(double dataValue)
Formats a label for the axis from the specified data-value passed in
|
void |
update(T axis)
Updates this label formatter with values provided by axis
|
public void update(T axis)
update
in interface ILabelFormatter<T extends INumericAxis>
axis
- The current axisprotected abstract ILabelFormatter<T> createLabelFormatterFor(ScientificNotation scientificNotation)
ILabelFormatter
for specified ScientificNotation
value.scientificNotation
- The ScientificNotation
value to create formatter for.ILabelFormatter
which should be used for specified scientificNotation.public java.lang.CharSequence formatLabel(double dataValue)
formatLabel
in interface ILabelFormatter<T extends INumericAxis>
dataValue
- The data value to formatpublic java.lang.CharSequence formatCursorLabel(double dataValue)
formatCursorLabel
in interface ILabelFormatter<T extends INumericAxis>
dataValue
- The data value to format