public abstract class LabelProviderBase<T extends IAxisCore> extends AxisProviderBase<T> implements ILabelProvider
IAxisCore.setLabelProvider(ILabelProvider)
, allowing
programmatic overriding of axis labels.axis
Modifier | Constructor and Description |
---|---|
protected |
LabelProviderBase(java.lang.Class<T> axisType)
Creates a new instance of
LabelProviderBase class |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.CharSequence> |
getFormattedTickLabels()
Gets the list of formatted axis tick labels for currently attached axis
|
protected boolean |
shouldUpdateTickLabels(com.scichart.core.model.DoubleValues majorTicks)
Returns whether label provider should be updated
|
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
|
attachTo, detach, isAttached
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
formatCursorLabel, formatLabel
protected LabelProviderBase(java.lang.Class<T> axisType)
LabelProviderBase
classaxisType
- The supported axis typepublic final java.util.List<java.lang.CharSequence> getFormattedTickLabels()
getFormattedTickLabels
in interface ILabelProvider
public void update()
update
in interface IAxisProviderBase
protected boolean shouldUpdateTickLabels(com.scichart.core.model.DoubleValues majorTicks)
majorTicks
- Major ticks to use for tick labelsprotected void updateTickLabels(java.util.List<java.lang.CharSequence> formattedTickLabels, com.scichart.core.model.DoubleValues majorTicks)
formattedTickLabels
- The list where formatted ticks should be storedmajorTicks
- Major ticks to use for tick labels