T
- The type of axispublic class FormatterLabelProviderBase<T extends IAxis> extends LabelProviderBase<T>
ILabelFormatter
to format its labelsaxis
Modifier | Constructor and Description |
---|---|
protected |
FormatterLabelProviderBase(java.lang.Class<T> axisType,
ILabelFormatter<T> labelFormatter)
Creates a new instance of
FormatterLabelProviderBase class |
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
formatCursorLabel(java.lang.Comparable dataValue)
Formats a label for the cursor, from the specified data-value passed in
|
java.lang.CharSequence |
formatLabel(java.lang.Comparable dataValue)
Formats a label for the axis from the specified data-value passed in
|
void |
update()
Updates provider with new data
|
getFormattedTickLabels, updateFormattedTickLabelsFor
attachTo, detach, isAttached
protected FormatterLabelProviderBase(java.lang.Class<T> axisType, ILabelFormatter<T> labelFormatter)
FormatterLabelProviderBase
classaxisType
- The supported axis typelabelFormatter
- The ILabelFormatter
used by this label providerpublic void update()
public java.lang.CharSequence formatLabel(java.lang.Comparable dataValue)
dataValue
- The data value to formatpublic java.lang.CharSequence formatCursorLabel(java.lang.Comparable dataValue)
dataValue
- The data value to format