Class PieSegmentSelectionModifier
The PieSegmentSelectionModifier provides the ability to select PieRenderableSeries or DonutRenderableSeries segments via a Chart Modifier.
Inheritance
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class PieSegmentSelectionModifier extends PieChartGestureModifierBase
Constructors
PieSegmentSelectionModifier()
Declaration
public PieSegmentSelectionModifier()
Methods
deselectAll()
Deselects all selected IPieSegment's in each IPieRenderableSeries instance.
Declaration
protected void deselectAll()
getSelectedSegmentStyle()
Gets a IStyle for the selected IPieSegment.
Declaration
public final renderableSeries.IStyle getSelectedSegmentStyle()
Returns
Type | Description |
---|---|
renderableSeries.IStyle | The IStyle for the selected IPieSegment. |
isHitPointValid(renderableSeries.hitTest.PieHitTestInfo hitTestInfo)
When overridden in derived classes, indicates whether PieHitTestInfo result of hit-test is valid
Declaration
protected boolean isHitPointValid(renderableSeries.hitTest.PieHitTestInfo hitTestInfo)
Parameters
Type | Name | Description |
---|---|---|
renderableSeries.hitTest.PieHitTestInfo | hitTestInfo | The PieHitTestInfo instance which will be checked. |
Returns
Type | Description |
---|---|
boolean | True if the associated instance of the PieHitTestInfo is valid, else - false. |
onLongPress(MotionEvent e)
Declaration
public void onLongPress(MotionEvent e)
Parameters
Type | Name | Description |
---|---|---|
android.view.MotionEvent | e |
Overrides
onSelectedSegmentsCollectionChanged(CollectionChangedEventArgs<renderableSeries.IPieSegment> args)
Called when selected segments collection changes.
Declaration
public void onSelectedSegmentsCollectionChanged(CollectionChangedEventArgs<renderableSeries.IPieSegment> args)
Parameters
Type | Name | Description |
---|---|---|
CollectionChangedEventArgs<IPieSegment> | args |
Overrides
onSingleTapConfirmed(MotionEvent e)
Declaration
public boolean onSingleTapConfirmed(MotionEvent e)
Parameters
Type | Name | Description |
---|---|---|
android.view.MotionEvent | e |
Returns
Type | Description |
---|---|
boolean |
Overrides
setSelectedSegmentStyle(renderableSeries.IStyle selectedSegmentStyle)
Sets a IStyle for the selected IPieSegment.
Declaration
public final void setSelectedSegmentStyle(renderableSeries.IStyle selectedSegmentStyle)
Parameters
Type | Name | Description |
---|---|---|
renderableSeries.IStyle | selectedSegmentStyle | The new IStyle for selected series. |
tryPerformSelection(PointF point)
Try to perform selection at specified coordinates
Declaration
protected void tryPerformSelection(PointF point)
Parameters
Type | Name | Description |
---|---|---|
android.graphics.PointF | point | The coordinates of point to hit test |
trySetStyle(renderableSeries.IPieSegment segment)
Tries to set PieSegmentSelectionModifier#getSelectedSegmentStyle on the passed in IPieSegment instance.
Declaration
protected void trySetStyle(renderableSeries.IPieSegment segment)
Parameters
Type | Name | Description |
---|---|---|
renderableSeries.IPieSegment | segment | The IPieSegment instance to set style on. |