T
- The modifier to which this behavior will be attached.public abstract class AxisTooltipsBehaviorBase<T extends IChartModifier> extends ModifierBehavior<T> implements com.scichart.core.common.Func1<IAxis,IAxisTooltip>
IChartModifier
implementors.lastUpdatePoint, modifier, modifierType, parentSurface, services
Modifier | Constructor and Description |
---|---|
protected |
AxisTooltipsBehaviorBase(java.lang.Class<T> modifierType)
Creates a new instance of the
AxisTooltipsBehaviorBase class. |
Modifier and Type | Method and Description |
---|---|
void |
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
|
protected void |
applyThemeProvider(IThemeProvider themeProvider,
IAxisTooltip tooltip)
Applies specified theme to the passed in
IAxisTooltip instance. |
void |
clear()
Clears
ModifierBehavior.lastUpdatePoint x and y to NaN values. |
IAxisTooltip |
func(IAxis arg) |
com.scichart.core.observable.ObservableCollection<IAxis> |
getObservableXAxes()
Gets the
ObservableCollection of XAxes which will take part in interaction. |
com.scichart.core.observable.ObservableCollection<IAxis> |
getObservableYAxes()
Gets the
ObservableCollection of YAxes which will take part in interaction. |
void |
onBeginUpdate(android.graphics.PointF point,
boolean isMaster)
Called when associated
IChartModifier instance handle touch down event. |
void |
onEndUpdate(android.graphics.PointF point,
boolean isMaster)
Called when associated
IChartModifier instance handle touch up event. |
void |
onUpdate(android.graphics.PointF point,
boolean isMaster)
Called when associated
IChartModifier instance handle touch move event. |
void |
setObservableXAxes(com.scichart.core.observable.ObservableCollection<IAxis> observableXAxes)
Sets the
ObservableCollection of XAxes which will take part in interaction. |
void |
setObservableYAxes(com.scichart.core.observable.ObservableCollection<IAxis> observableYAxes)
Sets the
ObservableCollection of YAxes which will take part in interaction. |
protected static void |
tryAddTooltip(IAxisTooltip tooltip)
Tries to add the
IAxisTooltip instance to the associated axis IAxisModifierSurface instance. |
protected static void |
tryRemoveTooltip(IAxisTooltip tooltip)
Tries to remove the
IAxisTooltip instance from the associated axis IAxisModifierSurface instance. |
protected abstract void |
updateXAxisTooltip(IAxisTooltip tooltip,
android.graphics.PointF point)
Updates all of the tooltips associated with X Axes
|
protected abstract void |
updateYAxisTooltip(IAxisTooltip tooltip,
android.graphics.PointF point)
Updates all of the tooltips associated with Y Axes
|
attachTo, attachTo, detach, getIsEnabled, isAttached, isLastPointValid, onIsEnabledChanged, resetLastUpdatePoint, setIsEnabled
protected AxisTooltipsBehaviorBase(java.lang.Class<T> modifierType)
AxisTooltipsBehaviorBase
class.modifierType
- Type of the modifier to which this modifier will be attached.public final com.scichart.core.observable.ObservableCollection<IAxis> getObservableXAxes()
ObservableCollection
of XAxes which will take part in interaction.ObservableCollection
of XAxespublic final void setObservableXAxes(com.scichart.core.observable.ObservableCollection<IAxis> observableXAxes)
ObservableCollection
of XAxes which will take part in interaction.observableXAxes
- The ObservableCollection
of XAxes.public final com.scichart.core.observable.ObservableCollection<IAxis> getObservableYAxes()
ObservableCollection
of YAxes which will take part in interaction.ObservableCollection
of YAxes.public final void setObservableYAxes(com.scichart.core.observable.ObservableCollection<IAxis> observableYAxes)
ObservableCollection
of YAxes which will take part in interaction.observableYAxes
- The ObservableCollection
of YAxes.public IAxisTooltip func(IAxis arg)
func
in interface com.scichart.core.common.Func1<IAxis,IAxisTooltip>
public void applyThemeProvider(IThemeProvider themeProvider)
applyThemeProvider
in interface IThemeable
applyThemeProvider
in class ModifierBehavior<T extends IChartModifier>
themeProvider
- The IThemeProvider
instance which provides new theme for current instanceprotected void applyThemeProvider(IThemeProvider themeProvider, IAxisTooltip tooltip)
IAxisTooltip
instance.themeProvider
- The IThemeProvider
instance which provides new theme for current instancetooltip
- The IAxisTooltip
instance to apply theme on.public void onBeginUpdate(android.graphics.PointF point, boolean isMaster)
IChartModifier
instance handle touch down event.onBeginUpdate
in class ModifierBehavior<T extends IChartModifier>
point
- The current touch point.isMaster
- Indicates whether this behavior is called on the master chart.public void onUpdate(android.graphics.PointF point, boolean isMaster)
IChartModifier
instance handle touch move event.onUpdate
in class ModifierBehavior<T extends IChartModifier>
point
- The current touch point.isMaster
- Indicates whether this behavior is called on the master chart.protected abstract void updateXAxisTooltip(IAxisTooltip tooltip, android.graphics.PointF point)
tooltip
- The IAxisTooltip
instance to update.point
- The PointF
instance with x and y values to update the IAxisTooltip
instance passed in.protected abstract void updateYAxisTooltip(IAxisTooltip tooltip, android.graphics.PointF point)
tooltip
- The IAxisTooltip
instance to update.point
- The PointF
instance with x and y values to update the IAxisTooltip
instance passed in.public void onEndUpdate(android.graphics.PointF point, boolean isMaster)
IChartModifier
instance handle touch up event.onEndUpdate
in class ModifierBehavior<T extends IChartModifier>
point
- The current touch point.isMaster
- Indicates whether this behavior is called on the master chart.public void clear()
ModifierBehavior.lastUpdatePoint
x and y to NaN values.clear
in class ModifierBehavior<T extends IChartModifier>
protected static void tryAddTooltip(IAxisTooltip tooltip)
IAxisTooltip
instance to the associated axis IAxisModifierSurface
instance.tooltip
- The IAxisTooltip
instance to add.protected static void tryRemoveTooltip(IAxisTooltip tooltip)
IAxisTooltip
instance from the associated axis IAxisModifierSurface
instance.tooltip
- The IAxisTooltip
instance to remove.