Package com.lowagie.text.pdf
Class PdfTable
java.lang.Object
com.lowagie.text.Rectangle
com.lowagie.text.pdf.PdfTable
- All Implemented Interfaces:
Element
PdfTable is an object that contains the graphics and text of a table.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float[]Cached column widths.protected TableOriginal 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, 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, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK -
Method Summary
Modifier and TypeMethodDescriptionfloatGets the offset of this table.final booleanChecks if the cells of thisTablehave to fit a page.final booleanChecks if thisTablehas to fit a page.inttype()Gets the type of the text element.Methods 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, 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, setRight, setTop, setUseVariableBorders, softCloneNonPositionParameters, toString
-
Field Details
-
table
Original table used to build this object -
positions
protected float[] positionsCached column widths.
-
-
Method Details
-
type
public int type()Description copied from class:RectangleGets the type of the text element. -
hasToFitPageTable
public final boolean hasToFitPageTable()Checks if thisTablehas to fit a page.- Returns:
- true if the table may not be split
-
hasToFitPageCells
public final boolean hasToFitPageCells()Checks if the cells of thisTablehave to fit a page.- Returns:
- true if the cells may not be split
-
getOffset
public float getOffset()Gets the offset of this table.- Returns:
- the space between this table and the previous element.
-