public class TableDrawer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TableDrawer.PageData |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
compress |
protected org.apache.pdfbox.pdmodel.PDPageContentStream |
contentStream |
protected List<BiConsumer<Drawer,DrawingContext>> |
drawerList |
protected float |
endY |
protected org.apache.pdfbox.pdmodel.PDPage |
page |
protected float |
startX |
protected float |
startY |
protected Table |
table |
| Constructor and Description |
|---|
TableDrawer() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw() |
void |
draw(Supplier<org.apache.pdfbox.pdmodel.PDDocument> documentSupplier,
Supplier<org.apache.pdfbox.pdmodel.PDPage> pageSupplier,
float yOffset) |
protected void |
drawPage(TableDrawer.PageData pageData) |
protected void |
drawRow(Point2D.Float start,
Row row,
int rowIndex,
BiConsumer<Drawer,DrawingContext> consumer) |
protected void |
drawWithFunction(TableDrawer.PageData pageData,
Point2D.Float startingPoint,
BiConsumer<Drawer,DrawingContext> consumer) |
protected final Table table
protected org.apache.pdfbox.pdmodel.PDPageContentStream contentStream
protected org.apache.pdfbox.pdmodel.PDPage page
protected float startX
protected float startY
protected float endY
protected boolean compress
protected final List<BiConsumer<Drawer,DrawingContext>> drawerList
public void draw()
protected void drawPage(TableDrawer.PageData pageData)
public void draw(Supplier<org.apache.pdfbox.pdmodel.PDDocument> documentSupplier, Supplier<org.apache.pdfbox.pdmodel.PDPage> pageSupplier, float yOffset) throws IOException
IOExceptionprotected void drawWithFunction(TableDrawer.PageData pageData, Point2D.Float startingPoint, BiConsumer<Drawer,DrawingContext> consumer)
protected void drawRow(Point2D.Float start, Row row, int rowIndex, BiConsumer<Drawer,DrawingContext> consumer)
Copyright © 2020. All rights reserved.