public class WPFDocumentViewer extends WPFDocumentViewerBase
Modifier | Constructor and Description |
---|---|
protected |
WPFDocumentViewer(JtfObjectHandle handle,
Desktop desktop)
Creates a new WPFDocumentViewer with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDecreaseZoom()
Gets a value that indicates whether the DocumentViewer can zoom out more.
|
boolean |
canIncreaseZoom()
Gets a value that indicates whether the DocumentViewer can zoom in more.
|
void |
decreaseZoom()
Zooms out of the document content by one zoom step.
|
void |
fitToHeight()
Fits a single page to the height of the current viewport.
|
void |
fitToWidth()
Fits a single page to the width of the current viewport.
|
double |
getHorizontalOffset()
Gets the horizontal scroll position.
|
String |
getSelection()
Gets the selected content of the DocumentViewer.
|
double |
getVerticalOffset()
Gets the vertical scroll position.
|
double |
getZoom()
Gets the document zoom percentage.
|
void |
increaseZoom()
Zooms in on the document content by one zoom step.
|
void |
moveDown()
Scrolls the document content down 16 device independent pixels.
|
void |
moveLeft()
Scrolls the document content left 16 device independent pixels.
|
void |
moveRight()
Scrolls the document content right 16 device independent pixels.
|
void |
moveUp()
Scrolls the document content up 16 device independent pixels.
|
void |
scrollPageDown()
Scrolls down one viewport.
|
void |
scrollPageLeft()
Scrolls left one viewport.
|
void |
scrollPageRight()
Scrolls right one viewport.
|
void |
scrollPageUp()
Scrolls up one viewport.
|
void |
select(String text)
Selects a range of text.
|
void |
select(String text,
int occurrence)
Selects a range of text.
|
void |
zoomToActualSize()
Zooms to 100%.
|
canGoToNextPage, canGoToPage, canGoToPreviousPage, firstPage, getMasterPageNumber, getPageCount, getText, goToPage, lastPage, nextPage, previousPage
getFontFamily, getFontSize, getTabIndex, isTabStop
getActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPosition
bringIntoView, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getToolTip, isEnabled, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected WPFDocumentViewer(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the WPFDocumentViewerdesktop
- the desktop on which this object livespublic void decreaseZoom()
public void fitToHeight()
public void fitToWidth()
public void increaseZoom()
public void moveDown()
public void moveLeft()
public void moveRight()
public void moveUp()
public void scrollPageDown()
public void scrollPageLeft()
public void scrollPageRight()
public void scrollPageUp()
public void select(String text)
text
- the text to be selectedpublic void select(String text, int occurrence)
text
- the text to be selectedoccurrence
- the zero based occurrence of the specified text to be selected. The value is zero-based.public void zoomToActualSize()
public boolean canDecreaseZoom()
public boolean canIncreaseZoom()
public double getHorizontalOffset()
public String getSelection()
public double getVerticalOffset()
public double getZoom()
Copyright 2009-2012 Micro Focus. All Rights Reserved.