org.icepdf.core.views
Interface DocumentView

All Superinterfaces:
java.awt.event.AdjustmentListener, java.util.EventListener, java.awt.event.FocusListener, javax.swing.event.MouseInputListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

public interface DocumentView
extends javax.swing.event.MouseInputListener, java.awt.event.AdjustmentListener, java.awt.event.FocusListener

The DocumentView interface should be used when create a new multipage view.

Since:
2.5
See Also:
org.icepdf.ri.common.views.AbstractDocumentView

Field Summary
static int LEFT_VIEW
          Indicates that a two column view will have odd-numbered pages on the left.
static int RIGHT_VIEW
          Indicates that a two column view will have odd-numbered pages on the right.
 
Method Summary
 void dispose()
          Dispose all resources associated with this views.
 java.awt.Dimension getDocumentSize()
          Gets the total size of the document view.
 int getNextPageIncrement()
          Get the next page index.
 DocumentViewController getParentViewController()
          Parent document view controller
 int getPreviousPageIncrement()
          Get the previous page index.
 DocumentViewModel getViewModel()
          Gets the view model associated with this document view.
 void updateDocumentView()
          Update the child components which make up this view.
 
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
 
Methods inherited from interface java.awt.event.AdjustmentListener
adjustmentValueChanged
 
Methods inherited from interface java.awt.event.FocusListener
focusGained, focusLost
 

Field Detail

LEFT_VIEW

static final int LEFT_VIEW
Indicates that a two column view will have odd-numbered pages on the left.

See Also:
Constant Field Values

RIGHT_VIEW

static final int RIGHT_VIEW
Indicates that a two column view will have odd-numbered pages on the right.

See Also:
Constant Field Values
Method Detail

getNextPageIncrement

int getNextPageIncrement()
Get the next page index. This will number will very depending on the page view type. Two column page views usually increment page counts by 2 and single page views by 1 page.

Returns:
number of pages to increment page count on a page increment command.

getPreviousPageIncrement

int getPreviousPageIncrement()
Get the previous page index. This will number will very depending on the page view type. Two column page views usually increment page counts by 2 and single page views by 1 page.

Returns:
number of pages to increment page count on a page increment command.

getDocumentSize

java.awt.Dimension getDocumentSize()
Gets the total size of the document view. This size will very depending on the view type. The size dimension has been normalized to a zoom factor of 1.0f and rotation is taken care off.

Returns:
size of document in pixels for all pages represented in the view.

getParentViewController

DocumentViewController getParentViewController()
Parent document view controller

Returns:
document view controller

getViewModel

DocumentViewModel getViewModel()
Gets the view model associated with this document view.

Returns:
document view model used by this view.

dispose

void dispose()
Dispose all resources associated with this views.


updateDocumentView

void updateDocumentView()
Update the child components which make up this view.