|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPDFPageView
This interface provides access to page views on a PDF document. The interface provides methods for working with the text selection on the pages. To get an object that implements the interface, the host application can call PDFViewerBean.getPageView (int pageNumber). The method returns an object of type JComponent that is guaranteed to implement IPDFPageView.
| Field Summary | |
|---|---|
static Color |
m_SelectFgndColor
Deprecated. This variable cannot be changed since it is defined in an interface. Use |
static Color |
m_SelectXORColor
Deprecated. This variable cannot be changed since it is defined in an interface. Use |
| Method Summary | |
|---|---|
TextSelection |
clearTextSelection()
Clears the current text selection. |
TextSelection |
getTextSelection()
Returns the current text selection in the page, if any. |
boolean |
isInvertColorsMode()
Returns whether or not the page view is set to invert color mode. |
TextSelection |
selectTextInArea(Rectangle2D selectRect)
Selects the text in an area of the page. |
TextSelection |
selectTextWithCursors(Point2D startCursor,
Point2D endCursor)
Selects the text in the page from the start cursor to the end cursor, in reading mode. |
void |
setInvertColorsMode(boolean invertMode)
Sets the page to paint in inverted mode: Black will show as white and white as black. |
void |
setTextSelection(TextSelection ts)
Sets the text selection in this page. |
| Field Detail |
|---|
static final Color m_SelectXORColor
static final Color m_SelectFgndColor
| Method Detail |
|---|
void setTextSelection(TextSelection ts)
ts - The new text selection.TextSelection clearTextSelection()
TextSelection getTextSelection()
void setInvertColorsMode(boolean invertMode)
invertMode - The new invert mode.boolean isInvertColorsMode()
TextSelection selectTextWithCursors(Point2D startCursor,
Point2D endCursor)
throws PDFException
startCursor - the location where the cursor should start selectionendCursor - The location where the cursor ends selection
PDFException
TextSelection selectTextInArea(Rectangle2D selectRect)
throws PDFException
selectRect - The rectangle in which to select the text.
PDFException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||