java.lang.Object | |||
↳ | com.pdftron.layout.ContentElement | ||
↳ | com.pdftron.layout.ContentNode | ||
↳ | com.pdftron.layout.Table |
A Table is a content node that contains a grid of cells.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TableRow |
addTableRow()
Add a new row to the table
| ||||||||||
double |
getBorderThickness()
Get the border thickness of the table
| ||||||||||
double |
getDefaultRowHeight()
Get default row height of the table
| ||||||||||
int |
getNumColumns()
Get the number of columns in the table
| ||||||||||
int |
getNumRows()
Get the number of rows in the table
| ||||||||||
TableCell |
getTableCell(int column, int row)
Get a cell from the table
| ||||||||||
void |
setBorder(double thickness, int red, int green, int blue)
Set the cell's border thickness and color
The color values must be between 0 and 255, otherwise an exception will
be thrown.
| ||||||||||
void |
setDefaultColumnWidth(double val)
Set default column weight of the table
| ||||||||||
void |
setDefaultRowHeight(double val)
Set default row height of the table
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.layout.ContentNode
| |||||||||||
From class
com.pdftron.layout.ContentElement
| |||||||||||
From class
java.lang.Object
|
Get the number of columns in the table
PDFNetException |
---|
Get a cell from the table
column | The column index of the cell to retrieve |
---|---|
row | The row index of the cell to retrieve |
PDFNetException |
---|
Set the cell's border thickness and color The color values must be between 0 and 255, otherwise an exception will be thrown.
thickness | The thickness of the border in points |
---|---|
red | The red component of the border color |
green | The green component of the border color |
blue | The blue component of the border color |
IllegalArgumentException | - if red, green or blue are outside of the range 0 to 255, inclusive |
---|---|
PDFNetException |
Set default column weight of the table
val | The default column weight |
---|
PDFNetException |
---|