protected void drawPoints(Canvas canvas,Paint paint,List<Float> pointsList,XYSeriesRenderer seriesRenderer,float yAxisValue,int seriesIndex,int startIndex){
  if (isRenderPoints(seriesRenderer)) {
    ScatterChart pointsChart=getPointsChart();
    if (pointsChart != null) {
      int length=(int)mPathMeasure.getLength();
      int pointsLength=pointsList.size();
      float[] coords=new float[2];
      for (int i=0; i < length; i++) {
        mPathMeasure.getPosTan(i,coords,null);
        double prevDiff=Double.MAX_VALUE;
        boolean ok=true;
        for (int j=0; j < pointsLength && ok; j+=2) {
          double diff=Math.abs(pointsList.get(j) - coords[0]);
          if (diff < 1) {
            pointsList.set(j + 1,coords[1]);
            prevDiff=diff;
          }
          ok=prevDiff > diff;
        }
      }
      pointsChart.drawSeries(canvas,paint,pointsList,seriesRenderer,yAxisValue,seriesIndex,startIndex);
    }
  }
}

protected void drawPoints ( Canvas canvas , Paint paint , List < Float > pointsList , XYSeriesRenderer seriesRenderer , float yAxisValue , int seriesIndex , int startIndex ) { if ( isRenderPoints ( seriesRenderer ) ) { ScatterChart pointsChart = getPointsChart ( ) ; if ( pointsChart != null ) { int length = ( int ) mPathMeasure . getLength ( ) ; int pointsLength = pointsList . size ( ) ; float [ ] coords = new float [ 2 ] ; for ( int i = 0 ; i < length ; i ++ ) { mPathMeasure . getPosTan ( i , coords , null ) ; double prevDiff = Double . MAX_VALUE ; boolean ok = true ; for ( int j = 0 ; j < pointsLength && ok ; j += 2 ) { double diff = Math . abs ( pointsList . get ( j ) - coords [ 0 ] ) ; if ( diff < 1 ) { pointsList . set ( j + 1 , coords [ 1 ] ) ; prevDiff = diff ; } ok = prevDiff > diff ; } } pointsChart . drawSeries ( canvas , paint , pointsList , seriesRenderer , yAxisValue , seriesIndex , startIndex ) ; } } }
draws the series points .
