public class PieSegmentSelectionModifier extends PieChartGestureModifierBase
PieSegmentSelectionModifier
provides the ability to select PieRenderableSeries
or DonutRenderableSeries
segments via a Chart Modifier.services
Constructor and Description |
---|
PieSegmentSelectionModifier() |
Modifier and Type | Method and Description |
---|---|
protected void |
deselectAll()
Deselects all selected
IPieSegment 's in each IPieRenderableSeries instance. |
IStyle |
getSelectedSegmentStyle()
Gets a
IStyle for the selected IPieSegment . |
protected boolean |
isHitPointValid(PieHitTestInfo hitTestInfo)
When overridden in derived classes, indicates whether
PieHitTestInfo result of hit-test is valid |
void |
onLongPress(android.view.MotionEvent e) |
void |
onSelectedSegmentsCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IPieSegment> args)
Called when selected segments collection changes.
|
boolean |
onSingleTapConfirmed(android.view.MotionEvent e) |
void |
setSelectedSegmentStyle(IStyle selectedSegmentStyle)
Sets a
IStyle for the selected IPieSegment . |
protected void |
tryPerformSelection(android.graphics.PointF point)
Try to perform selection at specified coordinates
|
protected void |
trySetStyle(IPieSegment segment)
Tries to set
getSelectedSegmentStyle() on the passed in IPieSegment instance. |
attachTo, detach, getOriginalTouchEvent, onCancel, onDoubleTap, onDoubleTapEvent, onDown, onFling, onScroll, onShowPress, onSingleTapUp, onTouch, onUp
getContext, getModifierSurface, getParentSurface, getPointRelativeTo, getRenderableSeries, onParentSurfaceResized, onPieRenderSurfaceRendered, onRenderableSeriesCollectionChanged, onRenderableSeriesDrasticallyChanged, onSegmentCollectionDrasticallyChanged, onSegmentsCollectionChanged, onSelectedSeriesCollectionChanged
applyThemeProvider, checkPointerCounter, getEventsGroupTag, getIsEnabled, getReceiveHandledEvents, getServices, isAttached, onGenericMotion, onIsEnabledChanged, setEventsGroupTag, setIsEnabled, setReceiveHandledEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventsGroupTag, getIsEnabled, setIsEnabled
getName, getReceiveHandledEvents, onGenericMotion
applyThemeProvider
public final IStyle getSelectedSegmentStyle()
IStyle
for the selected IPieSegment
.IStyle
for the selected IPieSegment
.public final void setSelectedSegmentStyle(IStyle selectedSegmentStyle)
IStyle
for the selected IPieSegment
.selectedSegmentStyle
- The new IStyle
for selected series.protected void trySetStyle(IPieSegment segment)
getSelectedSegmentStyle()
on the passed in IPieSegment
instance.segment
- The IPieSegment
instance to set style on.public boolean onSingleTapConfirmed(android.view.MotionEvent e)
onSingleTapConfirmed
in interface android.view.GestureDetector.OnDoubleTapListener
onSingleTapConfirmed
in class PieChartGestureModifierBase
protected void tryPerformSelection(android.graphics.PointF point)
point
- The coordinates of point to hit testprotected boolean isHitPointValid(PieHitTestInfo hitTestInfo)
PieHitTestInfo
result of hit-test is validhitTestInfo
- The PieHitTestInfo
instance which will be checked.PieHitTestInfo
is valid, else - false.public void onLongPress(android.view.MotionEvent e)
onLongPress
in interface android.view.GestureDetector.OnGestureListener
onLongPress
in class PieChartGestureModifierBase
protected void deselectAll()
IPieSegment
's in each IPieRenderableSeries
instance.public void onSelectedSegmentsCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IPieSegment> args)
onSelectedSegmentsCollectionChanged
in interface ISciPieChartSurfaceChangeListener
onSelectedSegmentsCollectionChanged
in class PieChartModifierBase