Class PDFTableColumn

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

public class PDFTableColumn extends Object
a prototypic class that contains all information about all cells of that given column. Each cell that is not configured differently will inherit its attributes like borders, fonts and padding from this class. This also incorporates the heading of a column and all the stuff that goes with it.
  • Method Details

    • getHeading

      public String getHeading()
    • setHeading

      public PDFTableColumn setHeading(String heading)
    • getFontSize

      public int getFontSize()
    • setFontSize

      public PDFTableColumn setFontSize(int fontSize)
    • getFont

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

      public PDFTableColumn setFont(org.apache.pdfbox.pdmodel.font.PDFont font)
    • getAlign

      public Align getAlign()
    • setAlign

      public PDFTableColumn setAlign(Align align)
    • getHeadingFontSize

      public int getHeadingFontSize()
      returns the size of the heading font or if not set the size of the normal cell font
      Returns:
      the font size
    • setHeadingFontSize

      public PDFTableColumn setHeadingFontSize(Integer headingFontSize)
      sets the size of the font for the heading or when set to null signals to use the font size used for all other cells
      Parameters:
      headingFontSize - the font size
      Returns:
      this object for chaining
    • getHeadingFont

      public org.apache.pdfbox.pdmodel.font.PDFont getHeadingFont()
      returns the font for the cell heading or the cell heading for the normal cells when no special font is set for the heading
      Returns:
      the font
    • setHeadingFont

      public PDFTableColumn setHeadingFont(org.apache.pdfbox.pdmodel.font.PDFont headingFont)
      sets the font for the heading or when set to null signals to use the font used for all other cells
      Parameters:
      headingFont - the font
      Returns:
      this object for chaining
    • getHeadingAlign

      public Align getHeadingAlign()
      returns the alignment for the cell heading or the cell alignment for the normal cells when no special alignment is set for the heading
      Returns:
      the alignment
    • setHeadingAlign

      public PDFTableColumn setHeadingAlign(Align headingAlign)
      sets the alignment for the heading or when set to null signals to use the alignment used for all other cells
      Parameters:
      headingAlign - the alignment
      Returns:
      this object for chaining
    • getHeadingFontColor

      public Color getHeadingFontColor()
      returns the font color for the cell heading or the font color for the normal cells when no special font color is set for the heading
      Returns:
      the color
    • setHeadingFontColor

      public PDFTableColumn setHeadingFontColor(Color headingFontColor)
      sets the font color for the heading or when set to null signals to use the font color used for all other cells
      Parameters:
      headingFontColor - the font color
      Returns:
      this object for chaining
    • getHeadingBackgroundColor

      public Color getHeadingBackgroundColor()
      returns the background color for the cell heading or the background color for the normal cells when no special background color is set for the heading
      Returns:
      the color
    • setHeadingBackgroundColor

      public PDFTableColumn setHeadingBackgroundColor(Color headingBackgroundColor)
      sets the heading background color for the heading or when set to null signals to use the background color used for all other cells
      Parameters:
      headingBackgroundColor - background color
      Returns:
      this object for chaining
    • getWidth

      public float getWidth()
    • getBorderLeft

      public PDFTableBorder getBorderLeft()
    • setBorderLeft

      public PDFTableColumn setBorderLeft(PDFTableBorder borderLeft)
    • getBorderRight

      public PDFTableBorder getBorderRight()
    • setBorderRight

      public PDFTableColumn setBorderRight(PDFTableBorder borderRight)
    • getBorderTop

      public PDFTableBorder getBorderTop()
    • setBorderTop

      public PDFTableColumn setBorderTop(PDFTableBorder borderTop)
    • getBorderBottom

      public PDFTableBorder getBorderBottom()
    • setBorderBottom

      public PDFTableColumn setBorderBottom(PDFTableBorder borderBottom)
    • setBorder

      public PDFTableColumn setBorder(PDFTableBorder border)
      sets all surrounding borders to the given border
      Parameters:
      border - the border
      Returns:
      this object for chaining
    • setPadding

      public PDFTableColumn setPadding(float padding)
    • getPaddingLeft

      public float getPaddingLeft()
    • setPaddingLeft

      public PDFTableColumn setPaddingLeft(float paddingLeft)
    • getPaddingRight

      public float getPaddingRight()
    • setPaddingRight

      public PDFTableColumn setPaddingRight(float paddingRight)
    • getPaddingTop

      public float getPaddingTop()
    • setPaddingTop

      public PDFTableColumn setPaddingTop(float paddingTop)
    • getPaddingBottom

      public float getPaddingBottom()
    • setPaddingBottom

      public PDFTableColumn setPaddingBottom(float paddingBottom)
    • getLineSpacingFactor

      public float getLineSpacingFactor()
    • setLineSpacingFactor

      public PDFTableColumn setLineSpacingFactor(float lineSpacingFactor)
    • getFontColor

      public Color getFontColor()
    • setFontColor

      public PDFTableColumn setFontColor(Color fontColor)
    • getBackgroundColor

      public Color getBackgroundColor()
    • setBackgroundColor

      public PDFTableColumn setBackgroundColor(Color backgroundColor)