com.lowagie.rups.model
public class PageLoader extends BackgroundTask
| Field Summary | |
|---|---|
| protected boolean[] | busy True for pages with page number equal to index + 1 that are being loaded. |
| protected boolean[] | done True for pages with page number equal to index + 1 that have already been loaded. |
| protected PDFFile | file The PDFFile (SUN's PDF Renderer class) |
| protected int | numberOfPages The total number of pages. |
| Constructor Summary | |
|---|---|
| PageLoader(PDFFile file)
Creates a new page loader. | |
| Method Summary | |
|---|---|
| void | doTask() |
| int | getNumberOfPages()
Getter for the number of pages. |
| PDFPage | loadPage(int pageNumber)
Loads a page. |
Parameters: file the PDFFile (SUN's PDF Renderer)
See Also: doTask
Returns: the number of pages in the PDF file.
Parameters: pageNumber the number of the page that has to be loaded.
Returns: the PDFPage that has been loaded.