Class UnknownAnnotation

  • All Implemented Interfaces:

    
    public class UnknownAnnotation
    extends Annotation
                        

    Represents an annotation that is currently not recognised and handled by PSPDFKit. You can still retrieve the AnnotationType of the annotation by calling getType.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      UnknownAnnotation(NativeAnnotationType nativeAnnotationType, AnnotationPropertyManager properties, boolean markDirty) Intended for internal usage only
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      AnnotationType getType() Gets the annotation type of the annotation.
      void updateTransformationProperties(@NonNull() RectF newBoundingBox, @NonNull() RectF oldBoundingBox) Annotations may override this method to transform their properties (i.e.
      • Methods inherited from class java.lang.Object

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

      • UnknownAnnotation

        UnknownAnnotation(NativeAnnotationType nativeAnnotationType, 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.

      • updateTransformationProperties

         void updateTransformationProperties(@NonNull() RectF newBoundingBox, @NonNull() RectF oldBoundingBox)

        Annotations may override this method to transform their properties (i.e. points, rects, sizes) whenever the bounding box of the annotation changed.

        Parameters:
        newBoundingBox - New bounding box of the annotation (in PDF points).
        oldBoundingBox - Old bounding box of the annotation (in PDF points).