public class PageRenderInfo extends Object
Some documents (spreadsheets, for example) are not possible to render a page as a single image. For those documents a page is rendered as a set of tiles. These tiles are placed in the rectangular table.
RowCount
and ColumnCount
represent the total number of rows and columns
of this table. If document page is rendered to the single image these properties are equal to 1.
Constructor and Description |
---|
PageRenderInfo(int pageNumber,
int rowCount,
int columnCount)
Initializes a new instance of the
PageRenderInfo class. |
Modifier and Type | Method and Description |
---|---|
int |
getColumn(int tileIndex)
Returns the index of column where the tile with
tileIndex is placed. |
int |
getColumnCount()
Get the total number of tiles columns.
|
int |
getPageNumber()
Gets the page number.
|
int |
getRow(int tileIndex)
Returns the index of row where the tile with
tileIndex is placed. |
int |
getRowCount()
Get the total number of tiles rows.
|
public PageRenderInfo(int pageNumber, int rowCount, int columnCount)
PageRenderInfo
class.pageNumber
- The number of the page (starts with 1).rowCount
- The total number of tiles rows.columnCount
- The total number of tiles columns.public int getPageNumber()
public int getRowCount()
public int getColumnCount()
public int getColumn(int tileIndex)
tileIndex
is placed.tileIndex
- The zero-based index of the tile.public int getRow(int tileIndex)
tileIndex
is placed.tileIndex
- The zero-based index of the tile.