Class TooltipBehavior<T>
Provides a tooltip behavior for IChartModifier implementors.
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class TooltipBehavior<T> extends TooltipBehaviorBase<T> implements TooltipLayoutHelper.SeriesTooltipCallback<renderableSeriesISeriesTooltip>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
TooltipBehavior(Class<T> modifierType, int tooltipContainerLayoutResId)
Creates a new instance of TooltipBehaviorBase class
Declaration
public TooltipBehavior(Class<T> modifierType, int tooltipContainerLayoutResId)
Parameters
| Type | Name | Description |
|---|---|---|
| Class<T> | modifierType | The type of the associated IChartModifier |
| int | tooltipContainerLayoutResId | The layout resource id which will be used to inflate tooltip container. |
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
detach()
Declaration
public void detach()
Overrides
getTooltipPosition()
Gets the position of the tooltip related to the current touch point.
Declaration
public TooltipPosition getTooltipPosition()
Returns
| Type | Description |
|---|---|
| TooltipPosition | The TooltipPosition related to the current touch point. |
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
setTooltipPosition(TooltipPosition tooltipPosition)
Sets the position of the tooltip related to the current touch point.
Declaration
public void setTooltipPosition(TooltipPosition tooltipPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| TooltipPosition | tooltipPosition | The TooltipPosition related to the current touch point. |
tryUpdateTooltip(renderableSeriesISeriesTooltip seriesTooltip, float x, float y)
Declaration
public boolean tryUpdateTooltip(renderableSeriesISeriesTooltip seriesTooltip, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| renderableSeriesISeriesTooltip | seriesTooltip | |
| float | x | |
| float | y |
Returns
| Type | Description |
|---|---|
| boolean |
updateHitTestInfo(renderableSeries.hitTest.HitTestInfo hitTestInfo, renderableSeries.IRenderableSeries rs, float x, float y)
Declaration
protected void updateHitTestInfo(renderableSeries.hitTest.HitTestInfo hitTestInfo, renderableSeries.IRenderableSeries rs, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| renderableSeries.hitTest.HitTestInfo | hitTestInfo | |
| renderableSeries.IRenderableSeries | rs | |
| float | x | |
| float | y |