Package io.keikai.doc.io.schema.pdf
Class PDFTable
java.lang.Object
io.keikai.doc.io.schema.pdf.PDFBlock
io.keikai.doc.io.schema.pdf.PDFTable
- All Implemented Interfaces:
IPDFElement
Internal Use Only.
Represents a table in a PDF document.
- Author:
- Jamson Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRow(PDFTableRow row) Adds a row to the table.floatReturns the bottom border offset of the table.floatReturns the left border offset of the table.floatReturns the top border offset of the table.float[]Returns the column widths of the table.PDFTableCell[][]getGrid()Returns the grid of the table.floatReturns the height of the table.floatReturns the left margin of the table.float[]Returns the row heights of the table.getRows()Returns the rows in the table.voidsetBorderBottomOffset(float borderBottomOffset) Sets the bottom border offset of the table.voidsetBorderLeftOffset(float borderLeftOffset) Sets the left border offset of the table.voidsetBorderTopOffset(float borderTopOffset) Sets the top border offset of the table.voidsetColWidths(float[] colWidths) Sets the column widths of the table.voidsetGrid(PDFTableCell[][] grid) Sets the grid of the table.voidsetMarginLeft(float marginLeft) Sets the left margin of the table.voidsetRowHeights(float[] rowHeights) Sets the row heights of the table.
-
Constructor Details
-
PDFTable
public PDFTable()
-
-
Method Details
-
getRows
Returns the rows in the table.- Returns:
- the rows in the table.
-
addRow
Adds a row to the table.- Parameters:
row- the row to add.
-
getGrid
Returns the grid of the table.- Returns:
- the grid of the table.
-
setGrid
Sets the grid of the table.- Parameters:
grid- the grid of the table.
-
getRowHeights
public float[] getRowHeights()Returns the row heights of the table.- Returns:
- the row heights of the table.
-
setRowHeights
public void setRowHeights(float[] rowHeights) Sets the row heights of the table.- Parameters:
rowHeights- the row heights of the table.
-
getColWidths
public float[] getColWidths()Returns the column widths of the table.- Returns:
- the column widths of the table.
-
setColWidths
public void setColWidths(float[] colWidths) Sets the column widths of the table.- Parameters:
colWidths- the column widths of the table.
-
getMarginLeft
public float getMarginLeft()Returns the left margin of the table.- Returns:
- the left margin of the table.
-
setMarginLeft
public void setMarginLeft(float marginLeft) Sets the left margin of the table.- Parameters:
marginLeft- the left margin of the table.
-
getBorderTopOffset
public float getBorderTopOffset()Returns the top border offset of the table.- Returns:
- the top border offset of the table.
-
setBorderTopOffset
public void setBorderTopOffset(float borderTopOffset) Sets the top border offset of the table.- Parameters:
borderTopOffset- the top border offset of the table.
-
getBorderBottomOffset
public float getBorderBottomOffset()Returns the bottom border offset of the table.- Returns:
- the bottom border offset of the table.
-
setBorderBottomOffset
public void setBorderBottomOffset(float borderBottomOffset) Sets the bottom border offset of the table.- Parameters:
borderBottomOffset- the bottom border offset of the table.
-
getBorderLeftOffset
public float getBorderLeftOffset()Returns the left border offset of the table.- Returns:
- the left border offset of the table.
-
setBorderLeftOffset
public void setBorderLeftOffset(float borderLeftOffset) Sets the left border offset of the table.- Parameters:
borderLeftOffset- the left border offset of the table.
-
getHeight
public float getHeight()Returns the height of the table.- Returns:
- the height of the table.
-