Package com.pspdfkit.annotations
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.
-
-
Field Summary
Fields Modifier and Type Field Description public final AnnotationType
type
-
Constructor Summary
Constructors Constructor Description UnknownAnnotation(NativeAnnotationType nativeAnnotationType, AnnotationPropertyManager properties, boolean markDirty)
Intended for internal usage only
-
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. -
-
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).
-
-
-
-