public class TradeChartAxisLabelProvider extends CategoryLabelProviderBase<CategoryDateAxis>
CategoryDateAxis
classaxis
Constructor and Description |
---|
TradeChartAxisLabelProvider()
Creates a new instance of
TradeChartAxisLabelProvider class |
TradeChartAxisLabelProvider(ILabelFormatter<CategoryDateAxis> labelFormatter)
Creates a new instance of
TradeChartAxisLabelProvider class |
Modifier and Type | Method and Description |
---|---|
protected <T extends java.lang.Comparable<T>> |
transformDataToIndexInternal(double dataValue,
com.scichart.data.numerics.SearchMode mode,
com.scichart.data.model.ISmartList<T> xValues,
com.scichart.data.numerics.math.IMath<T> xMath)
Finds index of the data-value in the point-series using corresponding
SearchMode |
protected <T extends java.lang.Comparable<T>> |
transformIndexToDataInternal(int index,
com.scichart.data.model.ISmartList<T> xValues,
com.scichart.data.numerics.math.IMath<T> xMath)
Finds the dataValue based on it's index in the corresponding xValues collection.
|
protected <TValue extends java.lang.Comparable<TValue>> |
updateBarTimeFrame(CategoryDateAxis axis,
com.scichart.data.model.ISmartList<TValue> baseXValues,
com.scichart.data.numerics.math.IMath<TValue> math)
Updates this label provider with new data
|
formatCursorLabel, formatLabel, getBarTimeFrame, transformDataToIndex, transformDataToIndex, transformIndexToData, update
formatCursorLabel, formatLabel, updateTickLabels
getFormattedTickLabels, shouldUpdateTickLabels
attachTo, detach, isAttached
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
formatCursorLabel, formatLabel, getFormattedTickLabels
public TradeChartAxisLabelProvider()
TradeChartAxisLabelProvider
classpublic TradeChartAxisLabelProvider(ILabelFormatter<CategoryDateAxis> labelFormatter)
TradeChartAxisLabelProvider
classlabelFormatter
- The ILabelFormatter
used by this label providerprotected <TValue extends java.lang.Comparable<TValue>> double updateBarTimeFrame(CategoryDateAxis axis, com.scichart.data.model.ISmartList<TValue> baseXValues, com.scichart.data.numerics.math.IMath<TValue> math)
updateBarTimeFrame
in class CategoryLabelProviderBase<CategoryDateAxis>
TValue
- The type of data inside xValues ISmartList
axis
- The parent axisbaseXValues
- The xValues used by this label providermath
- The xMath used by this label providerprotected <T extends java.lang.Comparable<T>> double transformIndexToDataInternal(int index, com.scichart.data.model.ISmartList<T> xValues, com.scichart.data.numerics.math.IMath<T> xMath)
transformIndexToDataInternal
in class CategoryLabelProviderBase<CategoryDateAxis>
T
- The type of data inside xValues ISmartList
index
- Index of the sought dataValue.xValues
- The x values collection.xMath
- The IMath
associated with TDataValue type.protected <T extends java.lang.Comparable<T>> int transformDataToIndexInternal(double dataValue, com.scichart.data.numerics.SearchMode mode, com.scichart.data.model.ISmartList<T> xValues, com.scichart.data.numerics.math.IMath<T> xMath)
SearchMode
transformDataToIndexInternal
in class CategoryLabelProviderBase<CategoryDateAxis>
T
- The type of data inside xValues ISmartList
dataValue
- Value to which this transformation will be applied.mode
- The SearchMode
, which will be used to search in ISmartList
xValues
- The x values collection.xMath
- The IMath
associated with TDataValue type.