PageRenderInfo
Inheritance: java.lang.Object
public class PageRenderInfo
Represents the information of how a page is rendered.
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.
Constructors
Constructor | Description |
---|---|
PageRenderInfo(int pageNumber, int rowCount, int columnCount) | Initializes a new instance of the PageRenderInfo class. |
Methods
Method | Description |
---|---|
getPageNumber() | Gets the page number. |
getRowCount() | Get the total number of tiles rows. |
getColumnCount() | Get the total number of tiles columns. |
getColumn(int tileIndex) | Returns the index of column where the tile with tileIndex is placed. |
getRow(int tileIndex) | Returns the index of row where the tile with tileIndex is placed. |
PageRenderInfo(int pageNumber, int rowCount, int columnCount)
public PageRenderInfo(int pageNumber, int rowCount, int columnCount)
Initializes a new instance of the PageRenderInfo class.
Parameters:
Parameter | Type | Description |
---|---|---|
pageNumber | int | The number of the page (starts with 1). |
rowCount | int | The total number of tiles rows. |
columnCount | int | The total number of tiles columns. |
getPageNumber()
public int getPageNumber()
Gets the page number.
Returns: int - The integer value that represents the page number (starts with 1).
getRowCount()
public int getRowCount()
Get the total number of tiles rows.
Returns: int - The integer value that represents the total number of tiles rows.
getColumnCount()
public int getColumnCount()
Get the total number of tiles columns.
Returns: int - The integer value that represents the total number of tiles columns.
getColumn(int tileIndex)
public int getColumn(int tileIndex)
Returns the index of column where the tile with tileIndex is placed.
Parameters:
Parameter | Type | Description |
---|---|---|
tileIndex | int | The zero-based index of the tile. |
Returns: int - The zero-based integer value that represents the column index.
getRow(int tileIndex)
public int getRow(int tileIndex)
Returns the index of row where the tile with tileIndex is placed.
Parameters:
Parameter | Type | Description |
---|---|---|
tileIndex | int | The zero-based index of the tile. |
Returns: int - The zero-based integer value that represents the row index.