protected void drawLinearFill(Canvas c,ILineDataSet dataSet,Transformer trans,XBounds bounds){
  final Path filled=mGenerateFilledPathBuffer;
  final int startingIndex=bounds.minIndex;
  final int endingIndex=bounds.indexRange + bounds.minIndex;
  final int indexInterval=128;
  int currentStartIndex=0;
  int currentEndIndex=indexInterval;
  int iterations=0;
  do {
    currentStartIndex=startingIndex + (iterations * indexInterval);
    currentEndIndex=currentStartIndex + indexInterval;
    currentEndIndex=currentEndIndex > endingIndex ? endingIndex : currentEndIndex;
    if (currentStartIndex <= currentEndIndex) {
      generateFilledPath(dataSet,currentStartIndex,currentEndIndex,filled);
      trans.pathValueToPixel(filled);
      final Drawable drawable=dataSet.getFillDrawable();
      if (drawable != null) {
        drawFilledPath(c,filled,drawable);
      }
 else {
        drawFilledPath(c,filled,dataSet.getFillColor(),dataSet.getFillAlpha());
      }
    }
    iterations++;
  }
 while (currentStartIndex <= currentEndIndex);
}

protected void drawLinearFill ( Canvas c , ILineDataSet dataSet , Transformer trans , XBounds bounds ) { final Path filled = mGenerateFilledPathBuffer ; final int startingIndex = bounds . minIndex ; final int endingIndex = bounds . indexRange + bounds . minIndex ; final int indexInterval = 128 ; int currentStartIndex = 0 ; int currentEndIndex = indexInterval ; int iterations = 0 ; do { currentStartIndex = startingIndex + ( iterations * indexInterval ) ; currentEndIndex = currentStartIndex + indexInterval ; currentEndIndex = currentEndIndex > endingIndex ? endingIndex : currentEndIndex ; if ( currentStartIndex <= currentEndIndex ) { generateFilledPath ( dataSet , currentStartIndex , currentEndIndex , filled ) ; trans . pathValueToPixel ( filled ) ; final Drawable drawable = dataSet . getFillDrawable ( ) ; if ( drawable != null ) { drawFilledPath ( c , filled , drawable ) ; } else { drawFilledPath ( c , filled , dataSet . getFillColor ( ) , dataSet . getFillAlpha ( ) ) ; } } iterations ++ ; } while ( currentStartIndex <= currentEndIndex ) ; }
draws a filled linear path on the canvas .
