public static abstract class

PropertyInspector.ItemDecoration

extends Object
java.lang.Object
   ↳ com.pspdfkit.ui.inspector.PropertyInspector.ItemDecoration
Known Direct Subclasses

Class Overview

An ItemDecoration allows the application to add custom drawing to specific inspector views. This can be useful for drawing dividers between items, highlights etc.

Summary

Public Constructors
ItemDecoration()
Public Methods
void getItemOffsets(Rect outRect, PropertyInspectorView inspectorView, PropertyInspector parent)
Retrieve offset for the given inspector view.
void onDraw(Canvas canvas, PropertyInspector parent)
Draw required decorations to canvas supplied to the PropertyInspector.
void onDrawOver(Canvas canvas, PropertyInspector parent)
Draw any appropriate decorations into the Canvas supplied to the PropertyInspector.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ItemDecoration ()

Public Methods

public void getItemOffsets (Rect outRect, PropertyInspectorView inspectorView, PropertyInspector parent)

Retrieve offset for the given inspector view. outRect represents inset of the inspectorView when it's drawn. This is similar to padding or margin.

Parameters
outRect Output rectangle. (0, 0, 0, 0) when item's position doesn't need to be modified.
inspectorView The child view to decorate
parent PropertyInspector we are decorating.

public void onDraw (Canvas canvas, PropertyInspector parent)

Draw required decorations to canvas supplied to the PropertyInspector. This method will draw before any inspector view is drawn.

Parameters
canvas Canvas to draw into
parent PropertyInspector we are drawing onto.

public void onDrawOver (Canvas canvas, PropertyInspector parent)

Draw any appropriate decorations into the Canvas supplied to the PropertyInspector. This method will draw over already drawn inspector views.

Parameters
canvas Canvas to draw into
parent PropertyInspector we are drawing onto.