Package com.pspdfkit.annotations
Class BaseRectsAnnotation
-
- All Implemented Interfaces:
public abstract class BaseRectsAnnotation extends Annotation
Abstract base-class of all markup annotations: TextMarkupAnnotation and .
-
-
Method Summary
Modifier and Type Method Description List<RectF>
getRects()
Returns list of all rectangles that represent this markup annotation in PDF coordinates. void
setRects(@NonNull() List<RectF> rects)
Sets rectangles for this annotation. boolean
isResizable()
Check if the annotation is resizable, or if this is a non-resizable annotation. -
-
Method Detail
-
getRects
@NonNull() List<RectF> getRects()
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 will not work. Always call setRects after modifying the data to avoid inconsistent state.
- Returns:
A list of rects representing this annotation.
-
setRects
void setRects(@NonNull() List<RectF> rects)
Sets rectangles for this annotation. These should be text rects obtained using getPageTextRects.
- Parameters:
rects
- Rects for annotation in PDF coordinates.
-
isResizable
boolean isResizable()
Check if the annotation is resizable, or if this is a non-resizable annotation.
- Returns:
true
if the annotation can be resized (e.g. ink annotation) orfalse
if it is a non-resizable one (e.g. note annotation).
-
-
-
-