public float calculateHeights ( ) { maxHeight = 0 ; for ( int k = 0 ; k < cells . length ; ++ k ) { PdfPCell cell = cells [ k ] ; float height = 0 ; if ( cell == null ) { continue ; } else { height = cell . getMaxHeight ( ) ; if ( ( height > maxHeight ) && ( cell . getRowspan ( ) == 1 ) ) maxHeight = height ; } } calculated = true ; return maxHeight ; }
Calculates the heights of each cell in the row .