Interface ILabelProvider
Interface to define a LabelProvider. The LabelFormatter may be set by calling IAxisCore#setLabelProvider(ILabelProvider), allowing programmatic overriding of axis labels.
Namespace:
Assembly: .dll
Syntax
public interface ILabelProvider extends IAxisProviderBase, labelProviders.IDoubleLabelFormatter
Methods
formatCursorLabel(Comparable dataValue)
Formats a label for the cursor, from the specified data-value passed in
Declaration
public abstract CharSequence formatCursorLabel(Comparable dataValue)
Parameters
Type | Name | Description |
---|---|---|
Comparable | dataValue | The data value to format |
Returns
Type | Description |
---|---|
CharSequence | The formatted value |
formatLabel(Comparable dataValue)
Formats a label for the axis from the specified data-value passed in
Declaration
public abstract CharSequence formatLabel(Comparable dataValue)
Parameters
Type | Name | Description |
---|---|---|
Comparable | dataValue | The data value to format |
Returns
Type | Description |
---|---|
CharSequence | The formatted value |
getFormattedTickLabels()
Gets the list of formatted axis tick labels for currently attached axis
Declaration
public abstract List<CharSequence> getFormattedTickLabels()
Returns
Type | Description |
---|---|
List<CharSequence> | The list of formatted axis tick labels |