|
Gnostice PDFOne
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines several run-time events related to
PdfViewer
.
User classes can implement this interface to get access and/or handle viewer events.
Method Summary | |
void |
onChange(PdfViewer viewer,
int pageNum,
double zoomFacter,
int rotationAngle,
int pageView)
Called when the viewer makes a change in the the current page number, zoom, rotation, or page fit setting. |
void |
onChange(PdfViewer viewer,
int pageNum,
double zoomFactor,
int rotationAngle,
int pageView,
int pageLayout,
int pageColumnsCustomCount,
boolean showGapsBetweenPages,
boolean showCoverPageDuringSideBySide,
boolean showPageBordersWhenNoPageGaps)
Called when the viewer changes the current page number, page zoom, page rotation, page layout, maximum number of columns per row, insets around pages, and layout of first page. |
void |
onDpiChange(PdfViewer viewer,
int dpi)
Called when the viewer changes DPI with which it displays the curent document. |
void |
onPageChange(PdfViewer viewer,
int changedPageNum)
Called when the viewer navigates to a new page. |
void |
onPageLayoutChange(PdfViewer viewer,
int changedPageLayout)
Called when the viewer changes the page layout. |
void |
onPageViewChange(PdfViewer viewer,
int changedPageView)
Called when the viewer changes the way it fits pages inside its display area. |
void |
onRotationChange(PdfViewer viewer,
int rotationAngle)
Called when the viewer changes the angle of rotation with which it displays pages. |
void |
onViewHistoryChange(PdfViewer viewer,
boolean hasPreviousView,
boolean hasNextView)
Called when the viewer navigates to a new position in its navigation history. |
void |
onZoomChange(PdfViewer viewer,
double changedZoomFacter)
Called when the viewer changes its zoom level. |
Method Detail |
public void onPageChange(PdfViewer viewer, int changedPageNum)
viewer
- viewer where the change occurredchangedPageNum
- number of the current pagepublic void onZoomChange(PdfViewer viewer, double changedZoomFacter)
viewer
- viewer where the change occurredchangedZoomFacter
- current page magnificationpublic void onPageViewChange(PdfViewer viewer, int changedPageView)
viewer
- viewer where the change occurredchangedPageView
- constant
specifying how the viewer currently fits page inside
its display areapublic void onPageLayoutChange(PdfViewer viewer, int changedPageLayout)
viewer
- viewer where the change occurredchangedPageLayout
- constant
specifying the current page layoutpublic void onRotationChange(PdfViewer viewer, int rotationAngle)
viewer
- viewer where the change occurredrotationAngle
- current angle of rotationpublic void onDpiChange(PdfViewer viewer, int dpi)
viewer
- viewer where the change occurreddpi
- current DPIpublic void onViewHistoryChange(PdfViewer viewer, boolean hasPreviousView, boolean hasNextView)
viewer
- viewer where the change occurredhasPreviousView
- whether the navigation history has a previous
position currentlyhasNextView
- whether the navigation history has a next position
currentlypublic void onChange(PdfViewer viewer, int pageNum, double zoomFacter, int rotationAngle, int pageView)
viewer
- viewer where the change occurredpageNum
- current page numberzoomFacter
- current zoom levelrotationAngle
- current angle of rotationpageView
- constant
specifying how viewer fits pages insides its display
areapublic void onChange(PdfViewer viewer, int pageNum, double zoomFactor, int rotationAngle, int pageView, int pageLayout, int pageColumnsCustomCount, boolean showGapsBetweenPages, boolean showCoverPageDuringSideBySide, boolean showPageBordersWhenNoPageGaps)
viewer
- viewer where teh change occurredpageNum
- current page numberzoomFactor
- current zoom levelrotationAngle
- current angle of rotationpageView
- constant
specifying how viewer fits pages pages insides its
display areapageLayout
- constant
specifying how viewer lays out pages inside its
display areapageColumnsCustomCount
- maximum number of pages that the viewer will display
in a single row, as permitted by the current zoom
levelshowGapsBetweenPages
- whether the viewer shows insets around the pagesshowCoverPageDuringSideBySide
- whether the viewer displays the first page singly
when page layout is set to
PdfViewer.LAYOUT_SIDE_BY_SIDE
showPageBordersWhenNoPageGaps
- whether viewer displays visible borders around the pages
when it does not place insets around the pages
|
Pro. Ed. v5.0.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |