|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The DocumentViewModel interface contains common accessors and modifiers needed to represent a document view state.
AbstractDocumentViewModel| Field Summary | |
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_WAIT
Display tool constant for showing user that gui is busy |
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. |
| Method Summary | |
void |
dispose()
Free resources associated with this model. |
void |
executePageInitialization(Runnable runnable)
|
void |
executePagePainter(Runnable runnable)
|
Document |
getDocument()
Gets the PDF document object associated with this views. |
Rectangle |
getPageBounds(int pageIndex)
Gets the page bound of the specified page Index. |
Vector |
getPageComponents()
Gets the page components associated with this view model. |
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. |
boolean |
isViewToolModeSelected(int viewToolMode)
Checks if the specified tool mode is set in the view model. |
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. |
| Field Detail |
public static final int DISPLAY_TOOL_PAN
public static final int DISPLAY_TOOL_ZOOM_IN
public static final int DISPLAY_TOOL_ZOOM_OUT
public static final int DISPLAY_TOOL_NONE
public static final int DISPLAY_TOOL_WAIT
| Method Detail |
public Document getDocument()
public void executePageInitialization(Runnable runnable)
throws InterruptedException
InterruptedException
public void executePagePainter(Runnable runnable)
throws InterruptedException
InterruptedExceptionpublic Vector getPageComponents()
public boolean setViewCurrentPageIndex(int pageIndex)
pageIndex - zero based current pages page index of the document.
public int getViewCurrentPageIndex()
public boolean setViewZoom(float viewZoom)
viewZoom -
public float getViewZoom()
public boolean setViewRotation(float viewRotation)
viewRotation -
public float getViewRotation()
public boolean setViewToolMode(int viewToolMode)
viewToolMode -
public int getViewToolMode()
public boolean isViewToolModeSelected(int viewToolMode)
viewToolMode - tool model to check if selected.
public Rectangle getPageBounds(int pageIndex)
pageIndex - zero based page index.
public void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||