public int estimateCellHSpan(int width){
  int availWidth=width - (getPaddingLeft() + getPaddingRight());
  int n=Math.max(1,(availWidth + mWidthGap) / (mCellWidth + mWidthGap));
  return n;
}

public int estimateCellHSpan ( int width ) { int availWidth = width - ( getPaddingLeft ( ) + getPaddingRight ( ) ) ; int n = Math . max ( 1 , ( availWidth + mWidthGap ) / ( mCellWidth + mWidthGap ) ) ; return n ; }
estimates the number of cells that the specified width would take up .
