Class PDFTableCell

java.lang.Object
io.keikai.doc.io.schema.pdf.PDFContainer
io.keikai.doc.io.schema.pdf.PDFTableCell
All Implemented Interfaces:
IPDFElement

public class PDFTableCell extends PDFContainer
Internal Use Only.

Represents a table cell in a PDF document.

Author:
Jamson Chan
  • Constructor Details

    • PDFTableCell

      public PDFTableCell()
  • Method Details

    • getBorders

      public PDFBorder[] getBorders()
      Returns all borders in the order of top, right, bottom, left.
      Returns:
      all borders in the order of top, right, bottom, left.
    • getTop

      public PDFBorder getTop()
      Returns the top border.
      Returns:
      the top border.
    • getRight

      public PDFBorder getRight()
      Returns the right border.
      Returns:
      the right border.
    • getBottom

      public PDFBorder getBottom()
      Returns the bottom border.
      Returns:
      the bottom border.
    • getLeft

      public PDFBorder getLeft()
      Returns the left border.
      Returns:
      the left border.
    • getBGColor

      public Color getBGColor()
      Returns the background color of the cell.
      Returns:
      the background color of the cell.
    • setBGColor

      public void setBGColor(Color background)
      Sets the background color of the cell.
      Parameters:
      background - the background color of the cell.
    • getColSpan

      public int getColSpan()
      Returns the column span of the cell.
      Returns:
      the column span of the cell.
    • setColSpan

      public void setColSpan(int colSpan)
      Sets the column span of the cell.
      Parameters:
      colSpan - the column span of the cell.
    • getRowSpan

      public int getRowSpan()
      Returns the row span of the cell.
      Returns:
      the row span of the cell.
    • setRowSpan

      public void setRowSpan(int rowSpan)
      Sets the row span of the cell.
      Parameters:
      rowSpan - the row span of the cell.
    • getWidth

      public float getWidth()
      Returns the width of the cell.
      Returns:
      the width of the cell.
    • setWidth

      public void setWidth(float width)
      Sets the width of the cell.
      Parameters:
      width - the width of the cell.
    • getHeight

      public float getHeight()
      Returns the height of the cell.
      Returns:
      the height of the cell.
    • setHeight

      public void setHeight(float height)
      Sets the height of the cell.
      Parameters:
      height - the height of the cell.