public class

AnnotationEditingToolbarGroupingRule

extends PresetMenuItemGroupingRule
java.lang.Object
   ↳ com.pspdfkit.ui.toolbar.grouping.DefaultMenuItemGroupingRule
     ↳ com.pspdfkit.ui.toolbar.grouping.presets.PresetMenuItemGroupingRule
       ↳ com.pspdfkit.ui.toolbar.grouping.presets.AnnotationEditingToolbarGroupingRule

Class Overview

Default grouping rule of the AnnotationEditingToolbar.

Summary

[Expand]
Inherited Fields
From class com.pspdfkit.ui.toolbar.grouping.DefaultMenuItemGroupingRule
Public Constructors
AnnotationEditingToolbarGroupingRule(Context context)
Public Methods
List<MenuItem> getGroupPreset(int capacity, int itemsCount)
Implementation of this method should return desired preset (structured list of menu items) based on the provided capacity (space left on the toolbar) and the amount of items that needs to be fitted.
[Expand]
Inherited Methods
From class com.pspdfkit.ui.toolbar.grouping.presets.PresetMenuItemGroupingRule
From class com.pspdfkit.ui.toolbar.grouping.DefaultMenuItemGroupingRule
From class java.lang.Object
From interface com.pspdfkit.ui.toolbar.grouping.MenuItemGroupingRule

Public Constructors

public AnnotationEditingToolbarGroupingRule (Context context)

Public Methods

public List<MenuItem> getGroupPreset (int capacity, int itemsCount)

Implementation of this method should return desired preset (structured list of menu items) based on the provided capacity (space left on the toolbar) and the amount of items that needs to be fitted.

Parameters
capacity Number of spaces left on the toolbar for menu icons.
itemsCount Number of items to fit.
Returns
  • Structured list of how items should be grouped.