1 package com.github.mikephil.charting.formatter; 2 3 import com.github.mikephil.charting.interfaces.datasets.ILineDataSet; 4 import com.github.mikephil.charting.interfaces.dataprovider.LineDataProvider; 5 6 /** 7 * Interface for providing a custom logic to where the filling line of a LineDataSet 8 * should end. This of course only works if setFillEnabled(...) is set to true. 9 * 10 * @author Philipp Jahoda 11 */ 12 public interface IFillFormatter 13 { 14 15 /** 16 * Returns the vertical (y-axis) position where the filled-line of the 17 * LineDataSet should end. 18 * 19 * @param dataSet the ILineDataSet that is currently drawn 20 * @param dataProvider 21 * @return 22 */ getFillLinePosition(ILineDataSet dataSet, LineDataProvider dataProvider)23 float getFillLinePosition(ILineDataSet dataSet, LineDataProvider dataProvider); 24 } 25