|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Selection
Provides selection information for a given Page
. The Selection
contains
information about the position of the page this selection belongs to (getPage()
), the
text fragment that has been selected (getSelectedText()
) and a Shape
providing a
visual representation of the selection (getShape()
).
Method Summary | |
---|---|
Rectangle2D |
getBounds()
returns the overall bounds of the selection. |
Page |
getPage()
Provides the Page this selection belongs to. |
String |
getSelectedText()
Provides the selected text. |
Shape |
getShape()
Provides a graphical representation of this selection. |
boolean |
isValid()
Return whether the selection is still valid. |
Method Detail |
---|
Rectangle2D getBounds()
Rectangle2D
is the smallest bounding box that encloses the Shape
s (returned by
getShape()
, only that the Shape
s lie entirely within the indicated
Rectangle2D
.
Shape getShape()
Shape
representing a graphical selection of the selected textPage getPage()
Page
this selection belongs to.
Page
this Selection belongs toString getSelectedText()
boolean isValid()
true
if the selection is valid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |