Class PieChartTooltipBehavior<T>
Provides a tooltip behavior for IPieChartModifier implementors.
Inheritance
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class PieChartTooltipBehavior<T> extends PieChartTooltipBehaviorBase<T> implements TooltipLayoutHelper.SeriesTooltipCallback<renderableSeriesIPieSeriesTooltip>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
PieChartTooltipBehavior(Class<T> modifierType, int tooltipContainerLayoutResId)
Creates a new instance of PieChartTooltipBehavior class
Declaration
public PieChartTooltipBehavior(Class<T> modifierType, int tooltipContainerLayoutResId)
Parameters
| Type | Name | Description |
|---|---|---|
| Class<T> | modifierType | The type of the associated IPieChartModifier |
| 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 PieChartTooltipBehaviorBase#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(renderableSeriesIPieSeriesTooltip seriesTooltip, float x, float y)
Declaration
public boolean tryUpdateTooltip(renderableSeriesIPieSeriesTooltip seriesTooltip, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| renderableSeriesIPieSeriesTooltip | seriesTooltip | |
| float | x | |
| float | y |
Returns
| Type | Description |
|---|---|
| boolean |