org.icepdf.core.views
Interface DocumentViewController


public interface DocumentViewController

The DocumentViewControllerImpl is the controler in the MVC for multipage view management. This controller is used to manipulate the one column, one page, two column and two page views.

The Swing implementation of multiple view usesa the folowing MVC base classes:

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

Field Summary
static int CURSOR_DEFAULT
           
static int CURSOR_HAND_ANNOTATION
           
static int CURSOR_HAND_CLOSE
           
static int CURSOR_HAND_OPEN
           
static int CURSOR_SELECT
           
static int CURSOR_TEXT_SELECTION
           
static int CURSOR_WAIT
           
static int CURSOR_ZOOM_IN
           
static int CURSOR_ZOOM_OUT
           
static int PAGE_FIT_ACTUAL_SIZE
          Set the view to show the page at actual size
static int PAGE_FIT_NONE
          Set the view to show the page at the specified zoom level.
static int PAGE_FIT_WINDOW_HEIGHT
          Set the view to show the page at actual size
static int PAGE_FIT_WINDOW_WIDTH
          Set the view to show the page at actual size
 
Method Summary
 void assignSelectedAnnotation(AnnotationComponentImpl annotationComponent)
           
 void clearHighlightedText()
           
 void clearSelectedAnnotations()
           
 void clearSelectedText()
           
 void closeDocument()
           
 void deleteCurrentAnnotation()
           
 void dispose()
           
 void firePropertyChange(java.lang.String event, int oldValue, int newValue)
           
 void firePropertyChange(java.lang.String event, java.lang.Object oldValue, java.lang.Object newValue)
           
 AnnotationCallback getAnnotationCallback()
           
 int getCurrentPageDisplayValue()
           
 int getCurrentPageIndex()
           
 Document getDocument()
           
 DocumentViewModel getDocumentViewModel()
           
 int getFitMode()
           
 java.awt.Adjustable getHorizontalScrollBar()
           
 Controller getParentController()
           
 float getRotation()
           
 SecurityCallback getSecurityCallback()
           
 java.lang.String getSelectedText()
           
 int getToolMode()
           
 java.awt.Adjustable getVerticalScrollBar()
           
 java.awt.Container getViewContainer()
           
 java.awt.Cursor getViewCursor(int cursorType)
           
 int getViewMode()
           
 float getZoom()
           
 float[] getZoomLevels()
           
 boolean isToolModeSelected(int viewToolMode)
           
 void redo()
           
 void requestViewFocusInWindow()
           
 void selectAllText()
           
 void setAnnotationCallback(AnnotationCallback annotationCallback)
           
 boolean setCurrentPageIndex(int pageNumber)
           
 int setCurrentPageNext()
           
 int setCurrentPagePrevious()
           
 void setDestinationTarget(Destination destination)
           
 void setDocument(Document document)
           
 void setDocumentViewType(int documentView, int fitMode)
           
 boolean setFitMode(int fitMode)
           
 float setRotateLeft()
           
 float setRotateRight()
           
 boolean setRotation(float userRotation)
           
 void setSecurityCallback(SecurityCallback securityCallback)
           
 boolean setToolMode(int viewToolMode)
           
 void setViewCursor(int cursorType)
           
 void setViewKeyListener(java.awt.event.KeyListener l)
           
 void setViewType(int documentView)
           
 boolean setZoom(float userZoom)
           
 boolean setZoomIn()
           
 boolean setZoomIn(java.awt.Point point)
           
 void setZoomLevels(float[] zoomLevels)
           
 boolean setZoomOut()
           
 boolean setZoomOut(java.awt.Point point)
           
 void undo()
           
 

Field Detail

PAGE_FIT_NONE

static final int PAGE_FIT_NONE
Set the view to show the page at the specified zoom level.

See Also:
Constant Field Values

PAGE_FIT_ACTUAL_SIZE

static final int PAGE_FIT_ACTUAL_SIZE
Set the view to show the page at actual size

See Also:
Constant Field Values

PAGE_FIT_WINDOW_HEIGHT

static final int PAGE_FIT_WINDOW_HEIGHT
Set the view to show the page at actual size

See Also:
Constant Field Values

PAGE_FIT_WINDOW_WIDTH

static final int PAGE_FIT_WINDOW_WIDTH
Set the view to show the page at actual size

