T
- The type of axispublic class FormatterLabelProviderBase<T extends IAxisCore> 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 |
formatCursorLabel(double doubleValue)
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
|
java.lang.CharSequence |
formatLabel(double doubleValue)
Formats a label for the axis from the specified data-value passed in
|
void |
update()
Updates provider with new data
|
protected void |
updateTickLabels(java.util.List<java.lang.CharSequence> formattedTickLabels,
com.scichart.core.model.DoubleValues majorTicks)
Updates ticks collection according to provided axis ticks
|
getFormattedTickLabels, shouldUpdateTickLabels
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()
update
in interface IAxisProviderBase
update
in class LabelProviderBase<T extends IAxisCore>
protected void updateTickLabels(java.util.List<java.lang.CharSequence> formattedTickLabels, com.scichart.core.model.DoubleValues majorTicks)
updateTickLabels
in class LabelProviderBase<T extends IAxisCore>
formattedTickLabels
- The list where formatted ticks should be storedmajorTicks
- Major ticks to use for tick labelspublic final java.lang.CharSequence formatLabel(java.lang.Comparable dataValue)
formatLabel(double)
}dataValue
- The data value to formatpublic java.lang.CharSequence formatLabel(double doubleValue)
doubleValue
- The double representation of data value to formatpublic final java.lang.CharSequence formatCursorLabel(java.lang.Comparable dataValue)
formatCursorLabel(double)
dataValue
- The data value to formatpublic java.lang.CharSequence formatCursorLabel(double doubleValue)
doubleValue
- The double representation of data value to format