public class PageTableArea extends PageArea
PageTableArea
class is used to organize inheritors of PageArea
class in table structure.
Constructor and Description |
---|
PageTableArea(Iterable<Double> rows,
Iterable<Double> columns,
Iterable<PageTableAreaCell> cells,
Page page,
Rectangle rectangle)
Initializes a new instance of the
PageTableArea class. |
Modifier and Type | Method and Description |
---|---|
PageTableAreaCell |
getCell(int rowIndex,
int columnIndex)
Gets the table cell by row and column indexes.
|
Collection<PageTableAreaCell> |
getCells()
Gets the collection of cells.
|
int |
getColumnCount()
Gets the total number of the table colums.
|
double |
getColumnWidth(int columnIndex)
Returns the column width.
|
int |
getRowCount()
Gets the total number of the table rows.
|
double |
getRowHeight(int rowIndex)
Returns the row height.
|
getPage, getRectangle, setRectangle
public PageTableArea(Iterable<Double> rows, Iterable<Double> columns, Iterable<PageTableAreaCell> cells, Page page, Rectangle rectangle)
PageTableArea
class.rows
- The collection of row heights.columns
- The collection of column widths.cells
- The collection of cells.page
- The page that contains the table.rectangle
- The rectangular area that contains the table.public Collection<PageTableAreaCell> getCells()
public int getRowCount()
public int getColumnCount()
public double getRowHeight(int rowIndex)
rowIndex
- The zero-based index of the row.public double getColumnWidth(int columnIndex)
columnIndex
- The zero-based index of the column.public PageTableAreaCell getCell(int rowIndex, int columnIndex)
rowIndex
- The zero-based index of the cell row.columnIndex
- The zero-based index of the cell column.PageTableAreaCell
class; null
if no cell is found.