Interface AnnotationCreationToolbar.ItemToAnnotationToolMapper

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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(@IdRes() int itemId) Whether the icon of item with specified ID should display the current properties used by its mapped tool.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • isStyleIndicatorCircleEnabled

         abstract boolean isStyleIndicatorCircleEnabled(@IdRes() int itemId)

        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.

        Parameters:
        itemId - ID of the item for which the style indicator should be displayed or not.
        Returns:

        true to display the style indicator for the item, false otherwise.