Example usage for Java com.itextpdf.text.pdf PdfPTable fields, constructors, methods, implement or subclass
The text is from its open source code.
int | BASECANVAS The index of the original PdfcontentByte . |
int | BACKGROUNDCANVAS The index of the duplicate PdfContentByte where the background will be drawn. |
int | LINECANVAS The index of the duplicate PdfContentByte where the border lines will be drawn. |
int | TEXTCANVAS The index of the duplicate PdfContentByte where the text will be drawn. |
PdfPTable(final float relativeWidths[]) Constructs a PdfPTable with the relative column widths. | |
PdfPTable(final int numColumns) Constructs a PdfPTable with numColumns columns. | |
PdfPTable(final PdfPTable table) Constructs a copy of a PdfPTable . |
PdfPCell | addCell(final PdfPCell cell) Adds a cell element. |
void | addCell(final String text) Adds a cell element. |
void | addCell(final PdfPTable table) Adds a nested table. |
void | addCell(final Image image) Adds an Image as Cell. |
void | addCell(final Phrase phrase) Adds a cell element. |
PdfContentByte[] | beginWritingRows(final PdfContentByte canvas) Gets and initializes the 4 layers where the table is written to. |
float | calculateHeights() Calculates the heights of the table. |
void | completeRow() Completes the current row with the default cell. |
void | endWritingRows(final PdfContentByte[] canvases) Finishes writing the table. |
float[] | getAbsoluteWidths() Gets the absolute sizes of each column width. |
List | getChunks() Gets all the chunks in this element. |
PdfPCell | getDefaultCell() Gets the default PdfPCell that will be used as reference for all the addCell methods except addCell(PdfPCell) . |
int | getFooterRows() Gets the number of rows in the footer. |
float | getHeaderHeight() Gets the height of the rows that constitute the header as defined by setHeaderRows() . |
int | getHeaderRows() Gets the number of the rows that constitute the header. |
int | getLastCompletedRowIndex() Returns the index of the last completed row. |
int | getNumberOfColumns() Returns the number of columns. |
PdfPRow | getRow(final int idx) Gets a row with a given index. |
float | getRowHeight(final int idx) Gets the height of a particular row. |
ArrayList | getRows() Gets an arraylist with all the rows in the table. |
float | getTotalHeight() Gets the total height of the table. |
float | getTotalWidth() Gets the full width of the table. |
float | getWidthPercentage() Gets the width percentage that the table will occupy in the page. |
void | keepRowsTogether(int[] rows) Defines which rows should not allow a page break (if possible). |
void | keepRowsTogether(int start) Defines a range of rows (from the parameter to the last row) that should not allow a page break (if possible). |
void | setBreakPoints(int... breakPoints) Defines where the table may be broken (if necessary). |
void | setComplete(final boolean complete) |
void | setExtendLastRow(final boolean extendLastRows, final boolean extendFinalRow) When set the last row on every page will be extended to fill all the remaining space to the bottom boundary; except maybe the final row. |
void | setExtendLastRow(final boolean extendLastRows) When set the last row on every page will be extended to fill all the remaining space to the bottom boundary. |
void | setFooterRows(int footerRows) Sets the number of rows to be used for the footer. |
void | setHeaderRows(int headerRows) Sets the number of the top rows that constitute the header. |
void | setHorizontalAlignment(final int horizontalAlignment) Sets the horizontal alignment of the table relative to the page. |
void | setKeepTogether(final boolean keepTogether) If true the table will be kept on one page if it fits, by forcing a new page if it doesn't fit on the current page. |
void | setLockedWidth(final boolean lockedWidth) Uses the value in setTotalWidth() in Document.add() . |
void | setPaddingTop(float paddingTop) |
void | setSpacingAfter(final float spacing) Sets the spacing after this table. |
void | setSpacingBefore(final float spacing) Sets the spacing before this table. |
void | setSplitRows(final boolean splitRows) When set the rows that won't fit in the page will be split. |
void | setTableEvent(final PdfPTableEvent event) Sets the table event for this table. |
void | setTotalWidth(final float totalWidth) Sets the full width of the table. |
void | setTotalWidth(final float columnWidth[]) Sets the full width of the table from the absolute column width. |
void | setWidthPercentage(final float widthPercentage) Sets the width percentage that the table will occupy in the page. |
void | setWidthPercentage(final float columnWidth[], final Rectangle pageSize) Sets the percentage width of the table from the absolute column width. |
void | setWidths(final float relativeWidths[]) Sets the relative widths of the table. |
void | setWidths(final int relativeWidths[]) Sets the relative widths of the table. |
int | size() Gets the number of rows in this table. |
float | writeSelectedRows(final int rowStart, final int rowEnd, final float xPos, final float yPos, final PdfContentByte[] canvases) Writes the selected rows to the document. |
float | writeSelectedRows(final int rowStart, final int rowEnd, final float xPos, final float yPos, final PdfContentByte canvas) Writes the selected rows to the document. |