NoteHinterDrawable

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

Inheritors

Properties

Link copied to clipboard

Checks whether this note hinter should be drawn. The note hinter is drawn when the annotation has text contents or Instant comments, and is not a measurement annotation.

Link copied to clipboard
open override val opacity: Int

Functions

Link copied to clipboard
open fun dispose()

Disposes the drawable. Use this method to clean-up drawable after being done with it.

Link copied to clipboard
open override fun draw(canvas: Canvas)

Draws the note hinter icon on the canvas if drawing is allowed.

Link copied to clipboard
open override fun getOpacity(): Int

Returns the drawable's opacity. Always PixelFormat.TRANSLUCENT.

Link copied to clipboard
open override fun setAlpha(@IntRange(from = 0, to = 255) alpha: Int)

Sets the alpha value of the note hinter icon.

Link copied to clipboard
open override fun setColorFilter(colorFilter: ColorFilter?)

Sets a color filter on the note hinter icon. This implementation is a no-op.

Link copied to clipboard
open override fun updatePdfToViewTransformation(matrix: Matrix)

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