Package com.moebiusgames.pdfbox.table
Class PDFTableColumn
java.lang.Object
com.moebiusgames.pdfbox.table.PDFTableColumn
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 Summary
Modifier and TypeMethodDescriptiongetAlign()org.apache.pdfbox.pdmodel.font.PDFontgetFont()intreturns the alignment for the cell heading or the cell alignment for the normal cells when no special alignment is set for the headingreturns the background color for the cell heading or the background color for the normal cells when no special background color is set for the headingorg.apache.pdfbox.pdmodel.font.PDFontreturns the font for the cell heading or the cell heading for the normal cells when no special font is set for the headingreturns the font color for the cell heading or the font color for the normal cells when no special font color is set for the headingintreturns the size of the heading font or if not set the size of the normal cell fontfloatfloatfloatfloatfloatfloatgetWidth()setBackgroundColor(Color backgroundColor) setBorder(PDFTableBorder border) sets all surrounding borders to the given bordersetBorderBottom(PDFTableBorder borderBottom) setBorderLeft(PDFTableBorder borderLeft) setBorderRight(PDFTableBorder borderRight) setBorderTop(PDFTableBorder borderTop) setFont(org.apache.pdfbox.pdmodel.font.PDFont font) setFontColor(Color fontColor) setFontSize(int fontSize) setHeading(String heading) setHeadingAlign(Align headingAlign) sets the alignment for the heading or when set to null signals to use the alignment used for all other cellssetHeadingBackgroundColor(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 cellssetHeadingFont(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 cellssetHeadingFontColor(Color headingFontColor) sets the font color for the heading or when set to null signals to use the font color used for all other cellssetHeadingFontSize(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 cellssetLineSpacingFactor(float lineSpacingFactor) setPadding(float padding) setPaddingBottom(float paddingBottom) setPaddingLeft(float paddingLeft) setPaddingRight(float paddingRight) setPaddingTop(float paddingTop)
-
Method Details
-
getHeading
-
setHeading
-
getFontSize
public int getFontSize() -
setFontSize
-
getFont
public org.apache.pdfbox.pdmodel.font.PDFont getFont() -
setFont
-
getAlign
-
setAlign
-
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
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
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
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
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
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
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
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
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
-
setBorderLeft
-
getBorderRight
-
setBorderRight
-
getBorderTop
-
setBorderTop
-
getBorderBottom
-
setBorderBottom
-
setBorder
sets all surrounding borders to the given border- Parameters:
border- the border- Returns:
- this object for chaining
-
setPadding
-
getPaddingLeft
public float getPaddingLeft() -
setPaddingLeft
-
getPaddingRight
public float getPaddingRight() -
setPaddingRight
-
getPaddingTop
public float getPaddingTop() -
setPaddingTop
-
getPaddingBottom
public float getPaddingBottom() -
setPaddingBottom
-
getLineSpacingFactor
public float getLineSpacingFactor() -
setLineSpacingFactor
-
getFontColor
-
setFontColor
-
getBackgroundColor
-
setBackgroundColor
-