Class AbstractTextCell
java.lang.Object
org.vandeseer.easytable.structure.cell.AbstractCell
org.vandeseer.easytable.structure.cell.AbstractTextCell
- Direct Known Subclasses:
TextCell,VerticalTextCell
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbstractTextCell.AbstractTextCellBuilder<C extends AbstractTextCell,B extends AbstractTextCell.AbstractTextCellBuilder<C, B>> Nested classes/interfaces inherited from class org.vandeseer.easytable.structure.cell.AbstractCell
AbstractCell.AbstractCellBuilder<C extends AbstractCell,B extends AbstractCell.AbstractCellBuilder<C, B>> -
Field Summary
FieldsFields inherited from class org.vandeseer.easytable.structure.cell.AbstractCell
drawer, settings -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.vandeseer.easytable.structure.cell.AbstractCell
assertIsRendered, calculateHeightForRowSpan, createDefaultDrawer, getBackgroundColor, getBorderColorBottom, getBorderColorLeft, getBorderColorRight, getBorderColorTop, getBorderStyleBottom, getBorderStyleLeft, getBorderStyleRight, getBorderStyleTop, getBorderWidthBottom, getBorderWidthLeft, getBorderWidthRight, getBorderWidthTop, getDrawer, getHeight, getHorizontalPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getVerticalPadding, hasBackgroundColor, hasBorderBottom, hasBorderLeft, hasBorderRight, hasBorderTop, isHorizontallyAligned, isVerticallyAligned, isWordBreak
-
Field Details
-
textColor
-
lineSpacing
protected float lineSpacing
-
-
Constructor Details
-
AbstractTextCell
public AbstractTextCell()
-
-
Method Details
-
getFont
public org.apache.pdfbox.pdmodel.font.PDFont getFont() -
getFontSize
-
getTextColor
-
getText
-
getMinHeight
public float getMinHeight() -
getTextHeight
public float getTextHeight()Calculates the cell's text's height in respect when horizontally printed/rendered.- Returns:
- the height of the cell's text taking into account spacing and line breaks
-
getWidthOfText
public float getWidthOfText() -
getMaxWidth
public float getMaxWidth()
-