Class AbstractTextCell
- java.lang.Object
-
- org.vandeseer.easytable.structure.cell.AbstractCell
-
- org.vandeseer.easytable.structure.cell.AbstractTextCell
-
- Direct Known Subclasses:
TextCell,VerticalTextCell
public abstract class AbstractTextCell extends AbstractCell
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static 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
Fields Modifier and Type Field Description protected floatlineSpacingprotected ColortextColor-
Fields inherited from class org.vandeseer.easytable.structure.cell.AbstractCell
drawer, settings
-
-
Constructor Summary
Constructors Constructor Description AbstractTextCell()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.apache.pdfbox.pdmodel.font.PDFontgetFont()IntegergetFontSize()floatgetMaxWidth()floatgetMinHeight()abstract StringgetText()ColorgetTextColor()floatgetTextHeight()Calculates the cell's text's height in respect when horizontally printed/rendered.floatgetWidthOfText()-
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 Detail
-
textColor
protected Color textColor
-
lineSpacing
protected float lineSpacing
-
-
Method Detail
-
getFont
public org.apache.pdfbox.pdmodel.font.PDFont getFont()
-
getFontSize
public Integer getFontSize()
-
getTextColor
public Color getTextColor()
-
getText
public abstract String 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()
-
-