Method Summary |
|
public void | addCell(PdfPCell cell) Adds a cell element. |
public void | addCell(String text) Adds a cell element. |
public void | addCell(PdfPTable table) Adds a nested table. |
public void | addCell(Image image) Adds an Image as Cell.
Parameters: image - the Image to add to the table. |
public void | addCell(Phrase phrase) Adds a cell element. |
public static PdfContentByte[] | beginWritingRows(PdfContentByte canvas) Gets and initializes the 4 layers where the table is written to. |
void | calculateHeights() |
public void | calculateHeightsFast() Calculates the heights of the table. |
public void | completeRow() Completes the current row with the default cell. |
public void | deleteBodyRows() |
public boolean | deleteLastRow() Deletes the last row in the table. |
public boolean | deleteRow(int rowNumber) Deletes a row from the table. |
public static void | endWritingRows(PdfContentByte[] canvases) Finishes writing the table. |
public float[] | getAbsoluteWidths() Gets the absolute sizes of each column width. |
public ArrayList | getChunks() Gets all the chunks in this element. |
public PdfPCell | getDefaultCell() Gets the default PdfPCell that will be used as
reference for all the addCell methods except
addCell(PdfPCell) . |
float[][] | getEventWidths(float xPos, int firstRow, int lastRow, boolean includeHeaders) |
public int | getFooterRows() Gets the number of rows in the footer. |
public float | getHeaderHeight() Gets the height of the rows that constitute the header as defined by
setHeaderRows() . |
public int | getHeaderRows() Gets the number of the rows that constitute the header. |
public int | getHorizontalAlignment() Gets the horizontal alignment of the table relative to the page. |
public boolean | getKeepTogether() |
public PdfPRow | getRow(int idx) Gets a row with a given index
(added by Jin-Hsia Yang). |
public float | getRowHeight(int idx) Gets the height of a particular row. |
public ArrayList | getRows() Gets an arraylist with all the rows in the table. |
public int | getRunDirection() Returns the run direction of the contents in the table. |
public PdfPTableEvent | getTableEvent() Gets the table event for this page. |
public float | getTotalHeight() Gets the total height of the table. |
public float | getTotalWidth() Gets the full width of the table. |
public float | getWidthPercentage() Gets the width percentage that the table will occupy in the page. |
public boolean | isExtendLastRow() Gets the value of the last row extension. |
public boolean | isHeadersInEvent() Gets the header status inclusion in PdfPTableEvent. |
public boolean | isLockedWidth() Getter for property lockedWidth. |
public boolean | isSkipFirstHeader() Getter for property skipFirstHeader. |
public boolean | isSplitLate() Gets the property splitLate. |
public boolean | isSplitRows() Gets the split value. |
public boolean | process(ElementListener listener) Processes the element by adding it (or the different parts) to an
ElementListener . |
public void | setExtendLastRow(boolean extendLastRow) When set the last row will be extended to fill all the remaining space to the
bottom boundary. |
public void | setFooterRows(int footerRows) Sets the number of rows to be used for the footer. |
public void | setHeaderRows(int headerRows) Sets the number of the top rows that constitute the header. |
public void | setHeadersInEvent(boolean headersInEvent) When set the PdfPTableEvent will include the headers. |
public void | setHorizontalAlignment(int horizontalAlignment) Sets the horizontal alignment of the table relative to the page. |
public void | setKeepTogether(boolean p_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. |
public void | setLockedWidth(boolean lockedWidth) Uses the value in setTotalWidth() in Document.add() . |
public void | setRunDirection(int runDirection) Sets the run direction of the contents of the table. |
public void | setSkipFirstHeader(boolean skipFirstHeader) Skips the printing of the first header. |
public void | setSpacingAfter(float spacing) Sets the spacing after this table. |
public void | setSpacingBefore(float spacing) Sets the spacing before this table. |
public void | setSplitLate(boolean splitLate) If true the row will only split if it's the first one in an empty page. |
public void | setSplitRows(boolean splitRows) When set the rows that won't fit in the page will be split. |
public void | setTableEvent(PdfPTableEvent event) Sets the table event for this table. |
public void | setTotalWidth(float totalWidth) Sets the full width of the table. |
public void | setTotalWidth(float columnWidth) Sets the full width of the table from the absolute column width. |
public void | setWidthPercentage(float columnWidth, Rectangle pageSize) Sets the percentage width of the table from the absolute column width. |
public void | setWidthPercentage(float widthPercentage) Sets the width percentage that the table will occupy in the page. |
public void | setWidths(float relativeWidths) Sets the relative widths of the table. |
public void | setWidths(int relativeWidths) Sets the relative widths of the table. |
public static PdfPTable | shallowCopy(PdfPTable table) Makes a shallow copy of a table (format without content). |
public int | size() Gets the number of rows in this table. |
public float | spacingAfter() Gets the spacing after this table. |
public float | spacingBefore() Gets the spacing before this table. |
public int | type() Gets the type of the text element. |
public float | writeSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases) Writes the selected rows to the document.
canvases is obtained from beginWritingRows() .
Parameters: rowStart - the first row to be written, zero index Parameters: rowEnd - the last row to be written + 1. |
public float | writeSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases) Writes the selected rows and columns to the document.
This method does not clip the columns; this is only important
if there are columns with colspan at boundaries.
canvases is obtained from beginWritingRows() .
The table event is only fired for complete rows.
Parameters: colStart - the first column to be written, zero index Parameters: colEnd - the last column to be written + 1. |
public float | writeSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas) Writes the selected rows to the document.
Parameters: rowStart - the first row to be written, zero index Parameters: rowEnd - the last row to be written + 1. |
public float | writeSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas) Writes the selected rows to the document.
This method clips the columns; this is only important
if there are columns with colspan at boundaries.
The table event is only fired for complete rows.
Parameters: colStart - the first column to be written, zero index Parameters: colEnd - the last column to be written + 1. |