|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.rups.model.BackgroundTask com.lowagie.rups.model.PageLoader
public class PageLoader
Loads all the PDFPage objects for SUN's PDF Renderer in Background.
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 com.sun.pdfview.PDFFile |
file
The PDFFile (SUN's PDF Renderer class) |
protected int |
numberOfPages
The total number of pages. |
Constructor Summary | |
---|---|
PageLoader(com.sun.pdfview.PDFFile file)
Creates a new page loader. |
Method Summary | |
---|---|
void |
doTask()
Implement this class; the time-consuming task will go here. |
int |
getNumberOfPages()
Getter for the number of pages. |
com.sun.pdfview.PDFPage |
loadPage(int pageNumber)
Loads a page. |
Methods inherited from class com.lowagie.rups.model.BackgroundTask |
---|
finished, interrupt, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.sun.pdfview.PDFFile file
protected int numberOfPages
protected boolean[] busy
protected boolean[] done
Constructor Detail |
---|
public PageLoader(com.sun.pdfview.PDFFile file)
file
- the PDFFile (SUN's PDF Renderer)Method Detail |
---|
public int getNumberOfPages()
public com.sun.pdfview.PDFPage loadPage(int pageNumber)
pageNumber
- the number of the page that has to be loaded.
public void doTask()
BackgroundTask
doTask
in class BackgroundTask
BackgroundTask.doTask()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |