Class BaseRectsAnnotation

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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) or false if it is a non-resizable one (e.g. note annotation).