public abstract class TooltipModifierWithAxisLabelsBase extends TooltipModifierBase
TooltipModifierWithAxisLabelsBase
provedes the same functionality as TooltipBehaviorBase
plus it provides axis labels for all associated axes.showTooltipProperty, sourceModeProperty, tooltipBehavior, useInterpolationProperty
Modifier | Constructor and Description |
---|---|
protected |
TooltipModifierWithAxisLabelsBase(TooltipBehaviorBase<?> tooltipBehavior,
AxisTooltipsBehaviorBase<?> axisTooltipsBehavior)
Creates a new instance of the
TooltipModifierWithAxisLabelsBase 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() |
boolean |
getShowAxisLabels()
Gets a value which indicate whether show labels on axes or not.
|
protected com.scichart.core.observable.ObservableCollection<IAxis> |
getXAxesWithOverlays()
Gets the
ObservableCollection of the X-Axis from the parent SciChartSurface . |
protected com.scichart.core.observable.ObservableCollection<IAxis> |
getYAxesWithOverlays()
Gets the
ObservableCollection of the Y-Axis from the parent SciChartSurface . |
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 |
onXAxesDrasticallyChanged(ISciChartSurface surface)
Called when parent
SciChartSurface.getXAxes() collection drastically changed |
void |
onYAxesDrasticallyChanged(ISciChartSurface surface)
Called when parent
SciChartSurface.getYAxes() collection drastically changed |
void |
setShowAxisLabels(boolean showAxisLabels)
Sets a value which indicate whether show labels on axes or not.
|
getObservableSeries, getShowTooltip, getSourceMode, getUseInterpolation, onRenderableSeriesDrasticallyChanged, setShowTooltip, setSourceMode, setUseInterpolation
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, onYAxesCollectionChanged, setEventsGroupTag, setIsEnabled, setReceiveHandledEvents
protected TooltipModifierWithAxisLabelsBase(TooltipBehaviorBase<?> tooltipBehavior, AxisTooltipsBehaviorBase<?> axisTooltipsBehavior)
TooltipModifierWithAxisLabelsBase
class.tooltipBehavior
- The TooltipBehavior
which will be associated with this modifier.axisTooltipsBehavior
- The AxisTooltipsBehaviorBase
which will be associated with this modifier.public final boolean getShowAxisLabels()
public final void setShowAxisLabels(boolean showAxisLabels)
showAxisLabels
- Value which indicate whether show labels on axes or not.public void onXAxesDrasticallyChanged(ISciChartSurface surface)
SciChartSurface.getXAxes()
collection drastically changedonXAxesDrasticallyChanged
in interface ISciChartSurfaceChangeListener
onXAxesDrasticallyChanged
in class ChartModifierBase
surface
- The parent surfaceprotected com.scichart.core.observable.ObservableCollection<IAxis> getXAxesWithOverlays()
ObservableCollection
of the X-Axis from the parent SciChartSurface
.ObservableCollection
of the X-Axis from the parent SciChartSurface
.public void onYAxesDrasticallyChanged(ISciChartSurface surface)
SciChartSurface.getYAxes()
collection drastically changedonYAxesDrasticallyChanged
in interface ISciChartSurfaceChangeListener
onYAxesDrasticallyChanged
in class ChartModifierBase
surface
- The parent surfaceprotected com.scichart.core.observable.ObservableCollection<IAxis> getYAxesWithOverlays()
ObservableCollection
of the Y-Axis from the parent SciChartSurface
.ObservableCollection
of the Y-Axis from the parent SciChartSurface
.public void applyThemeProvider(IThemeProvider themeProvider)
applyThemeProvider
in interface IThemeable
applyThemeProvider
in class TooltipModifierBase
themeProvider
- The IThemeProvider
instance which provides new theme for current instancepublic void attachTo(@NonNull com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
attachTo
in class TooltipModifierBase
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
detach
in class TooltipModifierBase
protected void handleMasterTouchDownEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_DOWN
handleMasterTouchDownEvent
in class TooltipModifierBase
point
- The current touch pointprotected void handleMasterTouchMoveEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_MOVE
handleMasterTouchMoveEvent
in class TooltipModifierBase
point
- The current touch pointprotected void handleMasterTouchUpEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_UP
handleMasterTouchUpEvent
in class TooltipModifierBase
point
- The current touch pointprotected void handleSlaveTouchUpEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_UP
handleSlaveTouchUpEvent
in class TooltipModifierBase
point
- The current touch pointprotected void handleSlaveTouchMoveEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_MOVE
handleSlaveTouchMoveEvent
in class TooltipModifierBase
point
- The current touch pointprotected void handleSlaveTouchDownEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_DOWN
handleSlaveTouchDownEvent
in class TooltipModifierBase
point
- The current touch pointprotected void clearAll()
SciChartSurface.chartModifierSurface
.clearAll
in class TooltipModifierBase