T
- The modifier to which this behavior will be attached.public abstract class VerticalSliceBehaviorBase<T extends IChartModifier> extends TooltipBehaviorBase<T> implements com.scichart.core.common.Func1<IRenderableSeries,ISeriesTooltip>
IChartModifier
implementors.Modifier and Type | Class and Description |
---|---|
static class |
VerticalSliceBehaviorBase.SliceLayout
A default layout which is used to place
Slice |
static class |
VerticalSliceBehaviorBase.SliceLayoutParams
Default layout params for
VerticalSliceBehaviorBase.SliceLayout |
Modifier and Type | Field and Description |
---|---|
com.scichart.core.observable.ObservableCollection<Slice> |
slices |
CURSOR_XY_OFFSET
lastUpdatePoint, modifier, modifierType, parentSurface, services
Modifier | Constructor and Description |
---|---|
protected |
VerticalSliceBehaviorBase(java.lang.Class<T> modifierType)
Creates a new instance of the
VerticalSliceBehaviorBase class. |
Modifier and Type | Method and Description |
---|---|
void |
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
|
void |
attachTo(com.scichart.core.IServiceContainer services) |
void |
clear()
Clears
ModifierBehavior.lastUpdatePoint x and y to NaN values. |
protected VerticalSliceBehaviorBase.SliceLayout |
createSliceLayout(android.content.Context context)
Create new layout which will be used for layout of
slices collection |
void |
detach() |
protected boolean |
isHitPointValid(HitTestInfo hitTestInfo)
Gets the value indicating whether the
HitTestInfo instance is valid. |
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. |
protected void |
onObservableSeriesDrasticallyChanged()
Called when the
TooltipBehaviorBase.observableSeries has drastically changed. |
void |
onUpdate(android.graphics.PointF point,
boolean isMaster)
Called when associated
IChartModifier instance handle touch move event. |
protected void |
removeSliceFromLayout(Slice slice,
VerticalSliceBehaviorBase.SliceLayout sliceLayout)
Removes slice from specified
VerticalSliceBehaviorBase.SliceLayout |
protected void |
tryUpdateSliceTooltips(Slice slice,
float x,
float y)
Tries to update all of the
slice instance tooltips. |
func, getObservableSeries, getSourceMode, getUseInterpolation, isSeriesValid, setObservableSeries, setSourceMode, setUseInterpolation
attachTo, getIsEnabled, isAttached, isLastPointValid, onIsEnabledChanged, resetLastUpdatePoint, setIsEnabled
public final com.scichart.core.observable.ObservableCollection<Slice> slices
protected VerticalSliceBehaviorBase(java.lang.Class<T> modifierType)
VerticalSliceBehaviorBase
class.modifierType
- The type of the associated IChartModifier
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 instancepublic 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.protected void tryUpdateSliceTooltips(Slice slice, float x, float y)
slice
instance tooltips.slice
- The Slice
to updatex
- The x value of the point where slice should be updated.y
- The x value of the point where slice should be updated.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.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 void removeSliceFromLayout(Slice slice, VerticalSliceBehaviorBase.SliceLayout sliceLayout)
VerticalSliceBehaviorBase.SliceLayout
slice
- The slice to removesliceLayout
- The parent layout to remove fromprotected void onObservableSeriesDrasticallyChanged()
TooltipBehaviorBase.observableSeries
has drastically changed.onObservableSeriesDrasticallyChanged
in class TooltipBehaviorBase<T extends IChartModifier>
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
detach
in class ModifierBehavior<T extends IChartModifier>
public void attachTo(com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
attachTo
in class ModifierBehavior<T extends IChartModifier>
protected VerticalSliceBehaviorBase.SliceLayout createSliceLayout(android.content.Context context)
slices
collectioncontext
- The Context
to useprotected boolean isHitPointValid(HitTestInfo hitTestInfo)
HitTestInfo
instance is valid.isHitPointValid
in class TooltipBehaviorBase<T extends IChartModifier>
hitTestInfo
- The HitTestInfo
instance to test.