com.icesoft.pdf
Interface Controller

All Known Implementing Classes:
SwingController

public interface Controller

A Controller is the glue between the model and view components. These methods allow the different parts of the view to remain in lock-step with each other and have access to the model, as necessary

Since:
2.0

Method Summary
 int getCurrentPageNumber()
          When viewing a PDF file, one or more pages may be viewed at a single time, but this page is the single page which is most predominantly being displayed.
 Document getDocument()
          A Document is the root of the object hierarchy, giving access to the contents of a PDF file.
 float getUserRotation()
          Each Page may have its own rotation, but on top of that, the user may select to have the Page further rotated by 90, 180 or 270 degrees.
 float getUserZoom()
          The Page being shown may be zoomed in or out, to show more detail, or provide an overview.
 

Method Detail

getDocument

public Document getDocument()
A Document is the root of the object hierarchy, giving access to the contents of a PDF file. Significantly, getDocument().getCatalog().getPageTree().getPage(int pageNumber) gives access to each Page, so that it might be drawn.

Returns:
Document root of the PDF file.

getCurrentPageNumber

public int getCurrentPageNumber()
When viewing a PDF file, one or more pages may be viewed at a single time, but this page is the single page which is most predominantly being displayed.

Returns:
The zero-based index of the current Page being displayed

getUserRotation

public float getUserRotation()
Each Page may have its own rotation, but on top of that, the user may select to have the Page further rotated by 90, 180 or 270 degrees.

Returns:
The user's requested rotation

getUserZoom

public float getUserZoom()
The Page being shown may be zoomed in or out, to show more detail, or provide an overview.

Returns:
The user's requested zoom