public abstract class TooltipModifierBase extends MasterSlaveTouchModifierBase
TooltipModifierBase
is part of the ChartModifier API, which factors out handling of Axis and Chart Label templates,
and provides a touch-over templated tooltip, provided by the output of the Hit-Test operation on a IRenderableSeries
.Modifier and Type | Field and Description |
---|---|
protected com.scichart.core.framework.SmartPropertyBoolean |
showTooltipProperty |
protected com.scichart.core.framework.SmartProperty<SourceMode> |
sourceModeProperty |
protected TooltipBehaviorBase<?> |
tooltipBehavior |
protected com.scichart.core.framework.SmartPropertyBoolean |
useInterpolationProperty |
Modifier | Constructor and Description |
---|---|
protected |
TooltipModifierBase(TooltipBehaviorBase<?> tooltipBehavior)
Creates a new instance of the
TooltipModifierBase class. |
Modifier and Type | Method and Description |
---|---|
void |
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
|
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
SciChartSurface.chartModifierSurface . |
void |
detach() |
protected com.scichart.core.observable.ObservableCollection<IRenderableSeries> |
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. |
boolean |
getUseInterpolation()
Gets whether the interaction should use interpolation.
|
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(ISciChartSurface surface)
Called when parent
SciChartSurface.getRenderableSeries() 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. |
void |
setUseInterpolation(boolean useInterpolation)
Sets whether the interaction should use interpolation.
|
isEnabledAt, onTouchDown, onTouchMove, onTouchUp, updateCurrentPoint
onTouch, onTouchCancel
getContext, getEventsGroupTag, getIsEnabled, getMasterModifier, getModifierSurface, getParentSurface, getPointRelativeTo, getReceiveHandledEvents, getRenderableSeries, getRenderableSeriesArea, getServices, getXAxes, getXAxis, getXAxis, getYAxes, getYAxis, getYAxis, isAttached, isWithinSourceBounds, onAnnotationsCollectionChanged, onAnnotationsDrasticallyChanged, onGenericMotion, onIsEnabledChanged, onParentSurfaceResized, onRenderableSeriesCollectionChanged, onRenderSurfaceRendered, onSelectedSeriesCollectionChanged, onXAxesCollectionChanged, onXAxesDrasticallyChanged, onYAxesCollectionChanged, onYAxesDrasticallyChanged, setEventsGroupTag, setIsEnabled, setReceiveHandledEvents
protected final com.scichart.core.framework.SmartPropertyBoolean useInterpolationProperty
protected final com.scichart.core.framework.SmartProperty<SourceMode> sourceModeProperty
protected final com.scichart.core.framework.SmartPropertyBoolean showTooltipProperty
protected final TooltipBehaviorBase<?> tooltipBehavior
protected TooltipModifierBase(TooltipBehaviorBase<?> tooltipBehavior)
TooltipModifierBase
class.tooltipBehavior
- The TooltipBehavior
which will be associated with this modifier.public final boolean getUseInterpolation()
public final void setUseInterpolation(boolean useInterpolation)
useInterpolation
- Value which indicates whether the interaction should use interpolation.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(ISciChartSurface surface)
SciChartSurface.getRenderableSeries()
collection drastically changedonRenderableSeriesDrasticallyChanged
in interface ISciChartSurfaceChangeListener
onRenderableSeriesDrasticallyChanged
in class ChartModifierBase
surface
- The parent surfaceprotected com.scichart.core.observable.ObservableCollection<IRenderableSeries> getObservableSeries()
ObservableCollection
of the IRenderableSeries
from the parent SciChartSurface
.public void attachTo(@NonNull com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
attachTo
in class ChartModifierBase
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
detach
in class ChartModifierBase
public void applyThemeProvider(IThemeProvider themeProvider)
applyThemeProvider
in interface IThemeable
applyThemeProvider
in class ChartModifierBase
themeProvider
- The IThemeProvider
instance which provides new theme for current instanceprotected void handleMasterTouchDownEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_DOWN
handleMasterTouchDownEvent
in class MasterSlaveTouchModifierBase
point
- The current touch pointprotected void handleMasterTouchMoveEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_MOVE
handleMasterTouchMoveEvent
in class MasterSlaveTouchModifierBase
point
- The current touch pointprotected void handleMasterTouchUpEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_UP
handleMasterTouchUpEvent
in class MasterSlaveTouchModifierBase
point
- The current touch pointprotected void handleSlaveTouchUpEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_UP
handleSlaveTouchUpEvent
in class MasterSlaveTouchModifierBase
point
- The current touch pointprotected void handleSlaveTouchMoveEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_MOVE
handleSlaveTouchMoveEvent
in class MasterSlaveTouchModifierBase
point
- The current touch pointprotected void handleSlaveTouchDownEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_DOWN
handleSlaveTouchDownEvent
in class MasterSlaveTouchModifierBase
point
- The current touch pointprotected void clearAll()
SciChartSurface.chartModifierSurface
.clearAll
in class MasterSlaveTouchModifierBase