public abstract class

NoteHinterDrawable

extends PdfDrawable
java.lang.Object
   ↳ android.graphics.drawable.Drawable
     ↳ com.pspdfkit.ui.drawable.PdfDrawable
       ↳ com.pspdfkit.ui.note.NoteHinterDrawable
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Drawable used by AnnotationNoteHinter to visually notify text contents property for supported annotation types.

Summary

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.
Protected 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

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.

Protected Constructors

protected NoteHinterDrawable (Drawable noteIcon, Annotation annotation, AnnotationNoteHinterThemeConfiguration annotationNoteHinterThemeConfiguration)

Public Methods

public void draw (Canvas canvas)

public int getOpacity ()

public boolean isDrawAllowed ()

public void setAlpha (int alpha)

public void setColorFilter (ColorFilter colorFilter)

public void updatePdfToViewTransformation (Matrix matrix)

Called internally by PSPDFKit every time the PDF-to-view transformation was changed.

Parameters
matrix The current PDF-to-view transformation matrix.

Protected Methods

protected void refresh ()

Refreshes the drawable when its annotation has changed.