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