private String getColumnWidthStyle ( final Sheet sheet1 , final Map < String , CellRangeAddress > cellRangeMap , final String cellindex , final int cindex , final double totalWidth ) { CellRangeAddress caddress = cellRangeMap . get ( cellindex ) ; double colWidth ; // check whether the cell has rowspan or colspan if ( caddress != null ) { colWidth = CellStyleUtility . calcTotalWidth ( sheet1 , caddress . getFirstColumn ( ) , caddress . getLastColumn ( ) , 0 ) ; } else { colWidth = sheet1 . getColumnWidth ( cindex ) ; } return getWidthStyle ( colWidth , totalWidth ) ; }
Gets the column width style .