onFilter

abstract fun onFilter(paint: Paint): Boolean

Called with the paint that will be used to draw the specified type. The implementation may modify the paint as they wish.

The result boolean is used to determine whether the draw op is to be executed (true) or skipped (false).

Note: The base implementation calls onFilter() for top-level/explicit paints only.