public void addRegularColumns ( float left , float right , float gutterWidth , int numColumns ) { float currX = left ; float width = right - left ; float colWidth = ( width - ( gutterWidth * ( numColumns - 1 ) ) ) / numColumns ; for ( int i = 0 ; i < numColumns ; i ++ ) { addSimpleColumn ( currX , currX + colWidth ) ; currX += colWidth + gutterWidth ; } }
Add the specified number of evenly spaced rectangular columns . Columns will be separated by the specified gutterWidth .