- java.lang.Object
-
- org.icepdf.ri.common.views.AbstractDocumentViewModel
-
- org.icepdf.ri.common.views.DocumentViewModelImpl
-
- All Implemented Interfaces:
DocumentViewModel
public class DocumentViewModelImpl extends AbstractDocumentViewModel
Default Swing implementation of the AbstractDocumentViewModel class. The constructor for this class constructs the needed PageViewComponentImpl objects and associates a reference to the parent JScrollPane.
Swing specific setup is handle by this class.
- Since:
- 2.5
-
-
Field Summary
-
Fields inherited from class org.icepdf.ri.common.views.AbstractDocumentViewModel
currentAnnotation, currentDocument, currentPageIndex, documentView, documentViewAnnotationComponents, documentViewScrollPane, MAX_PAGE_SIZE_READ_AHEAD, oldPageIndex, oldUserRotation, oldUserToolModeFlag, oldUserZoom, pageBoundary, pageComponents, undoCaretaker, userRotation, userToolModeFlag, userZoom
-
Fields inherited from interface org.icepdf.ri.common.views.DocumentViewModel
DISPLAY_TOOL_CIRCLE_ANNOTATION, DISPLAY_TOOL_FREE_TEXT_ANNOTATION, DISPLAY_TOOL_HIGHLIGHT_ANNOTATION, DISPLAY_TOOL_INK_ANNOTATION, DISPLAY_TOOL_LINE_ANNOTATION, DISPLAY_TOOL_LINE_ARROW_ANNOTATION, DISPLAY_TOOL_LINK_ANNOTATION, DISPLAY_TOOL_NONE, DISPLAY_TOOL_PAN, DISPLAY_TOOL_REDACTION_ANNOTATION, DISPLAY_TOOL_SELECTION, DISPLAY_TOOL_SIGNATURE_ANNOTATION, DISPLAY_TOOL_SQUARE_ANNOTATION, DISPLAY_TOOL_SQUIGGLY_ANNOTATION, DISPLAY_TOOL_STRIKEOUT_ANNOTATION, DISPLAY_TOOL_TEXT_ANNOTATION, DISPLAY_TOOL_TEXT_SELECTION, DISPLAY_TOOL_UNDERLINE_ANNOTATION, DISPLAY_TOOL_WAIT, DISPLAY_TOOL_ZOOM_DYNAMIC, DISPLAY_TOOL_ZOOM_IN, DISPLAY_TOOL_ZOOM_OUT
-
-
Constructor Summary
Constructors Constructor Description DocumentViewModelImpl(Document document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractPageViewComponentbuildPageViewComponent(DocumentViewModel documentViewModel, PageTree pageTree, int pageIndex, int width, int height)-
Methods inherited from class org.icepdf.ri.common.views.AbstractDocumentViewModel
addDocumentViewAnnotationComponent, addMemento, addSelectedPageText, clearSelectedPageText, dispose, getAnnotationCareTaker, getCurrentAnnotation, getDocument, getDocumentView, getDocumentViewAnnotationComponents, getDocumentViewAnnotationComponents, getDocumentViewScrollPane, getPageBoundary, getPageBounds, getPageComponents, getSelectedPageText, getViewCurrentPageIndex, getViewRotation, getViewToolMode, getViewZoom, isSelectAll, isViewToolModeSelected, removeAllFloatingAnnotationComponent, removeDocumentViewAnnotationComponent, removeFloatingAnnotationComponent, removeSelectedPageText, setCurrentAnnotation, setDocumentView, setDocumentViewScrollPane, setPageBoundary, setSelectAll, setViewCurrentPageIndex, setViewRotation, setViewToolMode, setViewZoom
-
-
-
-
Constructor Detail
-
DocumentViewModelImpl
public DocumentViewModelImpl(Document document)
-
-
Method Detail
-
buildPageViewComponent
protected AbstractPageViewComponent buildPageViewComponent(DocumentViewModel documentViewModel, PageTree pageTree, int pageIndex, int width, int height)
- Specified by:
buildPageViewComponentin classAbstractDocumentViewModel
-
-