/** * Gets the height of the rows that constitute the header as defined by * <CODE>setHeaderRows()</CODE>. * * @return the height of the rows that constitute the header and footer */ public float getHeaderHeight() { float total = 0; int size = Math.min(rows.size(), headerRows); for (int k = 0; k < size; ++k) { PdfPRow row = (PdfPRow)rows.get(k); if (row != null) total += row.getMaxHeights(); } return total; }
/** * Gets the height of the rows that constitute the header as defined by * <CODE>setHeaderRows()</CODE>. * * @return the height of the rows that constitute the header and footer */ public float getHeaderHeight() { float total = 0; int size = Math.min(rows.size(), headerRows); for (int k = 0; k < size; ++k) { PdfPRow row = (PdfPRow)rows.get(k); if (row != null) total += row.getMaxHeights(); } return total; }
/** * Gets the height of the rows that constitute the header as defined by * <CODE>setHeaderRows()</CODE>. * * @return the height of the rows that constitute the header and footer */ public float getHeaderHeight() { float total = 0; int size = Math.min(rows.size(), headerRows); for (int k = 0; k < size; ++k) { PdfPRow row = (PdfPRow)rows.get(k); if (row != null) total += row.getMaxHeights(); } return total; }
/** * Deletes a row from the table. * * @param rowNumber the row to be deleted * @return <CODE>true</CODE> if the row was deleted */ public boolean deleteRow(int rowNumber) { if (rowNumber < 0 || rowNumber >= rows.size()) return false; if (totalWidth > 0) { PdfPRow row = (PdfPRow)rows.get(rowNumber); if (row != null) totalHeight -= row.getMaxHeights(); } rows.remove(rowNumber); if (rowNumber < headerRows) { --headerRows; if (rowNumber >= (headerRows - footerRows)) --footerRows; } return true; }
/** * Gets the height of the rows that constitute the footer as defined by * <CODE>setFooterRows()</CODE>. * * @return the height of the rows that constitute the footer * @since 2.1.1 */ public float getFooterHeight() { float total = 0; int start = Math.max(0, headerRows - footerRows); int size = Math.min(rows.size(), headerRows); for (int k = start; k < size; ++k) { PdfPRow row = (PdfPRow)rows.get(k); if (row != null) total += row.getMaxHeights(); } return total; }
/** * Gets the height of the rows that constitute the footer as defined by * <CODE>setFooterRows()</CODE>. * * @return the height of the rows that constitute the footer * @since 2.1.1 */ public float getFooterHeight() { float total = 0; int start = Math.max(0, headerRows - footerRows); int size = Math.min(rows.size(), headerRows); for (int k = start; k < size; ++k) { PdfPRow row = (PdfPRow)rows.get(k); if (row != null) total += row.getMaxHeights(); } return total; }
/** * Deletes a row from the table. * * @param rowNumber the row to be deleted * @return <CODE>true</CODE> if the row was deleted */ public boolean deleteRow(int rowNumber) { if (rowNumber < 0 || rowNumber >= rows.size()) return false; if (totalWidth > 0) { PdfPRow row = (PdfPRow)rows.get(rowNumber); if (row != null) totalHeight -= row.getMaxHeights(); } rows.remove(rowNumber); if (rowNumber < headerRows) { --headerRows; if (rowNumber >= (headerRows - footerRows)) --footerRows; } return true; }
/** * Deletes a row from the table. * * @param rowNumber the row to be deleted * @return <CODE>true</CODE> if the row was deleted */ public boolean deleteRow(int rowNumber) { if (rowNumber < 0 || rowNumber >= rows.size()) return false; if (totalWidth > 0) { PdfPRow row = (PdfPRow)rows.get(rowNumber); if (row != null) totalHeight -= row.getMaxHeights(); } rows.remove(rowNumber); if (rowNumber < headerRows) { --headerRows; if (rowNumber >= (headerRows - footerRows)) --footerRows; } return true; }
/** * Gets the height of the rows that constitute the footer as defined by * <CODE>setFooterRows()</CODE>. * * @return the height of the rows that constitute the footer * @since 2.1.1 */ public float getFooterHeight() { float total = 0; int start = Math.max(0, headerRows - footerRows); int size = Math.min(rows.size(), headerRows); for (int k = start; k < size; ++k) { PdfPRow row = (PdfPRow)rows.get(k); if (row != null) total += row.getMaxHeights(); } return total; }
if (row != null) { row.writeCells(colStart, colEnd, xPos, yPos, canvases); yPos -= row.getMaxHeights(); float hr = 0; if (row != null) hr = row.getMaxHeights(); heights[k - rowStart + 1] = heights[k - rowStart] - hr;
if (row != null) { row.writeCells(colStart, colEnd, xPos, yPos, canvases); yPos -= row.getMaxHeights(); float hr = 0; if (row != null) hr = row.getMaxHeights(); heights[k - rowStart + 1] = heights[k - rowStart] - hr;
if (row != null) { row.writeCells(colStart, colEnd, xPos, yPos, canvases); yPos -= row.getMaxHeights(); float hr = 0; if (row != null) hr = row.getMaxHeights(); heights[k - rowStart + 1] = heights[k - rowStart] - hr;
if (firsttime) row.setWidths(absoluteWidths); float height = row.getMaxHeights(); PdfPCell cell; PdfPRow tmprow;
if (firsttime) row.setWidths(absoluteWidths); float height = row.getMaxHeights(); PdfPCell cell; PdfPRow tmprow;
if (firsttime) row.setWidths(absoluteWidths); float height = row.getMaxHeights(); PdfPCell cell; PdfPRow tmprow;
if ( firsttime ) row.setWidths( absoluteWidths ); float height = row.getMaxHeights(); PdfPCell cell; PdfPRow tmprow;
if ( firsttime ) row.setWidths( absoluteWidths ); float height = row.getMaxHeights(); PdfPCell cell; PdfPRow tmprow;
if (totalWidth > 0) { row.setWidths(absoluteWidths); totalHeight += row.getMaxHeights();
if (totalWidth > 0) { row.setWidths(absoluteWidths); totalHeight += row.getMaxHeights();
if (totalWidth > 0) { row.setWidths(absoluteWidths); totalHeight += row.getMaxHeights();