public interface Selection
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()
).Modifier and Type | Method and Description |
---|---|
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.
|
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 validCopyright © 2024 levigo holding gmbh. All rights reserved.