Package be.quodlibet.boxable
Class Row<T extends org.apache.pdfbox.pdmodel.PDPage>
java.lang.Object
be.quodlibet.boxable.Row<T>
-
Method Summary
Modifier and TypeMethodDescriptioncreateCell(float width, String value) Creates a cell with provided width, cell value and default left top alignmentcreateCell(float width, String value, HorizontalAlignment align, VerticalAlignment valign) Creates a cell with provided width, cell value, horizontal and vertical alignmentcreateCell(String value) Creates a cell with the same width as the corresponding header cellcreateImageCell(float width, Image img) Creates an image cell with provided width andImagecreateImageCell(float width, Image img, HorizontalAlignment align, VerticalAlignment valign) 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 dataorg.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItemgetCells()intfloatGets maximal height of the cells in current row therefore row's height.protected floatfloatfloatfloatgetWidth()booleanvoidsetBookmark(org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem bookmark) voidvoidsetHeaderRow(boolean headerRow) voidsetHeight(float height) voidsetLineSpacing(float lineSpacing) floatxEnd()
-
Method Details
-
createCell
Creates a cell with provided width, cell value and default left top alignment
- Parameters:
width- Absolute width in points or in % of table widthvalue- Cell's value (content)- Returns:
- New
Cell
-
createImageCell
Creates an image cell with provided width and
Image -
createImageCell
public Cell<T> createImageCell(float width, Image img, HorizontalAlignment align, VerticalAlignment valign) -
createTableCell
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
- Parameters:
width- Table widthtableData- Table's data (HTML table tags)doc-PDDocumentwhere this table will be drawnpage-PDPagewhere this table cell will be drawnyStart- Y position from which table will be drawnpageTopMargin-TableCell's top marginpageBottomMargin-TableCell's bottom margin- Returns:
TableCellwith provided width and table data
-
createCell
public Cell<T> createCell(float width, String value, HorizontalAlignment align, VerticalAlignment valign) Creates a cell with provided width, cell value, horizontal and vertical alignment
- Parameters:
width- Absolute width in points or in % of table widthvalue- Cell's value (content)align- Cell'sHorizontalAlignmentvalign- Cell'sVerticalAlignment- Returns:
- New
Cell
-
createCell
Creates a cell with the same width as the corresponding header cell
- Parameters:
value- Cell's value (content)- Returns:
- new
Cell
-
getHeight
public float getHeight()Gets maximal height of the cells in current row therefore row's height.
- Returns:
- Row's height
-
getLineHeight
- Throws:
IOException
-
setHeight
public void setHeight(float height) -
getCells
-
getColCount
public int getColCount() -
setCells
-
getWidth
public float getWidth() -
getBookmark
public org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem getBookmark() -
getLastCellExtraWidth
protected float getLastCellExtraWidth() -
xEnd
public float xEnd() -
isHeaderRow
public boolean isHeaderRow() -
setHeaderRow
public void setHeaderRow(boolean headerRow) -
getLineSpacing
public float getLineSpacing() -
setLineSpacing
public void setLineSpacing(float lineSpacing)
-