public abstract class PieChartTooltipModifierBase extends PieChartMasterSlaveTouchModifierBase
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
.Modifier and Type | Field and Description |
---|---|
protected com.scichart.core.framework.SmartPropertyBoolean |
showTooltipProperty |
protected com.scichart.core.framework.SmartProperty<SourceMode> |
sourceModeProperty |
protected PieChartTooltipBehaviorBase<?> |
tooltipBehavior |
services
Modifier | Constructor and Description |
---|---|
protected |
PieChartTooltipModifierBase(PieChartTooltipBehaviorBase<?> tooltipBehavior)
Creates a new instance of the
PieChartTooltipModifierBase class. |
Modifier and Type | Method and Description |
---|---|
void |
attachTo(com.scichart.core.IServiceContainer services) |
protected void |
clearAll()
When overridden in a derived class, this method should clear all markers and tooltips from the
SciPieChartSurface.chartModifierSurface . |
void |
detach() |
protected com.scichart.core.observable.ObservableCollection<IPieRenderableSeries> |
getObservableSeries()
|
boolean |
getShowTooltip()
Gets a value indicating whether to show tooltip or not.
|
SourceMode |
getSourceMode()
Gets the
SourceMode type of series on which interaction is performed. |
protected void |
handleMasterTouchDownEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Master
ChartModifierBase MotionEvent.ACTION_DOWN |
protected void |
handleMasterTouchMoveEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Master
ChartModifierBase MotionEvent.ACTION_MOVE |
protected void |
handleMasterTouchUpEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Master
ChartModifierBase MotionEvent.ACTION_UP |
protected void |
handleSlaveTouchDownEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Slave
ChartModifierBase MotionEvent.ACTION_DOWN |
protected void |
handleSlaveTouchMoveEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Slave
ChartModifierBase MotionEvent.ACTION_MOVE |
protected void |
handleSlaveTouchUpEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Slave
ChartModifierBase MotionEvent.ACTION_UP |
void |
onRenderableSeriesDrasticallyChanged()
Called when RenderableSeries collection drastically changed
|
void |
setShowTooltip(boolean showTooltip)
Sets a value indicating whether to show tooltip or not.
|
void |
setSourceMode(SourceMode sourceMode)
Sets the
SourceMode type of series on which interaction is performed. |
isEnabledAt, onTouchDown, onTouchMove, onTouchUp, updateCurrentPoint
onTouch, onTouchCancel
getContext, getModifierSurface, getParentSurface, getPointRelativeTo, getRenderableSeries, onParentSurfaceResized, onPieRenderSurfaceRendered, onRenderableSeriesCollectionChanged, onSegmentCollectionDrasticallyChanged, onSegmentsCollectionChanged, onSelectedSegmentsCollectionChanged, onSelectedSeriesCollectionChanged
applyThemeProvider, checkPointerCounter, getEventsGroupTag, getIsEnabled, getReceiveHandledEvents, getServices, isAttached, onGenericMotion, onIsEnabledChanged, setEventsGroupTag, setIsEnabled, setReceiveHandledEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventsGroupTag, getIsEnabled, setIsEnabled
getName, getReceiveHandledEvents, onGenericMotion
applyThemeProvider
protected final com.scichart.core.framework.SmartProperty<SourceMode> sourceModeProperty
protected final com.scichart.core.framework.SmartPropertyBoolean showTooltipProperty
protected final PieChartTooltipBehaviorBase<?> tooltipBehavior
protected PieChartTooltipModifierBase(PieChartTooltipBehaviorBase<?> tooltipBehavior)
PieChartTooltipModifierBase
class.tooltipBehavior
- The PieChartTooltipBehaviorBase
which will be associated with this modifier.public final SourceMode getSourceMode()
SourceMode
type of series on which interaction is performed.SourceMode
type of series.public final void setSourceMode(SourceMode sourceMode)
SourceMode
type of series on which interaction is performed.sourceMode
- The new SourceMode
type of series on which interaction is performed.public final boolean getShowTooltip()
public final void setShowTooltip(boolean showTooltip)
showTooltip
- Value which indicates whether show tooltip or not.public void onRenderableSeriesDrasticallyChanged()
onRenderableSeriesDrasticallyChanged
in interface IRenderableSeriesChangeListener
onRenderableSeriesDrasticallyChanged
in class PieChartModifierBase
protected com.scichart.core.observable.ObservableCollection<IPieRenderableSeries> getObservableSeries()
ObservableCollection
of the IPieRenderableSeries
from the parent SciPieChartSurface
.public void attachTo(com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
attachTo
in class PieChartModifierBase
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
detach
in class PieChartModifierBase
protected void handleMasterTouchDownEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_DOWN
handleMasterTouchDownEvent
in class PieChartMasterSlaveTouchModifierBase
point
- The current touch pointprotected void handleMasterTouchMoveEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_MOVE
handleMasterTouchMoveEvent
in class PieChartMasterSlaveTouchModifierBase
point
- The current touch pointprotected void handleMasterTouchUpEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_UP
handleMasterTouchUpEvent
in class PieChartMasterSlaveTouchModifierBase
point
- The current touch pointprotected void handleSlaveTouchUpEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_UP
handleSlaveTouchUpEvent
in class PieChartMasterSlaveTouchModifierBase
point
- The current touch pointprotected void handleSlaveTouchMoveEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_MOVE
handleSlaveTouchMoveEvent
in class PieChartMasterSlaveTouchModifierBase
point
- The current touch pointprotected void handleSlaveTouchDownEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_DOWN
handleSlaveTouchDownEvent
in class PieChartMasterSlaveTouchModifierBase
point
- The current touch pointprotected void clearAll()
SciPieChartSurface.chartModifierSurface
.clearAll
in class PieChartMasterSlaveTouchModifierBase