Package com.stimulsoft.viewer.logic
Class StiViewModel
java.lang.Object
com.stimulsoft.viewer.logic.StiViewModel
- All Implemented Interfaces:
StiViewEventable
Sti view model
Copyright Stimulsoft
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCurrent display page property namestatic final StringCurrent page property namestatic final StringDocument property namestatic final StringPage view mode property namestatic final StringPage view mode property namestatic final StringZoom property name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd property change listenervoidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) Add property change listenerReturn event dispatcherStiViewerEventDispatchergetPropertyChangeListeners(String propertyName) Return property change listenersgetZoom()voidloadDocumentFile(File documentFile, boolean showProgress) Load document from filevoidRemove property change listenervoidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) Remove property change listenervoidsetBookmarksPannelVisible(Boolean bookmarksPannelVisible) voidsetCurrentDisplayPage(Integer currentDisplayPage, Boolean changeCurrentPage) protected voidsetCurrentPage(Integer currentPage, Boolean changeDisplayNumber) voidsetDocument(StiDocument document) voidsetFullScreen(Boolean fullScreen) voidsetLoadedReportFile(File loadedReportFile) voidsetPageViewMode(StiPageViewMode pageViewMode) voidsetThumbnailPannelVisible(Boolean thumbnailPannelVisible) voidsetViewMultipleDimension(Dimension viewMultipleDimension) voidsetViewState(StiViewState viewState) void
-
Field Details
-
CURRENT_PAGE_PROPERTY
Current page property name- See Also:
-
CURRENT_DISLPAY_PAGE_PROPERTY
Current display page property name- See Also:
-
DOCUMENT_PROPERTY
Document property name- See Also:
-
PAGE_VIEW_MODE_PROPERTY
Page view mode property name- See Also:
-
VIEW_STATE_PROPERTY
Page view mode property name- See Also:
-
ZOOM_PROPERTY
Zoom property name- See Also:
-
-
Constructor Details
-
StiViewModel
Constructor- Parameters:
stiViewer-invalid reference
StiViewer
-
-
Method Details
-
loadDocumentFile
Load document from file- Parameters:
documentFile-Fileof documentshowProgress- Is need to show progress loading document
-
getReport
- Returns:
StiReport
-
getDocument
- Returns:
StiDocument
-
getPagesCount
- Returns:
- pages count
-
getDisplayPagesCount
- Returns:
- pages count
-
getCurrentPage
- Returns:
- the current page
-
setDocument
- Parameters:
document- the document to set
-
setCurrentPage
- Parameters:
currentPage- the currentPage to set
-
getCurrentDisplayPage
- Returns:
- the currentDisplayPage
-
setCurrentDisplayPage
- Parameters:
currentDisplayPage- the currentDisplayPage to set
-
getZoom
- Returns:
- the zoom
-
setZoom
- Parameters:
zoom- the zoom to set
-
getPageViewMode
- Returns:
StiPageViewMode
-
setPageViewMode
- Parameters:
pageViewMode- the pageViewMode to set
-
getEventDispatcher
Return event dispatcherStiViewerEventDispatcher- Specified by:
getEventDispatcherin interfaceStiViewEventable- Returns:
StiViewerEventDispatcher
-
getPropertyChangeListeners
Return property change listeners- Parameters:
propertyName-- Returns:
-
addPropertyChangeListener
Add property change listener- Parameters:
propertyName-listener-
-
removePropertyChangeListener
Remove property change listener- Parameters:
propertyName-listener-PropertyChangeListener
-
addPropertyChangeListener
Add property change listener- Parameters:
listener-PropertyChangeListener
-
removePropertyChangeListener
Remove property change listener- Parameters:
listener-PropertyChangeListener
-
getParentFrame
- Returns:
- the parentFrame
-
getThumbnailPannelVisible
- Returns:
- the thumbnailPannelVisible
-
setThumbnailPannelVisible
- Parameters:
thumbnailPannelVisible- the thumbnailPannelVisible to set
-
getBookmarksPannelVisible
- Returns:
- the bookmarksPannelVisible
-
setBookmarksPannelVisible
- Parameters:
bookmarksPannelVisible- the bookmarksPannelVisible to set
-
getViewState
- Returns:
- the viewState
-
setViewState
- Parameters:
viewState- the viewState to set
-
getViewMultipleDimension
- Returns:
- the viewMultipleDimension
-
setViewMultipleDimension
- Parameters:
viewMultipleDimension- the viewMultipleDimension to set
-
getFullScreen
- Returns:
- the fullScreen
-
setFullScreen
- Parameters:
fullScreen- the fullScreen to set
-
getLoadedReportFile
- Returns:
- the loadedReportFile
-
setLoadedReportFile
- Parameters:
loadedReportFile- the loadedReportFile to set
-
getPaintQueue
- Returns:
- the paintQueue
-