public interface DocumentViewModel
AbstractDocumentViewModel| Modifier and Type | Field and Description |
|---|---|
static int |
DISPLAY_TOOL_CIRCLE_ANNOTATION
Display tool constant for creating new line annotation.
|
static int |
DISPLAY_TOOL_FREE_TEXT_ANNOTATION
Display tool constant for creating new line annotation.
|
static int |
DISPLAY_TOOL_HIGHLIGHT_ANNOTATION
Display tool constant for creating new highlight annotation.
|
static int |
DISPLAY_TOOL_INK_ANNOTATION
Display tool constant for creating new line annotation.
|
static int |
DISPLAY_TOOL_LINE_ANNOTATION
Display tool constant for creating new line annotation.
|
static int |
DISPLAY_TOOL_LINE_ARROW_ANNOTATION
Display tool constant for creating new line annotation.
|
static int |
DISPLAY_TOOL_LINK_ANNOTATION
Display tool constant for creating new link annotation.
|
static int |
DISPLAY_TOOL_NONE
Display tool constant for setting no tools
|
static int |
DISPLAY_TOOL_PAN
Display tool constant for adding a pan tool.
|
static int |
DISPLAY_TOOL_SELECTION
Display tool constant for adding a text selection tool.
|
static int |
DISPLAY_TOOL_SQUARE_ANNOTATION
Display tool constant for creating new line annotation.
|
static int |
DISPLAY_TOOL_SQUIGGLY_ANNOTATION
Display tool constant for creating new squiggly annotation.
|
static int |
DISPLAY_TOOL_STRIKEOUT_ANNOTATION
Display tool constant for creating new strikeout annotation.
|
static int |
DISPLAY_TOOL_TEXT_ANNOTATION
Display tool constant for creating new line annotation.
|
static int |
DISPLAY_TOOL_TEXT_SELECTION
Display tool constant for adding a text selection tool.
|
static int |
DISPLAY_TOOL_UNDERLINE_ANNOTATION
Display tool constant for creating new underline annotation.
|
static int |
DISPLAY_TOOL_WAIT
Display tool constant for showing user that gui is busy
|
static int |
DISPLAY_TOOL_ZOOM_DYNAMIC
Display tool constant for adding a zoom out tool.
|
static int |
DISPLAY_TOOL_ZOOM_IN
Display tool constant for adding a zoom in tool.
|
static int |
DISPLAY_TOOL_ZOOM_OUT
Display tool constant for adding a zoom out tool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMemento(org.icepdf.core.Memento oldMementoState,
org.icepdf.core.Memento newMementoState)
Adds memento state to the care taker.
|
void |
addSelectedPageText(AbstractPageViewComponent pageViewComponent)
Adds the specified page to the list of selected pages.
|
void |
clearSelectedPageText()
Clears all pages in a selected state.
|
void |
dispose()
Free resources associated with this model.
|
AnnotationComponent |
getCurrentAnnotation()
Gets the currently selected annotation
|
javax.swing.Timer |
getDirtyTimer()
Get an instance of the dirty Timer use by all child PageComponents.
|
org.icepdf.core.pobjects.Document |
getDocument()
Gets the PDF document object associated with this views.
|
int |
getPageBoundary()
Gets the page boundry used to paint document pages.
|
java.awt.Rectangle |
getPageBounds(int pageIndex)
Gets the page bound of the specified page Index.
|
java.util.List<AbstractPageViewComponent> |
getPageComponents()
Gets the page components associated with this view model.
|
java.util.ArrayList<java.lang.ref.WeakReference<AbstractPageViewComponent>> |
getSelectedPageText()
Gets a list of doucment pages that have selected text elements.
|
int |
getViewCurrentPageIndex()
Gets the current page index represented in this model.
|
float |
getViewRotation()
Gets the view rotation of the model.
|
int |
getViewToolMode()
Gets the tool mode.
|
float |
getViewZoom()
Gets the view model zoom level.
|
void |
invalidate()
Invalidate the underlying Document Page models.
|
boolean |
isSelectAll()
Returns true if all text in the document should be in a selected state.
|
boolean |
isViewToolModeSelected(int viewToolMode)
Checks if the specified tool mode is set in the view model.
|
void |
setCurrentAnnotation(AnnotationComponent currentAnnotation)
Sets teh current annotation
|
void |
setPageBoundary(int pageBoundary)
Sets the page boundtry used to paint a page.
|
void |
setSelectAll(boolean selectAll)
Sets the selected all text state.
|
boolean |
setViewCurrentPageIndex(int pageIndex)
Sets the view model current page index.
|
boolean |
setViewRotation(float viewRotation)
Sets the view rotaiton of this model.
|
boolean |
setViewToolMode(int viewToolMode)
Sets the view tool mode.
|
boolean |
setViewZoom(float viewZoom)
Sets the models zoom level.
|
static final int DISPLAY_TOOL_PAN
static final int DISPLAY_TOOL_ZOOM_IN
static final int DISPLAY_TOOL_ZOOM_OUT
static final int DISPLAY_TOOL_ZOOM_DYNAMIC
static final int DISPLAY_TOOL_TEXT_SELECTION
static final int DISPLAY_TOOL_SELECTION
static final int DISPLAY_TOOL_LINK_ANNOTATION
static final int DISPLAY_TOOL_HIGHLIGHT_ANNOTATION
static final int DISPLAY_TOOL_UNDERLINE_ANNOTATION
static final int DISPLAY_TOOL_SQUIGGLY_ANNOTATION
static final int DISPLAY_TOOL_STRIKEOUT_ANNOTATION
static final int DISPLAY_TOOL_LINE_ANNOTATION
static final int DISPLAY_TOOL_LINE_ARROW_ANNOTATION
static final int DISPLAY_TOOL_SQUARE_ANNOTATION
static final int DISPLAY_TOOL_CIRCLE_ANNOTATION
static final int DISPLAY_TOOL_INK_ANNOTATION
static final int DISPLAY_TOOL_FREE_TEXT_ANNOTATION
static final int DISPLAY_TOOL_TEXT_ANNOTATION
static final int DISPLAY_TOOL_NONE
static final int DISPLAY_TOOL_WAIT
org.icepdf.core.pobjects.Document getDocument()
java.util.ArrayList<java.lang.ref.WeakReference<AbstractPageViewComponent>> getSelectedPageText()
void addSelectedPageText(AbstractPageViewComponent pageViewComponent)
pageViewComponent - pageview component to add to list.boolean isSelectAll()
void setSelectAll(boolean selectAll)
selectAll - true to select all text, false otherwise.void clearSelectedPageText()
java.util.List<AbstractPageViewComponent> getPageComponents()
boolean setViewCurrentPageIndex(int pageIndex)
pageIndex - zero based current pages page index of the document.int getViewCurrentPageIndex()
boolean setViewZoom(float viewZoom)
viewZoom - zoom valuefloat getViewZoom()
boolean setViewRotation(float viewRotation)
viewRotation - rotation in degreesfloat getViewRotation()
void invalidate()
boolean setViewToolMode(int viewToolMode)
viewToolMode - selected tool mode, pan, zoom and et.int getViewToolMode()
boolean isViewToolModeSelected(int viewToolMode)
viewToolMode - tool model to check if selected.java.awt.Rectangle getPageBounds(int pageIndex)
pageIndex - zero based page index.void dispose()
void setPageBoundary(int pageBoundary)
pageBoundary - page boundsint getPageBoundary()
AnnotationComponent getCurrentAnnotation()
void setCurrentAnnotation(AnnotationComponent currentAnnotation)
currentAnnotation - annotation to set as currentvoid addMemento(org.icepdf.core.Memento oldMementoState,
org.icepdf.core.Memento newMementoState)
oldMementoState - origional state.newMementoState - new state.javax.swing.Timer getDirtyTimer()