/** * Returns the list of composite elements of the column. * * @return a List object. * @since 2.1.1 */ public List<Element> getCompositeElements() { return getColumn().compositeElements; }
/** * Returns the list of composite elements of the column. * * @return a List object. * @since 2.1.1 */ public List<Element> getCompositeElements() { return getColumn().compositeElements; }
private PdfPCell createCell() { PdfPCell cell = new PdfPCell(); cell.setBorder( Rectangle.NO_BORDER ); cell.setPadding( 0.0f ); cell.setUseBorderPadding( true ); cell.getColumn().setAdjustFirstLine( false ); return cell; }
/** * Copies the content of a specific row in a table to this row. Don't do * this if the rows have a different number of cells. * * @param table the table from which you want to copy a row * @param idx the index of the row that needs to be copied * @since 5.1.0 */ public void copyRowContent(PdfPTable table, int idx) { if (table == null) { return; } PdfPCell copy; for (int i = 0; i < cells.length; ++i) { int lastRow = idx; copy = table.getRow(lastRow).getCells()[i]; while (copy == null && lastRow > 0) { copy = table.getRow(--lastRow).getCells()[i]; } if (cells[i] != null && copy != null) { cells[i].setColumn(copy.getColumn()); this.calculated = false; } } }
/** * Copies the content of a specific row in a table to this row. Don't do * this if the rows have a different number of cells. * * @param table the table from which you want to copy a row * @param idx the index of the row that needs to be copied * @since 5.1.0 */ public void copyRowContent(PdfPTable table, int idx) { if (table == null) { return; } PdfPCell copy; for (int i = 0; i < cells.length; ++i) { int lastRow = idx; copy = table.getRow(lastRow).getCells()[i]; while (copy == null && lastRow > 0) { copy = table.getRow(--lastRow).getCells()[i]; } if (cells[i] != null && copy != null) { cells[i].setColumn(copy.getColumn()); this.calculated = false; } } }
ColumnText ct = ColumnText.duplicate(cell.getColumn()); float left = cell.getLeft() + cell.getEffectivePaddingLeft(); float bottom = cell.getTop() + cell.getEffectivePaddingBottom() - newHeight; newCell.setColumn(ColumnText.duplicate(cell.getColumn())); ct.setFilledWidth(0); } else if ((status & ColumnText.NO_MORE_TEXT) == 0) {
ColumnText ct = ColumnText.duplicate(cell.getColumn()); float left = cell.getLeft() + cell.getEffectivePaddingLeft(); float bottom = cell.getTop() + cell.getEffectivePaddingBottom() - newHeight; newCell.setColumn(ColumnText.duplicate(cell.getColumn())); ct.setFilledWidth(0); } else if ((status & ColumnText.NO_MORE_TEXT) == 0) {
setBottom(getTop() - getEffectivePaddingTop() - getEffectivePaddingBottom() - refHeight); } else { if ((pivoted && hasFixedHeight()) || getColumn() == null) { setBottom(getTop() - getFixedHeight()); } else { ColumnText ct = ColumnText.duplicate(getColumn()); float right, top, left, bottom; if (pivoted) {
setBottom(getTop() - getEffectivePaddingTop() - getEffectivePaddingBottom() - refHeight); } else { if ((pivoted && hasFixedHeight()) || getColumn() == null) { setBottom(getTop() - getFixedHeight()); } else { ColumnText ct = ColumnText.duplicate(getColumn()); float right, top, left, bottom; if (pivoted) {
float netWidth = currentMaxHeight - cell.getEffectivePaddingTop() - cell.getEffectivePaddingBottom(); float netHeight = cell.getWidth() - cell.getEffectivePaddingLeft() - cell.getEffectivePaddingRight(); ColumnText ct = ColumnText.duplicate(cell.getColumn()); ct.setCanvases(canvases); ct.setSimpleColumn(0, 0, netWidth + 0.001f, -netHeight); ct = ColumnText.duplicate(cell.getColumn()); } else { ct = cell.getColumn(); ct = ColumnText.duplicate(cell.getColumn()); } else { ct = cell.getColumn();
float netWidth = currentMaxHeight - cell.getEffectivePaddingTop() - cell.getEffectivePaddingBottom(); float netHeight = cell.getWidth() - cell.getEffectivePaddingLeft() - cell.getEffectivePaddingRight(); ColumnText ct = ColumnText.duplicate(cell.getColumn()); ct.setCanvases(canvases); ct.setSimpleColumn(0, 0, netWidth + 0.001f, -netHeight); ct = ColumnText.duplicate(cell.getColumn()); } else { ct = cell.getColumn(); ct = ColumnText.duplicate(cell.getColumn()); } else { ct = cell.getColumn();