public class ChartSelectionBehavior extends ChartBehavior
Constructor and Description |
---|
ChartSelectionBehavior() |
Modifier and Type | Method and Description |
---|---|
ChartSelectionMode |
getDataPointsSelectionMode()
Gets the data point selection mode.
|
ChartSelectionMode |
getSeriesSelectionMode()
Gets a value that determines the current series selection mode.
|
boolean |
onTap(MotionEvent e)
Invoked when a tap gesture occurs on the owner chart.
|
ChartSelectionContext |
select(LegendSelectable selectable)
Selects the provided
LegendSelectable implementation. |
ChartSelectionContext |
selectDataPoint(DataPoint point)
Selects the provided
DataPoint . |
Iterable<DataPoint> |
selectedDataPoints()
Gets the selected data points.
|
Iterable<ChartSeries> |
selectedSeries()
Gets the selected series.
|
ChartSelectionContext |
selectSeries(ChartSeries series)
Selects the provided
ChartSeries instance. |
void |
setDataPointsSelectionMode(ChartSelectionMode newValue)
Sets the data point selection mode.
|
void |
setSelectionChangeListener(ChartSelectionChangeListener listener)
Sets a selection change listener that will be notified when the selection changes.
|
void |
setSeriesSelectionMode(ChartSelectionMode newValue)
Sets the series selection mode.
|
attach, chart, detach, onDoubleTap, onDown, onDrag, onHold, onPinch, onPinchComplete, onUp, reset
getValue, resetPropertyValue, setValue, setValue
public ChartSelectionMode getSeriesSelectionMode()
public void setSeriesSelectionMode(ChartSelectionMode newValue)
public ChartSelectionMode getDataPointsSelectionMode()
public void setDataPointsSelectionMode(ChartSelectionMode newValue)
public void setSelectionChangeListener(ChartSelectionChangeListener listener)
public Iterable<ChartSeries> selectedSeries()
public boolean onTap(MotionEvent e)
ChartBehavior
onTap
in class ChartBehavior
e
- An object that contains gesture information.public ChartSelectionContext selectSeries(ChartSeries series)
ChartSeries
instance. Depending on the setSeriesSelectionMode(ChartSelectionMode)
setting selection may or may not occur.series
- the ChartSeries
instance to be selected.ChartSelectionContext
class containing information about
the selection state.public ChartSelectionContext select(LegendSelectable selectable)
LegendSelectable
implementation.selectable
- the LegendSelectable
to be selected.ChartSelectionContext
class representing the
selection context.public ChartSelectionContext selectDataPoint(DataPoint point)
DataPoint
. Depending on the setDataPointsSelectionMode(ChartSelectionMode)
selection may or may not occur.point
- the DataPoint
instance to select.ChartSelectionContext
containing information about the selection
state.