Search in sources :

Example 11 with SelectedValue

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();
    }
}
Also used : SliceValue(lecho.lib.hellocharts.model.SliceValue) SelectedValue(lecho.lib.hellocharts.model.SelectedValue)

Aggregations

SelectedValue (lecho.lib.hellocharts.model.SelectedValue)11 SubcolumnValue (lecho.lib.hellocharts.model.SubcolumnValue)5 View (android.view.View)4 TextView (android.widget.TextView)4 ArrayList (java.util.ArrayList)4 SliceValue (lecho.lib.hellocharts.model.SliceValue)4 PieChartView (lecho.lib.hellocharts.view.PieChartView)4 MaterialIconView (net.steamcrafted.materialiconlib.MaterialIconView)4 FragmentActivity (android.support.v4.app.FragmentActivity)3 RecyclerView (android.support.v7.widget.RecyclerView)3 InjectView (butterknife.InjectView)3 Map (java.util.Map)3 TreeMap (java.util.TreeMap)3 Axis (lecho.lib.hellocharts.model.Axis)3 AxisValue (lecho.lib.hellocharts.model.AxisValue)3 Column (lecho.lib.hellocharts.model.Column)3 ColumnChartData (lecho.lib.hellocharts.model.ColumnChartData)3 PieChartData (lecho.lib.hellocharts.model.PieChartData)3 RecordCheckDialogFragment (com.nightonke.saver.fragment.RecordCheckDialogFragment)2 CoCoinRecord (com.nightonke.saver.model.CoCoinRecord)2