Package com.pspdfkit.ui.note
Class AlignedAnnotationHinterDrawable
-
- All Implemented Interfaces:
-
com.pspdfkit.internal.undo.annotations.OnAnnotationPropertyChangeListener
public class AlignedAnnotationHinterDrawable extends NoteHinterDrawable implements OnAnnotationPropertyChangeListener
Note hinter drawable with configurable note alignment in both horizontal and vertical dimensions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
AlignedAnnotationHinterDrawable.HorizontalAlignment
Enum with possible horizontal icon alignments.
public enum
AlignedAnnotationHinterDrawable.VerticalAlignment
Enum with possible vertical icon alignments.
-
Constructor Summary
Constructors Constructor Description AlignedAnnotationHinterDrawable(Drawable noteIcon, Annotation annotation, AnnotationNoteHinterThemeConfiguration annotationNoteHinterThemeConfiguration, AlignedAnnotationHinterDrawable.HorizontalAlignment horizontalAlignment, AlignedAnnotationHinterDrawable.VerticalAlignment verticalAlignment)
-
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
dispose()
Disposes the drawable. void
updatePdfToViewTransformation(@NonNull() Matrix matrix)
Called internally by PSPDFKit every time the PDF-to-view transformation was changed. -
-
Constructor Detail
-
AlignedAnnotationHinterDrawable
AlignedAnnotationHinterDrawable(Drawable noteIcon, Annotation annotation, AnnotationNoteHinterThemeConfiguration annotationNoteHinterThemeConfiguration, AlignedAnnotationHinterDrawable.HorizontalAlignment horizontalAlignment, AlignedAnnotationHinterDrawable.VerticalAlignment verticalAlignment)
-
-
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.
-
dispose
void dispose()
Disposes the drawable. Use this method to clean-up drawable after being done with it.
-
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.
-
-
-
-