Class TableCell<T extends org.apache.pdfbox.pdmodel.PDPage>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(org.apache.pdfbox.pdmodel.PDPage page) This method draw table cell with proper X,Y position which are determined inTable.draw()methodvoidThis method just fills up the table's with her content for proper table cell height calculation.floatGets free horizontal space of cell.floatGetsParagraph's heightfloatGets free vertical space of cell.floatfloatvoidsetXPosition(float xStart) voidsetYPosition(float yStart) Methods inherited from class be.quodlibet.boxable.Cell
addContentDrawnListener, copyCellStyle, getAlign, getBottomBorder, getBottomPadding, getCellContentDrawnListeners, getCellHeight, getExtraWidth, getFillColor, getFont, getFontBold, getFontSize, getHeight, getInnerHeight, getInnerWidth, getLeftBorder, getLeftPadding, getLineSpacing, getParagraph, getRightBorder, getRightPadding, getText, getTextColor, getTextWidth, getTopBorder, getTopPadding, getUrl, getValign, getWidth, getWrappingFunction, hasSameStyle, isColspanCell, isHeaderCell, isTextRotated, notifyContentDrawnListeners, setAlign, setBorderStyle, setBottomBorderStyle, setBottomPadding, setColspanCell, setFillColor, setFont, setFontBold, setFontSize, setHeaderCell, setHeight, setLeftBorderStyle, setLeftPadding, setLineSpacing, setRightBorderStyle, setRightPadding, setText, setTextColor, setTextRotated, setTopBorderStyle, setTopPadding, setUrl, setValign, setWidth, setWrappingFunction
-
Method Details
-
fillTable
public 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>) -
draw
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()methodNOTE: if entire row is not header row then use bold instead header cell (
<th>)- Parameters:
page-PDPagewhere table cell be written on
-
getXPosition
public float getXPosition() -
setXPosition
public void setXPosition(float xStart) -
getYPosition
public float getYPosition() -
setYPosition
public void setYPosition(float yStart) -
getTextHeight
public float getTextHeight()Description copied from class:CellGets
Paragraph's height- Overrides:
getTextHeightin classCell<T extends org.apache.pdfbox.pdmodel.PDPage>- Returns:
Paragraph's height
-
getHorizontalFreeSpace
public float getHorizontalFreeSpace()Description copied from class: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 theParagraph's height otherwise it's just cell'sCell.getInnerWidth()subtracted with width of longest line in normalParagraph.- Overrides:
getHorizontalFreeSpacein classCell<T extends org.apache.pdfbox.pdmodel.PDPage>- Returns:
- Free vertical space of the cell's.
-
getVerticalFreeSpace
public float getVerticalFreeSpace()Description copied from class: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 rotatedParagraphotherwise it's just cell's inner height (Cell.getInnerHeight()) subtracted with width of the normalParagraph.- Overrides:
getVerticalFreeSpacein classCell<T extends org.apache.pdfbox.pdmodel.PDPage>- Returns:
- Free vertical space of the cell's.
-