public class Row<T extends org.apache.pdfbox.pdmodel.PDPage> extends Object
| Modifier and Type | Method and Description |
|---|---|
Cell<T> |
createCell(float width,
String value)
Creates a cell with provided width, cell value and default left top
alignment
|
Cell<T> |
createCell(float width,
String value,
HorizontalAlignment align,
VerticalAlignment valign)
Creates a cell with provided width, cell value, horizontal and vertical
alignment
|
Cell<T> |
createCell(String value)
Creates a cell with the same width as the corresponding header cell
|
ImageCell<T> |
createImageCell(float width,
Image img)
Creates an image cell with provided width and
Image |
Cell<T> |
createImageCell(float width,
Image img,
HorizontalAlignment align,
VerticalAlignment valign) |
TableCell<T> |
createTableCell(float width,
String tableData,
org.apache.pdfbox.pdmodel.PDDocument doc,
org.apache.pdfbox.pdmodel.PDPage page,
float yStart,
float pageTopMargin,
float pageBottomMargin)
Creates a table cell with provided width and table data
|
org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem |
getBookmark() |
List<Cell<T>> |
getCells() |
int |
getColCount() |
float |
getHeight()
Gets maximal height of the cells in current row therefore row's height.
|
protected float |
getLastCellExtraWidth() |
float |
getLineHeight() |
float |
getLineSpacing() |
float |
getWidth() |
boolean |
isHeaderRow() |
void |
setBookmark(org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem bookmark) |
void |
setCells(List<Cell<T>> cells) |
void |
setHeaderRow(boolean headerRow) |
void |
setHeight(float height) |
void |
setLineSpacing(float lineSpacing) |
float |
xEnd() |
public Cell<T> createCell(float width, String value)
Creates a cell with provided width, cell value and default left top alignment
width - Absolute width in points or in % of table widthvalue - Cell's value (content)Cellpublic ImageCell<T> createImageCell(float width, Image img)
Creates an image cell with provided width and Image
public Cell<T> createImageCell(float width, Image img, HorizontalAlignment align, VerticalAlignment valign)
public TableCell<T> createTableCell(float width, String tableData, org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, float yStart, float pageTopMargin, float pageBottomMargin)
Creates a table cell with provided width and table data
width - Table widthtableData - Table's data (HTML table tags)doc - PDDocument where this table will be drawnpage - PDPage where this table cell will be drawnyStart - Y position from which table will be drawnpageTopMargin - TableCell's top marginpageBottomMargin - TableCell's bottom marginTableCell with provided width and table datapublic Cell<T> createCell(float width, String value, HorizontalAlignment align, VerticalAlignment valign)
Creates a cell with provided width, cell value, horizontal and vertical alignment
width - Absolute width in points or in % of table widthvalue - Cell's value (content)align - Cell's HorizontalAlignmentvalign - Cell's VerticalAlignmentCellpublic Cell<T> createCell(String value)
Creates a cell with the same width as the corresponding header cell
value - Cell's value (content)Cellpublic float getHeight()
Gets maximal height of the cells in current row therefore row's height.
public float getLineHeight()
throws IOException
IOExceptionpublic void setHeight(float height)
public int getColCount()
public float getWidth()
public org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem getBookmark()
public void setBookmark(org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem bookmark)
protected float getLastCellExtraWidth()
public float xEnd()
public boolean isHeaderRow()
public void setHeaderRow(boolean headerRow)
public float getLineSpacing()
public void setLineSpacing(float lineSpacing)
Copyright © 2020. All rights reserved.