Skip to content

Commit 0e8956f

Browse files
committed
Kotlin OnDrawListener
1 parent fc7f3d1 commit 0e8956f

File tree

2 files changed

+33
-38
lines changed

2 files changed

+33
-38
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/listener/OnDrawListener.java

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
interface OnDrawListener {
10+
/**
11+
* Called whenever an entry is added with the finger. Note this is also called for entries that are generated by the
12+
* library, when the touch gesture is too fast and skips points.
13+
*
14+
* @param entry
15+
* the last drawn entry
16+
*/
17+
fun onEntryAdded(entry: Entry)
18+
19+
/**
20+
* Called whenever an entry is moved by the user after beeing highlighted
21+
*
22+
* @param entry
23+
*/
24+
fun onEntryMoved(entry: Entry)
25+
26+
/**
27+
* Called when drawing finger is lifted and the draw is finished.
28+
*
29+
* @param dataSet
30+
* the last drawn DataSet
31+
*/
32+
fun onDrawFinished(dataSet: DataSet<*>)
33+
}

0 commit comments

Comments
 (0)