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

java.lang.Object
be.quodlibet.boxable.Row<T>

public class Row<T extends org.apache.pdfbox.pdmodel.PDPage> extends Object
  • Method Details

    • createCell

      public Cell<T> createCell(float width, String value)

      Creates a cell with provided width, cell value and default left top alignment

      Parameters:
      width - Absolute width in points or in % of table width
      value - Cell's value (content)
      Returns:
      New Cell
    • createImageCell

      public ImageCell<T> createImageCell(float width, Image img)

      Creates an image cell with provided width and Image

      Parameters:
      width - Cell's width
      img - Image in the cell
      Returns:
      ImageCell
    • createImageCell

      public Cell<T> createImageCell(float width, Image img, HorizontalAlignment align, VerticalAlignment valign)
    • createTableCell

      public TableCell<T> createTableCell(float width, String tableData, org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, float yStart, float pageTopMargin, float pageBottomMargin)

      Creates a table cell with provided width and table data

      Parameters:
      width - Table width
      tableData - Table's data (HTML table tags)
      doc - PDDocument where this table will be drawn
      page - PDPage where this table cell will be drawn
      yStart - Y position from which table will be drawn
      pageTopMargin - TableCell's top margin
      pageBottomMargin - TableCell's bottom margin
      Returns:
      TableCell with provided width and table data
    • createCell

      public Cell<T> createCell(float width, String value, HorizontalAlignment align, VerticalAlignment valign)

      Creates a cell with provided width, cell value, horizontal and vertical alignment

      Parameters:
      width - Absolute width in points or in % of table width
      value - Cell's value (content)
      align - Cell's HorizontalAlignment
      valign - Cell's VerticalAlignment
      Returns:
      New Cell
    • createCell

      public Cell<T> createCell(String value)

      Creates a cell with the same width as the corresponding header cell

      Parameters:
      value - Cell's value (content)
      Returns:
      new Cell
    • getHeight

      public float getHeight()

      Gets maximal height of the cells in current row therefore row's height.

      Returns:
      Row's height
    • getLineHeight

      public float getLineHeight() throws IOException
      Throws:
      IOException
    • setHeight

      public void setHeight(float height)
    • getCells

      public List<Cell<T>> getCells()
    • getColCount

      public int getColCount()
    • setCells

      public void setCells(List<Cell<T>> cells)
    • getWidth

      public float getWidth()
    • getBookmark

      public org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem getBookmark()
    • setBookmark

      public void setBookmark(org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem bookmark)
    • getLastCellExtraWidth

      protected float getLastCellExtraWidth()
    • xEnd

      public float xEnd()
    • isHeaderRow

      public boolean isHeaderRow()
    • setHeaderRow

      public void setHeaderRow(boolean headerRow)
    • getLineSpacing

      public float getLineSpacing()
    • setLineSpacing

      public void setLineSpacing(float lineSpacing)