com.pspdfkit.ui.toolbar.AnnotationCreationToolbar.ItemToAnnotationToolMapper |
A mapper that allows you to map the IDs of AnnotationCreationToolbar
menu items with
the annotation tool (and variant) you want it to activate/deactivate. The annotation creation
toolbar will automatically handle all the logic.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract SparseArray<Pair<AnnotationTool, AnnotationToolVariant>> |
getItemToAnnotationToolMapping()
Gets the sparse array mapping contextual toolbar menu item ids with the pair of
annotation tool and its variant that it handles.
| ||||||||||
abstract boolean |
isStyleIndicatorCircleEnabled(int itemId)
Whether the icon of item with specified ID should display the current properties used by
its mapped tool.
|
Gets the sparse array mapping contextual toolbar menu item ids with the pair of annotation tool and its variant that it handles.
Whether the icon of item with specified ID should display the current properties used by its mapped tool. The style indicator is shown in the top left corner of the item's icon. If the provided ID is not mapped to any annotation tool, this will have no effect.
itemId | ID of the item for which the style indicator should be displayed or not. |
---|
true
to display the style indicator for the item, false
otherwise.