| java.lang.Object | |
| ↳ | com.pdftron.pdf.config.ToolConfig |
Helper class for config tools and tool related customize stuffs
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| interface | ToolConfig.PanLongPressSwitchToolCallback | A functional interface for pan tool switch tool when long pressing on annotation | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
addQMHideItem(int itemId)
Add quick menu item to no annotation permission list
| ||||||||||
| ToolManager.ToolModeBase |
getAnnotationHandlerToolMode(int annotType)
get annotation handler tool mode
| ||||||||||
| ArrayList<FontResource> |
getFontList()
Gets list of font to use for free text annotation
| ||||||||||
| static ToolConfig | getInstance() | ||||||||||
| ToolConfig.PanLongPressSwitchToolCallback |
getPanLongPressSwitchToolCallback()
Gets the Pan tool long-press switch-tool custom callback.
| ||||||||||
| ToolManager.ToolMode |
getToolModeByAnnotationToolbarItemId(int itemId)
Gets tool mode by annotation toolbar item id
| ||||||||||
| ToolManager.ToolMode |
getToolModeByQMItemId(int qmItemId)
Gets tool mode by quick menu item id
| ||||||||||
| boolean |
isHideQMItem(int itemId)
Check if quick menu item should be hidden by a given item id
| ||||||||||
| boolean | isRichContentEnabledForFreeText() | ||||||||||
| boolean | isSnappingEnabledForMeasurementTools() | ||||||||||
| void |
putAnnotationToolModePair(int annotType, ToolManager.ToolModeBase toolMode)
Put annotation type and tool mode into annotation tool mode pair
| ||||||||||
| void |
putCustomToolAnnotationToolbarItemPair(int itemId, ToolManager.ToolMode mode)
put custom tool mode and annotation toolbar item view id pair
| ||||||||||
| void |
putCustomToolQMItemPair(int qmItemId, ToolManager.ToolMode mode)
put custom tool mode and quick menu item pair
| ||||||||||
| boolean |
removeQMHideItem(int itemId)
remove quick menu item from no annotation permission list
| ||||||||||
| void |
setFontList(ArrayList<FontResource> fonts)
Sets list of font to use for free text annotation
| ||||||||||
| void |
setPanToolLongPressSwitchToolCallback(ToolConfig.PanLongPressSwitchToolCallback callback)
Sets customized callback for pan tool switch tool when long press
| ||||||||||
| void | setRichContentEnabledForFreeText(boolean enabled) | ||||||||||
| void | setSnappingEnabledForMeasurementTools(boolean enabled) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Add quick menu item to no annotation permission list
| itemId | quick menu item id |
|---|
get annotation handler tool mode
| annotType | annotation type |
|---|
Gets list of font to use for free text annotation
Gets the Pan tool long-press switch-tool custom callback.
If no custom callback has been defined via
setPanToolLongPressSwitchToolCallback(PanLongPressSwitchToolCallback),
this method returns null. In that case, the default long-press
behavior is handled internally by the Pan tool itself.
null if no custom callback is set
Gets tool mode by annotation toolbar item id
| itemId | annotation toolbar item view id |
|---|
Gets tool mode by quick menu item id
| qmItemId | quick menu item id |
|---|
Check if quick menu item should be hidden by a given item id
| itemId | quick menu item id |
|---|
Put annotation type and tool mode into annotation tool mode pair
| annotType | annotation type |
|---|---|
| toolMode | tool mode |
put custom tool mode and annotation toolbar item view id pair
| itemId | annotation toolbar item view id |
|---|---|
| mode | tool mode |
put custom tool mode and quick menu item pair
| qmItemId | quick menu item id |
|---|---|
| mode | tool mode |
remove quick menu item from no annotation permission list
| itemId | quick menu item id |
|---|
Sets list of font to use for free text annotation
| fonts | the list of fonts |
|---|
Sets customized callback for pan tool switch tool when long press
| callback | pan tool long press switch tool tool callback |
|---|