-
- All Known Implementing Classes:
DocumentViewControllerImpl
public interface DocumentViewControllerThe DocumentViewControllerImpl is the controller 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
Fields Modifier and Type Field Description static intCURSOR_CROSSHAIRstatic intCURSOR_DEFAULTstatic intCURSOR_HAND_ANNOTATIONstatic intCURSOR_HAND_CLOSEstatic intCURSOR_HAND_OPENstatic intCURSOR_MAGNIFYstatic intCURSOR_SELECTstatic intCURSOR_TEXT_SELECTIONstatic intCURSOR_WAITstatic intCURSOR_ZOOM_INstatic intCURSOR_ZOOM_OUTstatic intPAGE_FIT_ACTUAL_SIZESet the view to show the page at actual sizestatic intPAGE_FIT_NONESet the view to show the page at the specified zoom level.static intPAGE_FIT_WINDOW_HEIGHTSet the view to show the page at actual sizestatic intPAGE_FIT_WINDOW_WIDTHSet the view to show the page at actual size
-
Method Summary
-
-
-
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
-
CURSOR_CROSSHAIR
static final int CURSOR_CROSSHAIR
- See Also:
- Constant Field Values
-
CURSOR_MAGNIFY
static final int CURSOR_MAGNIFY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDocument
void setDocument(Document document)
-
getDocument
Document getDocument()
-
closeDocument
void closeDocument()
-
dispose
void dispose()
-
getViewContainer
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()
-
setComponentTarget
void setComponentTarget(PageViewComponent pageComponent, Component component)
-
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(Point point)
-
setZoomCentered
boolean setZoomCentered(float zoom, Point centeringPoint, boolean becauseOfValidFitMode)
-
setZoomToViewPort
boolean setZoomToViewPort(float zoom, Point viewPortPosition, int pageIndex, boolean becauseOfValidFitMode)
-
setZoomOut
boolean setZoomOut()
-
setZoomOut
boolean setZoomOut(Point point)
-
getZoom
float getZoom()
The Page being shown may be zoomed in or out, to show more detail, or provide an overview.- Returns:
- The user's requested zoom
-
setRotation
boolean setRotation(float userRotation)
-
getRotation
float getRotation()
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
-
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
Cursor getViewCursor(int cursorType)
-
getViewCursor
int getViewCursor()
-
setViewKeyListener
void setViewKeyListener(KeyListener l)
-
getHorizontalScrollBar
Adjustable getHorizontalScrollBar()
-
getVerticalScrollBar
Adjustable getVerticalScrollBar()
-
getViewPort
JViewport getViewPort()
-
setAnnotationCallback
void setAnnotationCallback(AnnotationCallback annotationCallback)
-
setSignatureAppearanceCallback
void setSignatureAppearanceCallback(SignatureAppearanceCallback signatureAppearanceCallback)
-
setSecurityCallback
void setSecurityCallback(SecurityCallback securityCallback)
-
addNewAnnotation
void addNewAnnotation(AnnotationComponent annotationComponent)
-
updateAnnotation
void updateAnnotation(AnnotationComponent annotationComponent)
-
updatedSummaryAnnotation
void updatedSummaryAnnotation(AnnotationComponent annotationComponent)
-
deleteCurrentAnnotation
void deleteCurrentAnnotation()
-
deleteAnnotation
void deleteAnnotation(AnnotationComponent annotationComponent)
-
addNewDestination
void addNewDestination(Destination destination)
-
updateDestination
void updateDestination(Destination oldDestination, Destination destination)
-
deleteDestination
void deleteDestination(Destination destination)
-
undo
void undo()
-
redo
void redo()
-
getAnnotationCallback
AnnotationCallback getAnnotationCallback()
-
getSignatureAppearanceCallback
SignatureAppearanceCallback getSignatureAppearanceCallback()
-
getSecurityCallback
SecurityCallback getSecurityCallback()
-
getDocumentViewModel
DocumentViewModel getDocumentViewModel()
-
getDocumentView
DocumentView getDocumentView()
-
clearSelectedText
void clearSelectedText()
-
clearHighlightedText
void clearHighlightedText()
-
clearSelectedAnnotations
void clearSelectedAnnotations()
-
assignSelectedAnnotation
void assignSelectedAnnotation(AnnotationComponent annotationComponent)
-
selectAllText
void selectAllText()
-
getSelectedText
String getSelectedText()
-
revertViewType
void revertViewType()
-
firePropertyChange
void firePropertyChange(String event, int oldValue, int newValue)
-
deleteAnnotations
void deleteAnnotations(Collection<AnnotationComponent> annotations)
-
-