Class SeriesValueModifier.DefaultSeriesValueMarkerAnnotationHelper<TAnnotation>
Defines default series value marker annotation helper implementation
Inheritance
Inherited Members
Namespace:
Assembly: .dll
Syntax
public static class SeriesValueModifier.DefaultSeriesValueMarkerAnnotationHelper<TAnnotation>
Type Parameters
Name | Description |
---|---|
TAnnotation |
Constructors
DefaultSeriesValueMarkerAnnotationHelper(renderableSeries.IRenderableSeries renderableSeries, Predicate<renderableSeries.IRenderableSeries> isValidRenderableSeriesPredicate)
Declaration
public DefaultSeriesValueMarkerAnnotationHelper(renderableSeries.IRenderableSeries renderableSeries, Predicate<renderableSeries.IRenderableSeries> isValidRenderableSeriesPredicate)
Parameters
Type | Name | Description |
---|---|---|
renderableSeries.IRenderableSeries | renderableSeries | |
Predicate<IRenderableSeries> | isValidRenderableSeriesPredicate |
Fields
renderableSeries
The IRenderableSeries instance used by this helper to display latest series value
Declaration
public final renderableSeries.IRenderableSeries renderableSeries
Field Value
Type | Description |
---|---|
renderableSeries.IRenderableSeries |
Methods
canUpdateAnnotationFor(renderableSeries.IRenderableSeries renderableSeries, dataSeries.IDataSeries<?,?> dataSeries)
Checks if annotation should be updated with latest values from renderable series
Declaration
protected boolean canUpdateAnnotationFor(renderableSeries.IRenderableSeries renderableSeries, dataSeries.IDataSeries<?,?> dataSeries)
Parameters
Type | Name | Description |
---|---|---|
renderableSeries.IRenderableSeries | renderableSeries | The target renderable series |
IDataSeries<?,?> | dataSeries | The target data series |
Returns
Type | Description |
---|---|
boolean | True if axis marker should be updated |
formatAxisMarkerAnnotation(IAxis axis, Comparable<?> value)
Formats specified value using specified axis
Declaration
protected CharSequence formatAxisMarkerAnnotation(IAxis axis, Comparable<?> value)
Parameters
Type | Name | Description |
---|---|---|
IAxis | axis | The axis to use to format value |
Comparable<?> | value | The value to format |
Returns
Type | Description |
---|---|
CharSequence | Formatted value |
tryUpdateAnnotation(TAnnotation annotation)
Try to update specified annotation using information from #renderableSeries
Declaration
public final void tryUpdateAnnotation(TAnnotation annotation)
Parameters
Type | Name | Description |
---|---|---|
TAnnotation | annotation | The annotation to update |
tryUpdateAnnotation(TAnnotation annotation, renderableSeries.IRenderableSeries renderableSeries, dataSeries.IDataSeries<?,?> dataSeries)
Updates annotation with latest values provided by renderable series
Declaration
protected boolean tryUpdateAnnotation(TAnnotation annotation, renderableSeries.IRenderableSeries renderableSeries, dataSeries.IDataSeries<?,?> dataSeries)
Parameters
Type | Name | Description |
---|---|---|
TAnnotation | annotation | The annotation to update |
renderableSeries.IRenderableSeries | renderableSeries | The source renderable series |
IDataSeries<?,?> | dataSeries | The source data series |
Returns
Type | Description |
---|---|
boolean | True if update was successful, otherwise false |
updateAnnotation(TAnnotation annotation, Comparable<?> lastValue, int lastColor)
Update annotation with specified values
Declaration
protected void updateAnnotation(TAnnotation annotation, Comparable<?> lastValue, int lastColor)
Parameters
Type | Name | Description |
---|---|---|
TAnnotation | annotation | The annotation to update |
Comparable<?> | lastValue | The last value of renderable series |
int | lastColor | The color of last point renderable series |