public class SeriesSelectionModifier extends GestureModifierBase
SeriesSelectionModifier
provides the ability to select series via a Chart Modifierservices
Constructor and Description |
---|
SeriesSelectionModifier() |
Modifier and Type | Method and Description |
---|---|
protected void |
deselectAll()
Deselects all selected
IRenderableSeries instances. |
IStyle |
getSelectedSeriesStyle()
Gets a
IStyle for the selected IRenderableSeries . |
protected boolean |
isHitPointValid(HitTestInfo hitTestInfo)
When overridden in derived classes, indicates whether
HitTestInfo result is valid |
void |
onLongPress(android.view.MotionEvent e) |
void |
onSelectedSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<? extends IRenderableSeriesCore> args)
Called when SelectedSeries collection changes
|
boolean |
onSingleTapConfirmed(android.view.MotionEvent e) |
protected void |
performSelection(IRenderableSeries renderableSeries)
Performs selection on specified
IRenderableSeries instance |
void |
setSelectedSeriesStyle(IStyle selectedSeriesStyle)
Sets a
IStyle for the selected IRenderableSeries . |
protected void |
tryPerformSelection(android.graphics.PointF point)
Try to perform selection at specified coordinates
|
protected void |
trySetStyle(IRenderableSeries renderableSeries)
Tries to set
selectedSeriesStyle on the passed in IRenderableSeries instance. |
attachTo, detach, getOriginalTouchEvent, onCancel, onDoubleTap, onDoubleTapEvent, onDown, onFling, onScroll, onShowPress, onSingleTapUp, onTouch, onUp
getContext, getMasterModifier, getModifierSurface, getParentSurface, getPointRelativeTo, getRenderableSeries, getRenderableSeriesArea, getXAxes, getXAxis, getXAxis, getYAxes, getYAxis, getYAxis, isWithinSourceBounds, onAnnotationsCollectionChanged, onAnnotationsDrasticallyChanged, onParentSurfaceResized, onRenderSurfaceRendered, onXAxesCollectionChanged, onXAxesDrasticallyChanged, onYAxesCollectionChanged, onYAxesDrasticallyChanged
applyThemeProvider, checkPointerCounter, getEventsGroupTag, getIsEnabled, getReceiveHandledEvents, getServices, isAttached, onGenericMotion, onIsEnabledChanged, onRenderableSeriesCollectionChanged, onRenderableSeriesDrasticallyChanged, setEventsGroupTag, setIsEnabled, setReceiveHandledEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventsGroupTag, getIsEnabled, setIsEnabled
getName, getReceiveHandledEvents, onGenericMotion
applyThemeProvider
onRenderableSeriesCollectionChanged, onRenderableSeriesDrasticallyChanged
public final IStyle getSelectedSeriesStyle()
IStyle
for the selected IRenderableSeries
.IStyle
for the selected IRenderableSeries
.public final void setSelectedSeriesStyle(IStyle selectedSeriesStyle)
IStyle
for the selected IRenderableSeries
.selectedSeriesStyle
- The new IStyle
for selected series.protected void trySetStyle(IRenderableSeries renderableSeries)
selectedSeriesStyle
on the passed in IRenderableSeries
instance.renderableSeries
- The IRenderableSeries
instance to set style on.public boolean onSingleTapConfirmed(android.view.MotionEvent e)
onSingleTapConfirmed
in interface android.view.GestureDetector.OnDoubleTapListener
onSingleTapConfirmed
in class GestureModifierBase
protected void tryPerformSelection(android.graphics.PointF point)
point
- The coordinates of point to hit testprotected boolean isHitPointValid(HitTestInfo hitTestInfo)
HitTestInfo
result is validhitTestInfo
- The HitTestInfo
instance which will be checked.HitTestInfo
is valid, else - false.protected void performSelection(IRenderableSeries renderableSeries)
IRenderableSeries
instancerenderableSeries
- The series to perform selection onpublic void onLongPress(android.view.MotionEvent e)
onLongPress
in interface android.view.GestureDetector.OnGestureListener
onLongPress
in class GestureModifierBase
protected void deselectAll()
IRenderableSeries
instances.public void onSelectedSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<? extends IRenderableSeriesCore> args)
onSelectedSeriesCollectionChanged
in interface IRenderableSeriesChangeListener
onSelectedSeriesCollectionChanged
in class ChartModifierCore
args
- The collection changed event args