use of lecho.lib.hellocharts.model.SelectedValue in project hellocharts-android by lecho.
the class PieChartView method callTouchListener.
@Override
public void callTouchListener() {
SelectedValue selectedValue = chartRenderer.getSelectedValue();
if (selectedValue.isSet()) {
SliceValue sliceValue = data.getValues().get(selectedValue.getFirstIndex());
onValueTouchListener.onValueSelected(selectedValue.getFirstIndex(), sliceValue);
} else {
onValueTouchListener.onValueDeselected();
}
}
Aggregations