Package com.moebiusgames.pdfbox.table
Class PDFTableCell
java.lang.Object
com.moebiusgames.pdfbox.table.PDFTableCell
-
Method Summary
Modifier and TypeMethodDescriptiongetAlign()org.apache.pdfbox.pdmodel.font.PDFontgetFont()intfloatfloatfloatfloatfloatintgetSize()returns the size in columns of this cellfloatreturns the size that there is for text in this cellfloatgetWidth()returns the width of this cell in user space unitsfloatgetWidth(int n) returns the width of segment n of this (multi column) cellbooleanhasAlign()booleanbooleanbooleanbooleanbooleanhasFont()booleanvoidmerge(int n) merges this cell with the next n cellssetBackgroundColor(Color backgroundColor) setBorderBottom(PDFTableBorder borderBottom) setBorderLeft(PDFTableBorder borderLeft) setBorderRight(PDFTableBorder borderRight) setBorderTop(PDFTableBorder borderTop) setContent(String content) setFont(org.apache.pdfbox.pdmodel.font.PDFont font) setFontColor(Color fontColor) setFontSize(int fontSize) setLineSpacingFactor(float lineSpacingFactor) setPadding(float padding) setPaddingBottom(float paddingBottom) setPaddingLeft(float paddingLeft) setPaddingRight(float paddingRight) setPaddingTop(float paddingTop) setTextType(TextType textType)
-
Method Details
-
setContent
-
getContent
-
getFont
public org.apache.pdfbox.pdmodel.font.PDFont getFont() -
getFontSize
public int getFontSize() -
getAlign
-
setAlign
-
hasAlign
public boolean hasAlign() -
getTextType
-
setTextType
-
setFont
-
setFontSize
-
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
-
hasBorderLeft
public boolean hasBorderLeft() -
setBorderLeft
-
getBorderRight
-
hasBorderRight
public boolean hasBorderRight() -
setBorderRight
-
getBorderTop
-
hasBorderTop
public boolean hasBorderTop() -
setBorderTop
-
getBorderBottom
-
hasBorderBottom
public boolean hasBorderBottom() -
setBorderBottom
-
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
-
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
-