Class AxisTooltipsBehaviorBase<T>
Defines a base class with axis tooltips behavior for IChartModifier implementors.
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public abstract class AxisTooltipsBehaviorBase<T> extends ModifierBehavior<T> implements Func1<IAxis,IAxisTooltip>
Type Parameters
Name | Description |
---|---|
T |
Constructors
AxisTooltipsBehaviorBase(Class<T> modifierType)
Creates a new instance of the AxisTooltipsBehaviorBase class.
Declaration
protected AxisTooltipsBehaviorBase(Class<T> modifierType)
Parameters
Type | Name | Description |
---|---|---|
Class<T> | modifierType | Type of the modifier to which this modifier will be attached. |
Methods
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
Declaration
public void applyThemeProvider(IThemeProvider themeProvider)
Parameters
Type | Name | Description |
---|---|---|
IThemeProvider | themeProvider |
Overrides
applyThemeProvider(IThemeProvider themeProvider, IAxisTooltip tooltip)
Applies specified theme to the passed in IAxisTooltip instance.
Declaration
protected void applyThemeProvider(IThemeProvider themeProvider, IAxisTooltip tooltip)
Parameters
Type | Name | Description |
---|---|---|
IThemeProvider | themeProvider | The IThemeProvider instance which provides new theme for current instance |
IAxisTooltip | tooltip | The IAxisTooltip instance to apply theme on. |
clear()
Clears ModifierBehavior#lastUpdatePoint x and y to NaN values.
Declaration
public void clear()
Overrides
func(IAxis arg)
Declaration
public IAxisTooltip func(IAxis arg)
Parameters
Type | Name | Description |
---|---|---|
IAxis | arg |
Returns
Type | Description |
---|---|
IAxisTooltip |
getObservableXAxes()
Gets the ObservableCollection of XAxes which will take part in interaction.
Declaration
public final ObservableCollection<IAxis> getObservableXAxes()
Returns
Type | Description |
---|---|
ObservableCollection<IAxis> | The ObservableCollection of XAxes |
getObservableYAxes()
Gets the ObservableCollection of YAxes which will take part in interaction.
Declaration
public final ObservableCollection<IAxis> getObservableYAxes()
Returns
Type | Description |
---|---|
ObservableCollection<IAxis> | The ObservableCollection of YAxes. |
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
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
setObservableXAxes(ObservableCollection<IAxis> observableXAxes)
Sets the ObservableCollection of XAxes which will take part in interaction.
Declaration
public final void setObservableXAxes(ObservableCollection<IAxis> observableXAxes)
Parameters
Type | Name | Description |
---|---|---|
ObservableCollection<IAxis> | observableXAxes | The ObservableCollection of XAxes. |
setObservableYAxes(ObservableCollection<IAxis> observableYAxes)
Sets the ObservableCollection of YAxes which will take part in interaction.
Declaration
public final void setObservableYAxes(ObservableCollection<IAxis> observableYAxes)
Parameters
Type | Name | Description |
---|---|---|
ObservableCollection<IAxis> | observableYAxes | The ObservableCollection of YAxes. |
tryAddTooltip(IAxisTooltip tooltip)
Tries to add the IAxisTooltip instance to the associated axis IAxisModifierSurface instance.
Declaration
protected void tryAddTooltip(IAxisTooltip tooltip)
Parameters
Type | Name | Description |
---|---|---|
IAxisTooltip | tooltip | The IAxisTooltip instance to add. |
tryRemoveTooltip(IAxisTooltip tooltip)
Tries to remove the IAxisTooltip instance from the associated axis IAxisModifierSurface instance.
Declaration
protected void tryRemoveTooltip(IAxisTooltip tooltip)
Parameters
Type | Name | Description |
---|---|---|
IAxisTooltip | tooltip | The IAxisTooltip instance to remove. |
updateXAxisTooltip(IAxisTooltip tooltip, PointF point)
Updates all of the tooltips associated with X Axes
Declaration
protected abstract void updateXAxisTooltip(IAxisTooltip tooltip, PointF point)
Parameters
Type | Name | Description |
---|---|---|
IAxisTooltip | tooltip | The IAxisTooltip instance to update. |
android.graphics.PointF | point | The PointF instance with x and y values to update the IAxisTooltip instance passed in. |
updateYAxisTooltip(IAxisTooltip tooltip, PointF point)
Updates all of the tooltips associated with Y Axes
Declaration
protected abstract void updateYAxisTooltip(IAxisTooltip tooltip, PointF point)
Parameters
Type | Name | Description |
---|---|---|
IAxisTooltip | tooltip | The IAxisTooltip instance to update. |
android.graphics.PointF | point | The PointF instance with x and y values to update the IAxisTooltip instance passed in. |