See Also:
Constant Field Values

CURSOR_HAND_OPEN

static final int CURSOR_HAND_OPEN
See Also:
Constant Field Values

CURSOR_HAND_CLOSE

static final int CURSOR_HAND_CLOSE
See Also:
Constant Field Values

CURSOR_ZOOM_IN

static final int CURSOR_ZOOM_IN
See Also:
Constant Field Values

CURSOR_ZOOM_OUT

static final int CURSOR_ZOOM_OUT
See Also:
Constant Field Values

CURSOR_WAIT

static final int CURSOR_WAIT
See Also:
Constant Field Values

CURSOR_SELECT

static final int CURSOR_SELECT
See Also:
Constant Field Values

CURSOR_DEFAULT

static final int CURSOR_DEFAULT
See Also:
Constant Field Values

CURSOR_HAND_ANNOTATION

static final int CURSOR_HAND_ANNOTATION
See Also:
Constant Field Values

CURSOR_TEXT_SELECTION

static final int CURSOR_TEXT_SELECTION
See Also:
Constant Field Values
Method Detail

setDocument

void setDocument(Document document)

getDocument

Document getDocument()

closeDocument

void closeDocument()

dispose

void dispose()

getViewContainer

java.awt.Container getViewContainer()

getParentController

Controller getParentController()

setViewType

void setViewType(int documentView)

getViewMode

int getViewMode()

setFitMode

boolean setFitMode(int fitMode)

getFitMode

int getFitMode()

setDocumentViewType

void setDocumentViewType(int documentView,
                         int fitMode)

setCurrentPageIndex

boolean setCurrentPageIndex(int pageNumber)

setCurrentPageNext

int setCurrentPageNext()

setCurrentPagePrevious

int setCurrentPagePrevious()

setDestinationTarget

void setDestinationTarget(Destination destination)

getCurrentPageIndex

int getCurrentPageIndex()

getCurrentPageDisplayValue

int getCurrentPageDisplayValue()

setZoomLevels

void setZoomLevels(float[] zoomLevels)

getZoomLevels

float[] getZoomLevels()

setZoom

boolean setZoom(float userZoom)

setZoomIn

boolean setZoomIn()

setZoomIn

boolean setZoomIn(java.awt.Point point)

setZoomOut

boolean setZoomOut()

setZoomOut

boolean setZoomOut(java.awt.Point point)

getZoom

float getZoom()

setRotation

boolean setRotation(float userRotation)

getRotation

float getRotation()

setRotateRight

float setRotateRight()

setRotateLeft

float setRotateLeft()

setToolMode

boolean setToolMode(int viewToolMode)

getToolMode

int getToolMode()

isToolModeSelected

boolean isToolModeSelected(int viewToolMode)

requestViewFocusInWindow

void requestViewFocusInWindow()

setViewCursor

void setViewCursor(int cursorType)

getViewCursor

java.awt.Cursor getViewCursor(int cursorType)

setViewKeyListener

void setViewKeyListener(java.awt.event.KeyListener l)

getHorizontalScrollBar

java.awt.Adjustable getHorizontalScrollBar()

getVerticalScrollBar

java.awt.Adjustable getVerticalScrollBar()

setAnnotationCallback

void setAnnotationCallback(AnnotationCallback annotationCallback)

setSecurityCallback

void setSecurityCallback(SecurityCallback securityCallback)

deleteCurrentAnnotation

void deleteCurrentAnnotation()

undo

void undo()

redo

void redo()

getAnnotationCallback

AnnotationCallback getAnnotationCallback()

getSecurityCallback

SecurityCallback getSecurityCallback()

getDocumentViewModel

DocumentViewModel getDocumentViewModel()

clearSelectedText

void clearSelectedText()

clearHighlightedText

void clearHighlightedText()

clearSelectedAnnotations

void clearSelectedAnnotations()

assignSelectedAnnotation

void assignSelectedAnnotation(AnnotationComponentImpl annotationComponent)

selectAllText

void selectAllText()

getSelectedText

java.lang.String getSelectedText()

firePropertyChange

void firePropertyChange(java.lang.String event,
                        int oldValue,
                        int newValue)

firePropertyChange

void firePropertyChange(java.lang.String event,
                        java.lang.Object oldValue,
                        java.lang.Object newValue)