Class PieChartTooltipModifierBase
The PieChartTooltipModifierBase is part of the ChartModifier API, which factors out handling of Chart Label templates, and provides a touch-over templated tooltip, provided by the output of the Hit-Test operation on a IPieRenderableSeries.
Inheritance
Inherited Members
Namespace:
Assembly: .dll
Syntax
public abstract class PieChartTooltipModifierBase extends PieChartMasterSlaveTouchModifierBase
Constructors
PieChartTooltipModifierBase(PieChartTooltipBehaviorBase<?> tooltipBehavior)
Creates a new instance of the PieChartTooltipModifierBase class.
Declaration
protected PieChartTooltipModifierBase(PieChartTooltipBehaviorBase<?> tooltipBehavior)
Parameters
| Type | Name | Description |
|---|---|---|
| PieChartTooltipBehaviorBase<?> | tooltipBehavior | The PieChartTooltipBehaviorBase which will be associated with this modifier. |
Fields
showTooltipProperty
Declaration
protected final SmartPropertyBoolean showTooltipProperty
Field Value
| Type | Description |
|---|---|
| SmartPropertyBoolean |
sourceModeProperty
Declaration
protected final SmartProperty<SourceMode> sourceModeProperty
Field Value
| Type | Description |
|---|---|
| SmartProperty<SourceMode> |
tooltipBehavior
Declaration
protected final PieChartTooltipBehaviorBase<?> tooltipBehavior
Field Value
| Type | Description |
|---|---|
| PieChartTooltipBehaviorBase<?> |
Methods
attachTo(IServiceContainer services)
Declaration
public void attachTo(IServiceContainer services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceContainer | services |
Overrides
clearAll()
When overridden in a derived class, this method should clear all markers and tooltips from the SciPieChartSurface#getModifierSurface().
Declaration
protected void clearAll()
Overrides
detach()
Declaration
public void detach()
Overrides
getObservableSeries()
Gets the ObservableCollection of the IPieRenderableSeries from the parent SciPieChartSurface
Declaration
protected ObservableCollection<renderableSeries.IPieRenderableSeries> getObservableSeries()
Returns
| Type | Description |
|---|---|
| ObservableCollection<IPieRenderableSeries> | The ObservableCollection of the IPieRenderableSeries from the parent SciPieChartSurface. |
getShowTooltip()
Gets a value indicating whether to show tooltip or not.
Declaration
public final boolean getShowTooltip()
Returns
| Type | Description |
|---|---|
| boolean | True if modifier should show tooltip, else false. |
getSourceMode()
Gets the SourceMode type of series on which interaction is performed.
Declaration
public final SourceMode getSourceMode()
Returns
| Type | Description |
|---|---|
| SourceMode | The SourceMode type of series. |
handleMasterTouchDownEvent(PointF point)
When overridden in a derived class, called to handle the Master ChartModifierBase MotionEvent#ACTION_DOWN
Declaration
protected void handleMasterTouchDownEvent(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point |
Overrides
handleMasterTouchMoveEvent(PointF point)
When overridden in a derived class, called to handle the Master ChartModifierBase MotionEvent#ACTION_MOVE
Declaration
protected void handleMasterTouchMoveEvent(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point |
Overrides
handleMasterTouchUpEvent(PointF point)
When overridden in a derived class, called to handle the Master ChartModifierBase MotionEvent#ACTION_UP
Declaration
protected void handleMasterTouchUpEvent(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point |
Overrides
handleSlaveTouchDownEvent(PointF point)
When overridden in a derived class, called to handle the Slave ChartModifierBase MotionEvent#ACTION_DOWN
Declaration
protected void handleSlaveTouchDownEvent(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point |
Overrides
handleSlaveTouchMoveEvent(PointF point)
When overridden in a derived class, called to handle the Slave ChartModifierBase MotionEvent#ACTION_MOVE
Declaration
protected void handleSlaveTouchMoveEvent(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point |
Overrides
handleSlaveTouchUpEvent(PointF point)
When overridden in a derived class, called to handle the Slave ChartModifierBase MotionEvent#ACTION_UP
Declaration
protected void handleSlaveTouchUpEvent(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.PointF | point |
Overrides
onRenderableSeriesDrasticallyChanged()
Called when RenderableSeries collection drastically changed
Declaration
public void onRenderableSeriesDrasticallyChanged()
Overrides
setShowTooltip(boolean showTooltip)
Sets a value indicating whether to show tooltip or not.
Declaration
public final void setShowTooltip(boolean showTooltip)
Parameters
| Type | Name | Description |
|---|---|---|
| boolean | showTooltip | Value which indicates whether show tooltip or not. |
setSourceMode(SourceMode sourceMode)
Sets the SourceMode type of series on which interaction is performed.
Declaration
public final void setSourceMode(SourceMode sourceMode)
Parameters
| Type | Name | Description |
|---|---|---|
| SourceMode | sourceMode | The new SourceMode type of series on which interaction is performed. |