public class TableCell<T extends org.apache.pdfbox.pdmodel.PDPage> extends Cell<T>
| Modifier and Type | Method and Description |
|---|---|
void |
draw(org.apache.pdfbox.pdmodel.PDPage page)
This method draw table cell with proper X,Y position which are determined
in
Table.draw() method |
void |
fillTable()
This method just fills up the table's with her content for proper table
cell height calculation.
|
float |
getHorizontalFreeSpace()
Gets free horizontal space of cell.
|
float |
getTextHeight()
Gets
Paragraph's height |
float |
getVerticalFreeSpace()
Gets free vertical space of cell.
|
float |
getXPosition() |
float |
getYPosition() |
void |
setXPosition(float xStart) |
void |
setYPosition(float yStart) |
copyCellStyle, getAlign, getBottomBorder, getBottomPadding, getCellHeight, getExtraWidth, getFillColor, getFont, getFontBold, getFontSize, getHeight, getInnerHeight, getInnerWidth, getLeftBorder, getLeftPadding, getLineSpacing, getParagraph, getRightBorder, getRightPadding, getText, getTextColor, getTextWidth, getTopBorder, getTopPadding, getValign, getWidth, getWrappingFunction, hasSameStyle, isColspanCell, isHeaderCell, isTextRotated, setAlign, setBorderStyle, setBottomBorderStyle, setBottomPadding, setColspanCell, setFillColor, setFont, setFontBold, setFontSize, setHeaderCell, setHeight, setLeftBorderStyle, setLeftPadding, setLineSpacing, setRightBorderStyle, setRightPadding, setText, setTextColor, setTextRotated, setTopBorderStyle, setTopPadding, setValign, setWidth, setWrappingFunctionpublic void fillTable()
This method just fills up the table's with her content for proper table cell height calculation. Position of the table (x,y) is not relevant here.
NOTE: if entire row is not header row then use bold instead header cell (
<th>)
public void draw(org.apache.pdfbox.pdmodel.PDPage page)
This method draw table cell with proper X,Y position which are determined
in Table.draw() method
NOTE: if entire row is not header row then use bold instead header cell (
<th>)
page - PDPage where table cell be written onpublic float getXPosition()
public void setXPosition(float xStart)
public float getYPosition()
public void setYPosition(float yStart)
public float getTextHeight()
Cell
Gets Paragraph's height
getTextHeight in class Cell<T extends org.apache.pdfbox.pdmodel.PDPage>Paragraph's heightpublic float getHorizontalFreeSpace()
CellGets free horizontal space of cell.
If cell has rotated value then free horizontal space is equal cell's
inner width (Cell.getInnerWidth()) subtracted to the
Paragraph's height otherwise it's just cell's
Cell.getInnerWidth() subtracted with width of longest line in normal
Paragraph.
getHorizontalFreeSpace in class Cell<T extends org.apache.pdfbox.pdmodel.PDPage>public float getVerticalFreeSpace()
CellGets free vertical space of cell.
If cell has rotated value then free vertical space is equal inner cell's
height (Cell.getInnerHeight()) subtracted to the longest line of
rotated Paragraph otherwise it's just cell's inner height (
Cell.getInnerHeight()) subtracted with width of the normal
Paragraph.
getVerticalFreeSpace in class Cell<T extends org.apache.pdfbox.pdmodel.PDPage>Copyright © 2020. All rights reserved.