com.icesoft.pdf.views
Interface DocumentViewController

All Known Implementing Classes:
DocumentViewControllerImpl

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:
AbstractDocumentView, AbstractDocumentViewModel, 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_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 closeDocument()
           
 void dispose()
           
 AnnotationCallback getAnnotationCallback()
           
 int getCurrentPageDisplayValue()
           
 int getCurrentPageIndex()
           
 Document getDocument()
           
 int getFitMode()
           
 Adjustable getHorizontalScrollBar()
           
 Controller getParentController()
           
 float getRotation()
           
 int getToolMode()
           
 Adjustable getVerticalScrollBar()
           
 Container getViewContainer()
           
 Cursor getViewCursor(int cursorType)
           
 int getViewMode()
           
 float getZoom()
           
 float[] getZoomLevels()
           
 boolean isToolModeSelected(int viewToolMode)
           
 void requestViewFocusInWindow()
           
 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)
           
 boolean setToolMode(int viewToolMode)
           
 void setViewCursor(int cursorType)
           
 void setViewKeyListener(KeyListener l)
           
 void setViewType(int documentView)
           
 boolean setZoom(float userZoom)
           
 boolean setZoomIn()
           
 boolean setZoomIn(Point point)
           
 void setZoomLevels(float[] zoomLevels)
           
 boolean setZoomOut()
           
 boolean setZoomOut(Point point)
           
 

Field Detail

PAGE_FIT_NONE

public 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

public 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

public 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

public 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

public static final int CURSOR_HAND_OPEN
See Also:
Constant Field Values

CURSOR_HAND_CLOSE

public static final int CURSOR_HAND_CLOSE
See Also:
Constant Field Values

CURSOR_ZOOM_IN

public static final int CURSOR_ZOOM_IN
See Also:
Constant Field Values

CURSOR_ZOOM_OUT

public static final int CURSOR_ZOOM_OUT
See Also:
Constant Field Values

CURSOR_WAIT

public static final int CURSOR_WAIT
See Also:
Constant Field Values

CURSOR_SELECT

public static final int CURSOR_SELECT
See Also:
Constant Field Values

CURSOR_DEFAULT

public static final int CURSOR_DEFAULT
See Also:
Constant Field Values

CURSOR_HAND_ANNOTATION

public static final int CURSOR_HAND_ANNOTATION
See Also:
Constant Field Values
Method Detail

setDocument

public void setDocument(Document document)

getDocument

public Document getDocument()

closeDocument

public void closeDocument()

dispose

public void dispose()

getViewContainer

public Container getViewContainer()

getParentController

public Controller getParentController()

setViewType

public void setViewType(int documentView)

getViewMode

public int getViewMode()

setFitMode

public boolean setFitMode(int fitMode)

getFitMode

public int getFitMode()

setDocumentViewType

public void setDocumentViewType(int documentView,
                                int fitMode)

setCurrentPageIndex

public boolean setCurrentPageIndex(int pageNumber)

setCurrentPageNext

public int setCurrentPageNext()

setCurrentPagePrevious

public int setCurrentPagePrevious()

setDestinationTarget

public void setDestinationTarget(Destination destination)

getCurrentPageIndex

public int getCurrentPageIndex()

getCurrentPageDisplayValue

public int getCurrentPageDisplayValue()

setZoomLevels

public void setZoomLevels(float[] zoomLevels)

getZoomLevels

public float[] getZoomLevels()

setZoom

public boolean setZoom(float userZoom)

setZoomIn

public boolean setZoomIn()

setZoomIn

public boolean setZoomIn(Point point)

setZoomOut

public boolean setZoomOut()

setZoomOut

public boolean setZoomOut(Point point)

getZoom

public float getZoom()

setRotation

public boolean setRotation(float userRotation)

getRotation

public float getRotation()

setRotateRight

public float setRotateRight()

setRotateLeft

public float setRotateLeft()

setToolMode

public boolean setToolMode(int viewToolMode)

getToolMode

public int getToolMode()

isToolModeSelected

public boolean isToolModeSelected(int viewToolMode)

requestViewFocusInWindow

public void requestViewFocusInWindow()

setViewCursor

public void setViewCursor(int cursorType)

getViewCursor

public Cursor getViewCursor(int cursorType)

setViewKeyListener

public void setViewKeyListener(KeyListener l)

getHorizontalScrollBar

public Adjustable getHorizontalScrollBar()

getVerticalScrollBar

public Adjustable getVerticalScrollBar()

setAnnotationCallback

public void setAnnotationCallback(AnnotationCallback annotationCallback)

getAnnotationCallback

public AnnotationCallback getAnnotationCallback()