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
public class PDFTable extends PDFBlock
Internal Use Only.Represents a table in a PDF document.
- Author:
- Jamson Chan
-
-
Constructor Summary
Constructors Constructor Description PDFTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRow(PDFTableRow row)Adds a row to the table.floatgetBorderBottomOffset()Returns the bottom border offset of the table.floatgetBorderLeftOffset()Returns the left border offset of the table.floatgetBorderTopOffset()Returns the top border offset of the table.float[]getColWidths()Returns the column widths of the table.PDFTableCell[][]getGrid()Returns the grid of the table.floatgetHeight()Returns the height of the table.floatgetMarginLeft()Returns the left margin of the table.float[]getRowHeights()Returns the row heights of the table.java.util.List<PDFTableRow>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.
-
-
-
Method Detail
-
getRows
public java.util.List<PDFTableRow> getRows()
Returns the rows in the table.- Returns:
- the rows in the table.
-
addRow
public void addRow(PDFTableRow row)
Adds a row to the table.- Parameters:
row- the row to add.
-
getGrid
public PDFTableCell[][] getGrid()
Returns the grid of the table.- Returns:
- the grid of the table.
-
setGrid
public void setGrid(PDFTableCell[][] grid)
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.
-
-