|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.teamdev.jxdocument.DocumentPresentation
com.teamdev.jxdocument.SinglePagePresentation
public class SinglePagePresentation
An implementation of the DocumentPresentation that displays a specified Page
of PDF Document that fits Swing component size. Page size will be changed dynamically when you resize component.
| Constructor Summary | |
|---|---|
SinglePagePresentation(Document document)
Constructs a new SinglePagePresentation instance for specified document. |
|
| Method Summary | |
|---|---|
void |
displayPage(int pageIndex)
Displays a Page of the document at specified pageIndex. |
void |
displayPage(Page page)
Displays a specified page of the document. |
javax.swing.JComponent |
getComponent()
Returns Java Swing component that can display PDF Document. |
| Methods inherited from class com.teamdev.jxdocument.DocumentPresentation |
|---|
getDocument |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SinglePagePresentation(Document document)
SinglePagePresentation instance for specified document.
| Method Detail |
|---|
public javax.swing.JComponent getComponent()
DocumentPresentation
getComponent in class DocumentPresentationpublic void displayPage(int pageIndex)
pageIndex.
pageIndex - an index of the Page that must be displayed.
java.lang.IllegalArgumentException - when pageIndex < 0 or > total pages count.public void displayPage(Page page)
page of the document.
page - an instance of the Page that must be displayed. Cannot be null.
java.lang.IllegalArgumentException - when page is null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||