| java.lang.Object | |||
| ↳ | android.graphics.drawable.Drawable | ||
| ↳ | com.pspdfkit.ui.drawable.PdfDrawable | ||
| ↳ | com.pspdfkit.ui.note.NoteHinterDrawable | ||
Known Direct Subclasses
|
Known Indirect Subclasses
|
Drawable used by AnnotationNoteHinter to visually notify text contents property for supported annotation types.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| protected final Annotation | annotation | Annotation with text contents. | |||||||||
| protected final int | halfHeightPx | Drawable half height in pixels. | |||||||||
| protected final int | halfWidthPx | Drawable half width in pixels. | |||||||||
| protected final int | heightPx | Drawable height in pixels. | |||||||||
| protected final int | noteHinterColor | Tint color to use on note hinter drawable. | |||||||||
| protected final Drawable | noteIcon | Drawable resource used as icon hint. | |||||||||
| protected RectF | pdfBoundingBox | Annotation bounding box in pdf coordinates. | |||||||||
| protected PointF | pdfPoint | Position of note icon hint in pdf coordinates. | |||||||||
| protected RectF | viewBoundingBox | Annotation bounding box in view coordinates. | |||||||||
| protected Rect | viewBoundingBoxRounded | Annotation bounding box in rounded view coordinates. | |||||||||
| protected PointF | viewPoint | Position of note icon hint in view coordinates. | |||||||||
| protected final int | widthPx | Drawable width in pixels. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| NoteHinterDrawable(Drawable noteIcon, Annotation annotation, AnnotationNoteHinterThemeConfiguration annotationNoteHinterThemeConfiguration) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void | draw(Canvas canvas) | ||||||||||
| int | getOpacity() | ||||||||||
| boolean | isDrawAllowed() | ||||||||||
| void | setAlpha(int alpha) | ||||||||||
| void | setColorFilter(ColorFilter colorFilter) | ||||||||||
| void |
updatePDFToViewTransformation(Matrix matrix)
Called internally by PSPDFKit every time the PDF-to-view transformation was changed.
| ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
refresh()
Refreshes the drawable when its annotation has changed.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.ui.drawable.PdfDrawable
| |||||||||||
From class
android.graphics.drawable.Drawable
| |||||||||||
From class
java.lang.Object
| |||||||||||
Drawable half height in pixels.
Drawable half width in pixels.
Drawable height in pixels.
Tint color to use on note hinter drawable.
Drawable width in pixels.
Called internally by PSPDFKit every time the PDF-to-view transformation was changed.
| matrix | The current PDF-to-view transformation matrix. |
|---|
Refreshes the drawable when its annotation has changed.