Class PolygonAnnotation

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • PolygonAnnotation

        PolygonAnnotation(int pageIndex, List<PointF> points)
        Creates a new polygon annotation.
        Parameters:
        pageIndex - Page to which this annotation will be attached to.
        points - List of points in polygon annotation.
      • PolygonAnnotation

        PolygonAnnotation(AnnotationPropertyManager properties, boolean markDirty)
        Intended for internal usage only.
    • Method Detail

      • getType

        @NonNull() AnnotationType getType()

        Gets the annotation type of the annotation.

        Returns:

        The type of the annotation. Makes down casting easier.

      • getPoints

        @NonNull() List<PointF> getPoints()

        Returns polygon points in PDF coordinates.

        Returns:

        List of polygon points. If for any reason valid coordinates aren't set, returns (0, 0) points.

      • setPoints

         void setPoints(@NonNull() List<PointF> points)

        Sets polygon points in PDF coordinates.

        Parameters:
        points - List of points in polygon annotation.