Class VerticalSliceBehaviorBase<T>
Defines a base class with vertical slice tooltip behavior for IChartModifier implementors.
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public abstract class VerticalSliceBehaviorBase<T> extends TooltipBehaviorBase<T> implements Func1<renderableSeries.IRenderableSeries,renderableSeriesISeriesTooltip>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
VerticalSliceBehaviorBase(Class<T> modifierType)
Creates a new instance of the VerticalSliceBehaviorBase class.
Declaration
protected VerticalSliceBehaviorBase(Class<T> modifierType)
Parameters
| Type | Name | Description |
|---|---|---|
| Class<T> | modifierType | The type of the associated IChartModifier |
Fields
slices
Declaration
public final ObservableCollection<Slice> slices
Field Value
| Type | Description |
|---|---|
| ObservableCollection<Slice> |
Methods
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
Declaration
public void applyThemeProvider(IThemeProvider themeProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IThemeProvider | themeProvider |
Overrides
attachTo(IServiceContainer services)
Declaration
public void attachTo(IServiceContainer services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceContainer | services |
Overrides
clear()
Clears ModifierBehavior#lastUpdatePoint x and y to NaN values.
Declaration
public void clear()
Overrides
createSliceLayout(Context context)
Create new layout which will be used for layout of slices collection
Declaration
protected VerticalSliceBehaviorBase.SliceLayout createSliceLayout(Context context)
Parameters
| Type | Name | Description |
|---|---|---|
| android.content.Context | context | The Context to use |
Returns
| Type | Description |
|---|---|
| VerticalSliceBehaviorBase.SliceLayout | The layout to use |
detach()
Declaration
public void detach()
Overrides
isHitPointValid(renderableSeries.hitTest.HitTestInfo hitTestInfo)
Gets the value indicating whether the HitTestInfo instance is valid.
Declaration
protected boolean isHitPointValid(renderableSeries.hitTest.HitTestInfo hitTestInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| renderableSeries.hitTest.HitTestInfo | hitTestInfo |
Returns
| Type | Description |
|---|---|
| boolean |
Overrides
onBeginUpdate(PointF point, boolean isMaster)
Called when associated IChartModifier instance handle touch down event.
Declaration
public void onBeginUpdate(PointF point, boolean isMaster)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point | |
| boolean | isMaster |
Overrides
onEndUpdate(PointF point, boolean isMaster)
Called when associated IChartModifier instance handle touch up event.
Declaration
public void onEndUpdate(PointF point, boolean isMaster)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point | |
| boolean | isMaster |
Overrides
onObservableSeriesDrasticallyChanged()
Called when the TooltipBehaviorBase#observableSeries has drastically changed.
Declaration
protected void onObservableSeriesDrasticallyChanged()
Overrides
onUpdate(PointF point, boolean isMaster)
Called when associated IChartModifier instance handle touch move event.
Declaration
public void onUpdate(PointF point, boolean isMaster)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point | |
| boolean | isMaster |
Overrides
removeSliceFromLayout(Slice slice, VerticalSliceBehaviorBase.SliceLayout sliceLayout)
Removes slice from specified SliceLayout
Declaration
protected void removeSliceFromLayout(Slice slice, VerticalSliceBehaviorBase.SliceLayout sliceLayout)
Parameters
| Type | Name | Description |
|---|---|---|
| Slice | slice | The slice to remove |
| VerticalSliceBehaviorBase.SliceLayout | sliceLayout | The parent layout to remove from |
tryUpdateSliceTooltips(Slice slice, float x, float y)
Tries to update all of the slice instance tooltips.
Declaration
protected void tryUpdateSliceTooltips(Slice slice, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| Slice | slice | The Slice to update |
| float | x | The x value of the point where slice should be updated. |
| float | y | The x value of the point where slice should be updated. |