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 a image cell with provided width and
Image |
Cell<T> |
createImageCell(float width,
Image img,
HorizontalAlignment align,
VerticalAlignment valign) |
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 |
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) |
float |
xEnd() |
public Cell<T> createCell(float width, String value)
Creates a cell with provided width, cell value and default left top alignment
width - value - public ImageCell<T> createImageCell(float width, Image img)
Creates a image cell with provided width and Image
width - Cell's widthimg - Image in the cellpublic Cell<T> createImageCell(float width, Image img, HorizontalAlignment align, VerticalAlignment valign)
public Cell<T> createCell(float width, String value, HorizontalAlignment align, VerticalAlignment valign)
Creates a cell with provided width, cell value, horizontal and vertical alignment
width - value - align - valign - public Cell<T> createCell(String value)
Creates a cell with the same width as the corresponding header cell
value - public 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)
Copyright © 2016. All rights reserved.