public class ImageDocumentController extends PageableDocumentController
| Constructor and Description |
|---|
ImageDocumentController(DocumentViewer documentViewer) |
| Modifier and Type | Method and Description |
|---|---|
void |
bufferPages(int currentPageNum) |
void |
closeDocument() |
IDocument |
getActiveDocument() |
String |
getFileName() |
IPage |
getPage(int index) |
int |
getPageCount() |
List<IPage> |
getPages() |
boolean |
isDocumentLoaded() |
void |
loadDocument(InputStream inputStream,
String password,
List<DocumentListener> documentListeners) |
void |
loadDocument(String fileName,
String password,
List<DocumentListener> documentListeners) |
void |
renderingSettingsChanged(RenderingSettings renderingSettings) |
public ImageDocumentController(DocumentViewer documentViewer)
public IPage getPage(int index) throws XDocException
getPage in class PageableDocumentControllerXDocExceptionpublic boolean isDocumentLoaded()
isDocumentLoaded in class PageableDocumentControllerpublic String getFileName()
getFileName in class PageableDocumentControllerpublic List<IPage> getPages()
getPages in class PageableDocumentControllerpublic int getPageCount()
throws XDocException
getPageCount in class PageableDocumentControllerXDocExceptionpublic IDocument getActiveDocument()
getActiveDocument in class PageableDocumentControllerpublic void loadDocument(String fileName, String password, List<DocumentListener> documentListeners) throws FormatNotSupportedException, IncorrectPasswordException, XDocException, IOException
loadDocument in class PageableDocumentControllerFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic void loadDocument(InputStream inputStream, String password, List<DocumentListener> documentListeners) throws FormatNotSupportedException, IncorrectPasswordException, XDocException, IOException
loadDocument in class PageableDocumentControllerFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic void closeDocument()
throws IOException
closeDocument in class PageableDocumentControllerIOExceptionpublic void renderingSettingsChanged(RenderingSettings renderingSettings)
renderingSettingsChanged in class PageableDocumentControllerpublic void bufferPages(int currentPageNum)
bufferPages in class PageableDocumentController