private void updateRange(double x,double y){
  mMinX=Math.min(mMinX,x);
  mMaxX=Math.max(mMaxX,x);
  mMinY=Math.min(mMinY,y);
  mMaxY=Math.max(mMaxY,y);
}

private void updateRange ( double x , double y ) { mMinX = Math . min ( mMinX , x ) ; mMaxX = Math . max ( mMaxX , x ) ; mMinY = Math . min ( mMinY , y ) ; mMaxY = Math . max ( mMaxY , y ) ; }
updates the range on both axes .
