PageTableArea
Inheritance: java.lang.Object, com.groupdocs.parser.data.PageArea
public class PageTableArea extends PageArea
Represents a table page area which is used to represent a table in the parsing by template functionality.
PageTableArea class is used to organize inheritors of PageArea class in table structure.
Constructors
Constructor | Description |
---|---|
PageTableArea(Iterable |
Initializes a new instance of the PageTableArea class. |
Methods
Method | Description |
---|---|
getRowCount() | Gets the total number of the table rows. |
getColumnCount() | Gets the total number of the table colums. |
getRowHeight(int rowIndex) | Returns the row height. |
getColumnWidth(int columnIndex) | Returns the column width. |
getCell(int rowIndex, int columnIndex) | Gets the table cell by row and column indexes. |
PageTableArea(Iterable rows, Iterable columns, Iterable cells, Page page, Rectangle rectangle)
public PageTableArea(Iterable<Double> rows, Iterable<Double> columns, Iterable<PageTableAreaCell> cells, Page page, Rectangle rectangle)
Initializes a new instance of the PageTableArea class.
Parameters:
Parameter | Type | Description |
---|---|---|
rows | java.lang.Iterable<java.lang.Double> | The collection of row heights. |
columns | java.lang.Iterable<java.lang.Double> | The collection of column widths. |
cells | java.lang.Iterable<com.groupdocs.parser.data.PageTableAreaCell> | The collection of cells. |
page | Page | The page that contains the table. |
rectangle | Rectangle | The rectangular area that contains the table. |
getRowCount()
public int getRowCount()
Gets the total number of the table rows.
Returns: int - An integer value that contains the total number of the table rows.
getColumnCount()
public int getColumnCount()
Gets the total number of the table colums.
Returns: int - An integer value that contains the total number of the table columns.
getRowHeight(int rowIndex)
public double getRowHeight(int rowIndex)
Returns the row height.
Parameters:
Parameter | Type | Description |
---|---|---|
rowIndex | int | The zero-based index of the row. |
Returns: double - A double value that represents the height of the row.
getColumnWidth(int columnIndex)
public double getColumnWidth(int columnIndex)
Returns the column width.
Parameters:
Parameter | Type | Description |
---|---|---|
columnIndex | int | The zero-based index of the column. |
Returns: double - A double value that represents the width of the column.
getCell(int rowIndex, int columnIndex)
public PageTableAreaCell getCell(int rowIndex, int columnIndex)
Gets the table cell by row and column indexes.
Parameters:
Parameter | Type | Description |
---|---|---|
rowIndex | int | The zero-based index of the cell row. |
columnIndex | int | The zero-based index of the cell column. |
Returns: PageTableAreaCell - An instance of PageTableAreaCell class; null if no cell is found.