Package com.pspdfkit.ui.note
Class NoteHinterDrawable
-
- All Implemented Interfaces:
public abstract class NoteHinterDrawable extends PdfDrawable
Drawable used by AnnotationNoteHinter to visually notify text contents property for supported annotation types.
-
-
Field Summary
Fields Modifier and Type Field Description public int
repliesCount
-
Method Summary
Modifier and Type Method Description int
getRepliesCount()
Delivers the amount of note replies for the associated annotation. void
draw(@NonNull() Canvas canvas)
void
setAlpha(@IntRange(from = 0, to = 255) int alpha)
void
setColorFilter(@Nullable() ColorFilter colorFilter)
int
getOpacity()
boolean
isDrawAllowed()
void
updatePdfToViewTransformation(@NonNull() Matrix matrix)
Called internally by PSPDFKit every time the PDF-to-view transformation was changed. Annotation
getAnnotation()
Gets the annotation this drawable is associated with. void
updateRepliesCount(@NonNull() AnnotationProvider annotationProvider)
Refreshes the replies count of the associated annotation. -
-
Method Detail
-
getRepliesCount
int getRepliesCount()
Delivers the amount of note replies for the associated annotation. getAnnotation
- Returns:
The amount of note replies
-
setColorFilter
void setColorFilter(@Nullable() ColorFilter colorFilter)
-
getOpacity
int getOpacity()
-
isDrawAllowed
boolean isDrawAllowed()
-
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.
-
getAnnotation
@NonNull() Annotation getAnnotation()
Gets the annotation this drawable is associated with.
- Returns:
The associated annotation
-
updateRepliesCount
void updateRepliesCount(@NonNull() AnnotationProvider annotationProvider)
Refreshes the replies count of the associated annotation.
- Parameters:
annotationProvider
- The provider to be used to check for the replies of the annotation.
-
-
-
-