• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.github.mikephil.charting.listener;
2 
3 import com.github.mikephil.charting.data.DataSet;
4 import com.github.mikephil.charting.data.Entry;
5 
6 /**
7  * Listener for callbacks when drawing on the chart.
8  *
9  * @author Philipp
10  *
11  */
12 public interface OnDrawListener {
13 
14 	/**
15 	 * Called whenever an entry is added with the finger. Note this is also called for entries that are generated by the
16 	 * library, when the touch gesture is too fast and skips points.
17 	 *
18 	 * @param entry
19 	 *            the last drawn entry
20 	 */
onEntryAdded(Entry entry)21 	void onEntryAdded(Entry entry);
22 
23 	/**
24 	 * Called whenever an entry is moved by the user after beeing highlighted
25 	 *
26 	 * @param entry
27 	 */
onEntryMoved(Entry entry)28 	void onEntryMoved(Entry entry);
29 
30 	/**
31 	 * Called when drawing finger is lifted and the draw is finished.
32 	 *
33 	 * @param dataSet
34 	 *            the last drawn DataSet
35 	 */
onDrawFinished(DataSet<?> dataSet)36 	void onDrawFinished(DataSet<?> dataSet);
37 
38 }
39