/** * Calculates the heights of each cell in the row. * * @return the maximum height of the row. */ 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. * * @return the maximum height of the row. */ 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. * * @return the maximum height of the row. */ 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; }
@Override public float getMaxHeight() { // sometimes max height of a table cell is higher than desired height // such a situation occurs if paragraphs have space before or after // it is hard to say if it is a bug or a feature in iText // we want fixed height to avoid breaking table to a new page return getFixedHeight() >= 0.0f ? getFixedHeight() : super.getMaxHeight(); } }
@Override public float getMaxHeight() { // sometimes max height of a table cell is higher than desired height // such a situation occurs if paragraphs have space before or after // it is hard to say if it is a bug or a feature in iText // we want fixed height to avoid breaking table to a new page return getFixedHeight() >= 0.0f ? getFixedHeight() : super.getMaxHeight(); } }
@Override public float getMaxHeight() { // sometimes max height of a table cell is higher than desired height // such a situation occurs if paragraphs have space before or after // it is hard to say if it is a bug or a feature in iText // we want fixed height to avoid breaking table to a new page return getFixedHeight() >= 0.0f ? getFixedHeight() : super.getMaxHeight(); } }
@Override public float getMaxHeight() { // sometimes max height of a table cell is higher than desired height // such a situation occurs if paragraphs have space before or after // it is hard to say if it is a bug or a feature in iText // we want fixed height to avoid breaking table to a new page return getFixedHeight() >= 0.0f ? getFixedHeight() : super.getMaxHeight(); } }
float tmp = 0; if (cell.getRowspan() == rs + 1) { tmp = cell.getMaxHeight(); while (rs > 0) { tmp -= getRowHeight(idx - rs);
float tmp = 0; if (cell.getRowspan() == rs + 1) { tmp = cell.getMaxHeight(); while (rs > 0) { tmp -= getRowHeight(idx - rs);
float tmp = 0; if (cell != null && cell.getRowspan() == rs + 1) { tmp = cell.getMaxHeight(); while (rs > 0) { tmp -= getRowHeight(idx - rs);
tmp = cell.getMaxHeight(); while ( rs > 0 )
tmp = cell.getMaxHeight(); while ( rs > 0 )