blob: 219b46bd82900a2b5ab76e336e35d00ba514f08b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
package com.github.mikephil.charting.interfaces.dataprovider;
import android.graphics.RectF;
import com.github.mikephil.charting.data.ChartData;
import com.github.mikephil.charting.formatter.IValueFormatter;
import com.github.mikephil.charting.utils.MPPointF;
/**
* Interface that provides everything there is to know about the dimensions,
* bounds, and range of the chart.
*
* @author Philipp Jahoda
*/
public interface ChartInterface {
/**
* Returns the minimum x value of the chart, regardless of zoom or translation.
*
* @return
*/
float getXChartMin();
/**
* Returns the maximum x value of the chart, regardless of zoom or translation.
*
* @return
*/
float getXChartMax();
float getXRange();
/**
* Returns the minimum y value of the chart, regardless of zoom or translation.
*
* @return
*/
float getYChartMin();
/**
* Returns the maximum y value of the chart, regardless of zoom or translation.
*
* @return
*/
float getYChartMax();
/**
* Returns the maximum distance in scren dp a touch can be away from an entry to cause it to get highlighted.
*
* @return
*/
float getMaxHighlightDistance();
int getWidth();
int getHeight();
MPPointF getCenterOfView();
MPPointF getCenterOffsets();
RectF getContentRect();
IValueFormatter getDefaultValueFormatter();
ChartData getData();
int getMaxVisibleCount();
}
|