Class LabelProviderBase<T>
A base class to define a LabelProvider. The LabelProvider may be set by calling IAxisCore#setLabelProvider(ILabelProvider), allowing programmatic overriding of axis labels.
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public abstract class LabelProviderBase<T> extends AxisProviderBase<T> implements labelProviders.ILabelProvider
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
LabelProviderBase(Class<T> axisType)
Creates a new instance of LabelProviderBase class
Declaration
protected LabelProviderBase(Class<T> axisType)
Parameters
| Type | Name | Description |
|---|---|---|
| Class<T> | axisType | The supported axis type |
Methods
getFormattedTickLabels()
Gets the list of formatted axis tick labels for currently attached axis
Declaration
public final List<CharSequence> getFormattedTickLabels()
Returns
| Type | Description |
|---|---|
| List<CharSequence> |
shouldUpdateTickLabels(DoubleValues majorTicks)
Returns whether label provider should be updated
Declaration
protected boolean shouldUpdateTickLabels(DoubleValues majorTicks)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleValues | majorTicks | Major ticks to use for tick labels |
Returns
| Type | Description |
|---|---|
| boolean | If true label provider should be updated, otherwise it should be cleared |
update()
Updates provider with new data
Declaration
public void update()
updateTickLabels(List<CharSequence> formattedTickLabels, DoubleValues majorTicks)
Updates ticks collection according to provided axis ticks
Declaration
protected void updateTickLabels(List<CharSequence> formattedTickLabels, DoubleValues majorTicks)
Parameters
| Type | Name | Description |
|---|---|---|
| List<CharSequence> | formattedTickLabels | The list where formatted ticks should be stored |
| DoubleValues | majorTicks | Major ticks to use for tick labels |