1 package com.github.mikephil.charting.listener; 2 3 import com.github.mikephil.charting.data.Entry; 4 import com.github.mikephil.charting.highlight.Highlight; 5 6 /** 7 * Listener for callbacks when selecting values inside the chart by 8 * touch-gesture. 9 * 10 * @author Philipp Jahoda 11 */ 12 public interface OnChartValueSelectedListener { 13 14 /** 15 * Called when a value has been selected inside the chart. 16 * 17 * @param e The selected Entry 18 * @param h The corresponding highlight object that contains information 19 * about the highlighted position such as dataSetIndex, ... 20 */ onValueSelected(Entry e, Highlight h)21 void onValueSelected(Entry e, Highlight h); 22 23 /** 24 * Called when nothing has been selected or an "un-select" has been made. 25 */ onNothingSelected()26 void onNothingSelected(); 27 } 28