Class TextCellDrawer<T extends AbstractTextCell>
- java.lang.Object
-
- org.vandeseer.easytable.drawing.cell.AbstractCellDrawer<AbstractTextCell>
-
- org.vandeseer.easytable.drawing.cell.TextCellDrawer<T>
-
- All Implemented Interfaces:
Drawer
public class TextCellDrawer<T extends AbstractTextCell> extends AbstractCellDrawer<AbstractTextCell>
-
-
Field Summary
-
Fields inherited from class org.vandeseer.easytable.drawing.cell.AbstractCellDrawer
cell
-
-
Constructor Summary
Constructors Constructor Description TextCellDrawer(T cell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>calculateAndGetLines(org.apache.pdfbox.pdmodel.font.PDFont currentFont, int currentFontSize, float maxWidth)protected floatcalculateCharSpacingFor(String line)protected floatcalculateInnerHeight()voiddrawContent(DrawingContext drawingContext)protected voiddrawText(DrawingContext drawingContext, PositionedStyledText positionedStyledText)-
Methods inherited from class org.vandeseer.easytable.drawing.cell.AbstractCellDrawer
calculateOuterHeight, drawBackground, drawBorders, getAdaptionForVerticalAlignment, getRowSpanAdaption, rowHeightIsBiggerThanOrEqualToCellHeight, withCell
-
-
-
-
Constructor Detail
-
TextCellDrawer
public TextCellDrawer(T cell)
-
-
Method Detail
-
drawContent
public void drawContent(DrawingContext drawingContext)
- Specified by:
drawContentin interfaceDrawer- Specified by:
drawContentin classAbstractCellDrawer<AbstractTextCell>
-
calculateInnerHeight
protected float calculateInnerHeight()
- Specified by:
calculateInnerHeightin classAbstractCellDrawer<AbstractTextCell>
-
calculateCharSpacingFor
protected float calculateCharSpacingFor(String line)
-
calculateAndGetLines
protected List<String> calculateAndGetLines(org.apache.pdfbox.pdmodel.font.PDFont currentFont, int currentFontSize, float maxWidth)
-
drawText
protected void drawText(DrawingContext drawingContext, PositionedStyledText positionedStyledText) throws IOException
- Throws:
IOException
-
-