Package com.lowagie.text.pdf
Class PdfTable
java.lang.Object
com.lowagie.text.Rectangle
com.lowagie.text.pdf.PdfTable
- All Implemented Interfaces:
Element
Deprecated.
PdfTable is an object that contains the graphics and text of a table.-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.this is the ArrayList with all the cells in the table.private intDeprecated.this is the number of columns in the table.Deprecated.this is the ArrayList with all the cell of the table header.protected float[]Deprecated.Cached column widths.protected TableDeprecated.Original table used to build this objectFields inherited from class com.lowagie.text.Rectangle
backgroundColor, border, borderColor, borderColorBottom, borderColorLeft, borderColorRight, borderColorTop, borderWidth, borderWidthBottom, borderWidthLeft, borderWidthRight, borderWidthTop, BOTTOM, BOX, LEFT, llx, lly, NO_BORDER, offsetToTop, RIGHT, rotation, TOP, UNDEFINED, urx, ury, useVariableBordersFields inherited from interface com.lowagie.text.Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, FOOTNOTE, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MODIFICATIONDATE, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final floatDeprecated.Returns the cellpadding of the table.(package private) final floatDeprecated.Returns the cellspacing of the table.(package private) intcolumns()Deprecated.Returns the number of columns of the table.getCells()Deprecated.Returns the arraylist with the cells of the table.Deprecated.Returns the arraylist with the cells of the table header.floatDeprecated.Gets the offset of this table.(package private) booleanDeprecated.Checks if there is a table header.final booleanDeprecated.Checks if the cells of thisTablehave to fit a page.final booleanDeprecated.Checks if thisTablehas to fit a page.(package private) introws()Deprecated.Get the number of rowsinttype()Deprecated.Gets the type of the text element.(package private) voidDeprecated.Updates the table row additions in the underlying table object and deletes all table rows, in order to preserve memory and detect future row additions.private voidDeprecated.Updates the table row additions in the underlying table objectMethods inherited from class com.lowagie.text.Rectangle
cloneNonPositionParameters, disableBorderSide, enableBorderSide, getBackgroundColor, getBorder, getBorderColor, getBorderColorBottom, getBorderColorLeft, getBorderColorRight, getBorderColorTop, getBorderWidth, getBorderWidthBottom, getBorderWidthLeft, getBorderWidthRight, getBorderWidthTop, getBottom, getBottom, getChunks, getGrayFill, getHeight, getLeft, getLeft, getRelativeTop, getRight, getRight, getRotation, getTop, getTop, getWidth, hasBorder, hasBorders, isContent, isNestable, isUseVariableBorders, normalize, process, rectangle, rotate, setBackgroundColor, setBorder, setBorderColor, setBorderColorBottom, setBorderColorLeft, setBorderColorRight, setBorderColorTop, setBorderWidth, setBorderWidthBottom, setBorderWidthLeft, setBorderWidthRight, setBorderWidthTop, setBottom, setGrayFill, setLeft, setRelativeTop, setRight, setRotation, setTop, setUseVariableBorders, softCloneNonPositionParameters, toString
-
Field Details
-
table
Deprecated.Original table used to build this object -
positions
protected float[] positionsDeprecated.Cached column widths. -
columns
private int columnsDeprecated.this is the number of columns in the table. -
headercells
Deprecated.this is the ArrayList with all the cell of the table header. -
cells
Deprecated.this is the ArrayList with all the cells in the table.
-
-
Constructor Details
-
PdfTable
PdfTable(Table table, float left, float right, float top) Deprecated.Constructs aPdfTable-object.- Parameters:
table- aTableleft- the left border on the pageright- the right border on the pagetop- the start position of the top of the table- Since:
- a parameter of this method has been removed in iText 2.0.8
-
-
Method Details
-
updateRowAdditions
void updateRowAdditions()Deprecated.Updates the table row additions in the underlying table object and deletes all table rows, in order to preserve memory and detect future row additions.Pre-requisite: the object must have been built with the parameter
supportUpdateRowAdditionsequals to true. -
updateRowAdditionsInternal
private void updateRowAdditionsInternal()Deprecated.Updates the table row additions in the underlying table object -
rows
int rows()Deprecated.Get the number of rows -
type
public int type()Deprecated.Description copied from class:RectangleGets the type of the text element. -
getHeaderCells
Deprecated.Returns the arraylist with the cells of the table header.- Returns:
- an
ArrayList
-
hasHeader
boolean hasHeader()Deprecated.Checks if there is a table header.- Returns:
- an
ArrayList
-
getCells
Deprecated.Returns the arraylist with the cells of the table.- Returns:
- an
ArrayList
-
columns
int columns()Deprecated.Returns the number of columns of the table.- Returns:
- the number of columns
-
cellpadding
final float cellpadding()Deprecated.Returns the cellpadding of the table.- Returns:
- the cellpadding
-
cellspacing
final float cellspacing()Deprecated.Returns the cellspacing of the table.- Returns:
- the cellspacing
-
hasToFitPageTable
public final boolean hasToFitPageTable()Deprecated.Checks if thisTablehas to fit a page.- Returns:
- true if the table may not be split
-
hasToFitPageCells
public final boolean hasToFitPageCells()Deprecated.Checks if the cells of thisTablehave to fit a page.- Returns:
- true if the cells may not be split
-
getOffset
public float getOffset()Deprecated.Gets the offset of this table.- Returns:
- the space between this table and the previous element.
-