protected void calcMinMax(int start,int end){
  final int yValCount=mYVals.size();
  if (yValCount == 0)   return;
  int endValue;
  if (end == 0 || end >= yValCount)   endValue=yValCount - 1;
 else   endValue=end;
  mLastStart=start;
  mLastEnd=endValue;
  mYMin=Float.MAX_VALUE;
  mYMax=-Float.MAX_VALUE;
  for (int i=start; i <= endValue; i++) {
    Entry e=mYVals.get(i);
    if (e != null && !Float.isNaN(e.getVal())) {
      if (e.getVal() < mYMin)       mYMin=e.getVal();
      if (e.getVal() > mYMax)       mYMax=e.getVal();
    }
  }
  if (mYMin == Float.MAX_VALUE) {
    mYMin=0.f;
    mYMax=0.f;
  }
}

protected void calcMinMax ( int start , int end ) { final int yValCount = mYVals . size ( ) ; if ( yValCount == 0 ) return ; int endValue ; if ( end == 0 || end >= yValCount ) endValue = yValCount - 1 ; else endValue = end ; mLastStart = start ; mLastEnd = endValue ; mYMin = Float . MAX_VALUE ; mYMax = - Float . MAX_VALUE ; for ( int i = start ; i <= endValue ; i ++ ) { Entry e = mYVals . get ( i ) ; if ( e != null && ! Float . isNaN ( e . getVal ( ) ) ) { if ( e . getVal ( ) < mYMin ) mYMin = e . getVal ( ) ; if ( e . getVal ( ) > mYMax ) mYMax = e . getVal ( ) ; } } if ( mYMin == Float . MAX_VALUE ) { mYMin = 0.f ; mYMax = 0.f ; } }
calc minimum and maximum y value
