Gnostice PDFOne
Pro. Ed. v5.0.0


com.gnostice.pdfone
Interface PdfViewerChangeHandler


public interface PdfViewerChangeHandler

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

onPageChange

public void onPageChange(PdfViewer viewer,
                         int changedPageNum)
Called when the viewer navigates to a new page.

Parameters:
viewer - viewer where the change occurred
changedPageNum - number of the current page

onZoomChange

public void onZoomChange(PdfViewer viewer,
                         double changedZoomFacter)
Called when the viewer changes its zoom level.

Parameters:
viewer - viewer where the change occurred
changedZoomFacter - current page magnification

onPageViewChange

public void onPageViewChange(PdfViewer viewer,
                             int changedPageView)
Called when the viewer changes the way it fits pages inside its display area.

Parameters:
viewer - viewer where the change occurred
changedPageView - constant specifying how the viewer currently fits page inside its display area

onPageLayoutChange

public void onPageLayoutChange(PdfViewer viewer,
                               int changedPageLayout)
Called when the viewer changes the page layout.

Parameters:
viewer - viewer where the change occurred
changedPageLayout - constant specifying the current page layout

onRotationChange

public void onRotationChange(PdfViewer viewer,
                             int rotationAngle)
Called when the viewer changes the angle of rotation with which it displays pages.

Parameters:
viewer - viewer where the change occurred
rotationAngle - current angle of rotation

onDpiChange

public void onDpiChange(PdfViewer viewer,
                        int dpi)
Called when the viewer changes DPI with which it displays the curent document.

Parameters:
viewer - viewer where the change occurred
dpi - current DPI

onViewHistoryChange

public void onViewHistoryChange(PdfViewer viewer,
                                boolean hasPreviousView,
                                boolean hasNextView)
Called when the viewer navigates to a new position in its navigation history.

Parameters:
viewer - viewer where the change occurred
hasPreviousView - whether the navigation history has a previous position currently
hasNextView - whether the navigation history has a next position currently

onChange

public 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.

Parameters:
viewer - viewer where the change occurred
pageNum - current page number
zoomFacter - current zoom level
rotationAngle - current angle of rotation
pageView - constant specifying how viewer fits pages insides its display area

onChange

public 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.

Parameters:
viewer - viewer where teh change occurred
pageNum - current page number
zoomFactor - current zoom level
rotationAngle - current angle of rotation
pageView - constant specifying how viewer fits pages pages insides its display area
pageLayout - constant specifying how viewer lays out pages inside its display area
pageColumnsCustomCount - maximum number of pages that the viewer will display in a single row, as permitted by the current zoom level
showGapsBetweenPages - whether the viewer shows insets around the pages
showCoverPageDuringSideBySide - 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

Gnostice PDFOne
Pro. Ed. v5.0.0

To contact our support team, send an e-mail to support@gnostice.com.
 
© 2010 Gnostice Information Technologies Private Limited. All rights reserved.
www.gnostice.com