Package com.pspdfkit.ui.note
Class NoteMultilineAnnotationHinterDrawable
-
- All Implemented Interfaces:
-
com.pspdfkit.internal.undo.annotations.OnAnnotationPropertyChangeListener
public class NoteMultilineAnnotationHinterDrawable extends NoteHinterDrawable implements OnAnnotationPropertyChangeListener
Drawable used by AnnotationNoteHinter to visually notify text contents property for InkAnnotation, PolygonAnnotation, and PolylineAnnotation.
-
-
Constructor Summary
Constructors Constructor Description NoteMultilineAnnotationHinterDrawable(Drawable noteIcon, Annotation annotation, AnnotationNoteHinterThemeConfiguration annotationNoteHinterThemeConfiguration)
-
Method Summary
Modifier and Type Method Description void
onAnnotationPropertyChange(@NonNull() Annotation annotation, int property, @Nullable() Object oldValue, @Nullable() Object newValue)
Called when annotation property has changed. void
updatePdfToViewTransformation(@NonNull() Matrix matrix)
Called internally by PSPDFKit every time the PDF-to-view transformation was changed. void
dispose()
Disposes the drawable. -
-
Constructor Detail
-
NoteMultilineAnnotationHinterDrawable
NoteMultilineAnnotationHinterDrawable(Drawable noteIcon, Annotation annotation, AnnotationNoteHinterThemeConfiguration annotationNoteHinterThemeConfiguration)
-
-
Method Detail
-
onAnnotationPropertyChange
void onAnnotationPropertyChange(@NonNull() Annotation annotation, int property, @Nullable() Object oldValue, @Nullable() Object newValue)
Called when annotation property has changed.
- Parameters:
annotation
- Annotation whose property has changed.property
- Annotation property that changed (from constants).oldValue
- Value of the property before the change.newValue
- Value of the property after the change.
-
updatePdfToViewTransformation
void updatePdfToViewTransformation(@NonNull() Matrix matrix)
Called internally by PSPDFKit every time the PDF-to-view transformation was changed.
- Parameters:
matrix
- The current PDF-to-view transformation matrix.
-
dispose
void dispose()
Disposes the drawable. Use this method to clean-up drawable after being done with it.
-
-
-
-