java.lang.Object | ||
↳ | com.pspdfkit.annotations.Annotation | |
↳ | com.pspdfkit.annotations.BaseRectsAnnotation |
![]() |
![]() |
Abstract base-class of all markup annotations: TextMarkupAnnotation
and RedactionAnnotation
.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
List<RectF> |
getRects()
Returns list of all rectangles that represent this markup annotation in PDF coordinates. | ||||||||||
boolean |
isResizable()
Check if the annotation is resizable, or if this is a non-resizable annotation.
| ||||||||||
void |
setRects(List<RectF> rects)
Sets rectangles for this annotation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns list of all rectangles that represent this markup annotation in PDF coordinates.
NOTE: Modifying this list directly or the rects in it without calling setRects(List)
will not work. Always call setRects(List)
after modifying the data to avoid inconsistent state.
Check if the annotation is resizable, or if this is a non-resizable annotation.
true
if the annotation can be resized (e.g. ink annotation) or false
if it is a non-resizable one (e.g. note
annotation).
Sets rectangles for this annotation.
These should be text rects obtained using getPageTextRects(int, int, int)
.
rects | Rects for annotation in PDF coordinates. |
---|