Class TableCell<T extends org.apache.pdfbox.pdmodel.PDPage>

java.lang.Object
be.quodlibet.boxable.Cell<T>
be.quodlibet.boxable.TableCell<T>

public class TableCell<T extends org.apache.pdfbox.pdmodel.PDPage> extends Cell<T>
  • 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() method

      NOTE: if entire row is not header row then use bold instead header cell ( <th>)

      Parameters:
      page - PDPage where 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: Cell

      Gets Paragraph's height

      Overrides:
      getTextHeight in class Cell<T extends org.apache.pdfbox.pdmodel.PDPage>
      Returns:
      Paragraph's height
    • getHorizontalFreeSpace

      public float getHorizontalFreeSpace()
      Description copied from class: Cell

      Gets 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.

      Overrides:
      getHorizontalFreeSpace in class Cell<T extends org.apache.pdfbox.pdmodel.PDPage>
      Returns:
      Free vertical space of the cell's.
    • getVerticalFreeSpace

      public float getVerticalFreeSpace()
      Description copied from class: Cell

      Gets 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.

      Overrides:
      getVerticalFreeSpace in class Cell<T extends org.apache.pdfbox.pdmodel.PDPage>
      Returns:
      Free vertical space of the cell's.