Class PDFTable

java.lang.Object
io.keikai.doc.io.schema.pdf.PDFBlock
io.keikai.doc.io.schema.pdf.PDFTable
All Implemented Interfaces:
IPDFElement

public class PDFTable extends PDFBlock
Internal Use Only.

Represents a table in a PDF document.

Author:
Jamson Chan
  • Constructor Details

    • PDFTable

      public PDFTable()
  • Method Details

    • getRows

      public List<PDFTableRow> getRows()
      Returns the rows in the table.
      Returns:
      the rows in the table.
    • addRow

      public void addRow(PDFTableRow row)
      Adds a row to the table.
      Parameters:
      row - the row to add.
    • getGrid

      public PDFTableCell[][] getGrid()
      Returns the grid of the table.
      Returns:
      the grid of the table.
    • setGrid

      public void setGrid(PDFTableCell[][] grid)
      Sets the grid of the table.
      Parameters:
      grid - the grid of the table.
    • getRowHeights

      public float[] getRowHeights()
      Returns the row heights of the table.
      Returns:
      the row heights of the table.
    • setRowHeights

      public void setRowHeights(float[] rowHeights)
      Sets the row heights of the table.
      Parameters:
      rowHeights - the row heights of the table.
    • getColWidths

      public float[] getColWidths()
      Returns the column widths of the table.
      Returns:
      the column widths of the table.
    • setColWidths

      public void setColWidths(float[] colWidths)
      Sets the column widths of the table.
      Parameters:
      colWidths - the column widths of the table.
    • getMarginLeft

      public float getMarginLeft()
      Returns the left margin of the table.
      Returns:
      the left margin of the table.
    • setMarginLeft

      public void setMarginLeft(float marginLeft)
      Sets the left margin of the table.
      Parameters:
      marginLeft - the left margin of the table.
    • getBorderTopOffset

      public float getBorderTopOffset()
      Returns the top border offset of the table.
      Returns:
      the top border offset of the table.
    • setBorderTopOffset

      public void setBorderTopOffset(float borderTopOffset)
      Sets the top border offset of the table.
      Parameters:
      borderTopOffset - the top border offset of the table.
    • getBorderBottomOffset

      public float getBorderBottomOffset()
      Returns the bottom border offset of the table.
      Returns:
      the bottom border offset of the table.
    • setBorderBottomOffset

      public void setBorderBottomOffset(float borderBottomOffset)
      Sets the bottom border offset of the table.
      Parameters:
      borderBottomOffset - the bottom border offset of the table.
    • getBorderLeftOffset

      public float getBorderLeftOffset()
      Returns the left border offset of the table.
      Returns:
      the left border offset of the table.
    • setBorderLeftOffset

      public void setBorderLeftOffset(float borderLeftOffset)
      Sets the left border offset of the table.
      Parameters:
      borderLeftOffset - the left border offset of the table.
    • getHeight

      public float getHeight()
      Returns the height of the table.
      Returns:
      the height of the table.