Class PDFTableCell

java.lang.Object
com.moebiusgames.pdfbox.table.PDFTableCell

public class PDFTableCell extends Object
  • Method Details

    • setContent

      public PDFTableCell setContent(String content)
    • getContent

      public String getContent()
    • getFont

      public org.apache.pdfbox.pdmodel.font.PDFont getFont()
    • getFontSize

      public int getFontSize()
    • getAlign

      public Align getAlign()
    • setAlign

      public PDFTableCell setAlign(Align align)
    • hasAlign

      public boolean hasAlign()
    • getTextType

      public TextType getTextType()
    • setTextType

      public PDFTableCell setTextType(TextType textType)
    • setFont

      public PDFTableCell setFont(org.apache.pdfbox.pdmodel.font.PDFont font)
    • setFontSize

      public PDFTableCell setFontSize(int fontSize)
    • hasFont

      public boolean hasFont()
    • hasFontSize

      public boolean hasFontSize()
    • getSize

      public int getSize()
      returns the size in columns of this cell
      Returns:
      return the size of the cell
    • getBorderLeft

      public PDFTableBorder getBorderLeft()
    • hasBorderLeft

      public boolean hasBorderLeft()
    • setBorderLeft

      public PDFTableCell setBorderLeft(PDFTableBorder borderLeft)
    • getBorderRight

      public PDFTableBorder getBorderRight()
    • hasBorderRight

      public boolean hasBorderRight()
    • setBorderRight

      public PDFTableCell setBorderRight(PDFTableBorder borderRight)
    • getBorderTop

      public PDFTableBorder getBorderTop()
    • hasBorderTop

      public boolean hasBorderTop()
    • setBorderTop

      public PDFTableCell setBorderTop(PDFTableBorder borderTop)
    • getBorderBottom

      public PDFTableBorder getBorderBottom()
    • hasBorderBottom

      public boolean hasBorderBottom()
    • setBorderBottom

      public PDFTableCell setBorderBottom(PDFTableBorder borderBottom)
    • setPadding

      public PDFTableCell setPadding(float padding)
    • getPaddingLeft

      public float getPaddingLeft()
    • setPaddingLeft

      public PDFTableCell setPaddingLeft(float paddingLeft)
    • getPaddingRight

      public float getPaddingRight()
    • setPaddingRight

      public PDFTableCell setPaddingRight(float paddingRight)
    • getPaddingTop

      public float getPaddingTop()
    • setPaddingTop

      public PDFTableCell setPaddingTop(float paddingTop)
    • getPaddingBottom

      public float getPaddingBottom()
    • setPaddingBottom

      public PDFTableCell setPaddingBottom(float paddingBottom)
    • getLineSpacingFactor

      public float getLineSpacingFactor()
    • setLineSpacingFactor

      public PDFTableCell setLineSpacingFactor(float lineSpacingFactor)
    • getFontColor

      public Color getFontColor()
    • setFontColor

      public PDFTableCell setFontColor(Color fontColor)
    • getBackgroundColor

      public Color getBackgroundColor()
    • setBackgroundColor

      public PDFTableCell setBackgroundColor(Color backgroundColor)
    • getWidth

      public float getWidth()
      returns the width of this cell in user space units
      Returns:
      the width of the cell
    • getWidth

      public float getWidth(int n)
      returns the width of segment n of this (multi column) cell
      Parameters:
      n - number of segments
      Returns:
      the width of the given n next columns
    • getTextSpaceWidth

      public float getTextSpaceWidth()
      returns the size that there is for text in this cell
      Returns:
      the size for text in this cell
    • merge

      public void merge(int n)
      merges this cell with the next n cells
      Parameters:
      n - number of next cells to merge