Package com.pspdfkit.ui.inspector
Class PropertyInspector.ItemDecoration
-
- All Implemented Interfaces:
public abstract class PropertyInspector.ItemDecoration
An ItemDecoration allows the application to add custom drawing to specific inspector views. This can be useful for drawing dividers between items, highlights etc.
-
-
Constructor Summary
Constructors Constructor Description PropertyInspector.ItemDecoration()
-
Method Summary
Modifier and Type Method Description void
onDraw(@NonNull() Canvas canvas, @NonNull() PropertyInspector parent)
Draw required decorations to canvas supplied to the PropertyInspector. void
onDrawOver(@NonNull() Canvas canvas, @NonNull() PropertyInspector parent)
Draw any appropriate decorations into the Canvas supplied to the . void
getItemOffsets(@NonNull() Rect outRect, @NonNull() PropertyInspectorView inspectorView, @NonNull() PropertyInspector parent)
Retrieve offset for the given inspector view. -
-
Method Detail
-
onDraw
void onDraw(@NonNull() Canvas canvas, @NonNull() 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 intoparent
- PropertyInspector we are drawing onto.
-
onDrawOver
void onDrawOver(@NonNull() Canvas canvas, @NonNull() PropertyInspector parent)
Draw any appropriate decorations into the Canvas supplied to the . This method will draw over already drawn inspector views.
- Parameters:
canvas
- Canvas to draw intoparent
- PropertyInspector we are drawing onto.
-
getItemOffsets
void getItemOffsets(@NonNull() Rect outRect, @NonNull() PropertyInspectorView inspectorView, @NonNull() PropertyInspector parent)
Retrieve offset for the given inspector view.
outRect
represents inset of theinspectorView
when it's drawn. This is similar to padding or margin.- Parameters:
outRect
- Output rectangle.inspectorView
- The child view to decorateparent
- PropertyInspector we are decorating.
-
-
-
-