public class

TabletAnnotationToolbarComponent

extends AnnotationToolbarComponent
java.lang.Object
   ↳ com.pdftron.pdf.widget.toolbar.component.AnnotationToolbarComponent
     ↳ com.pdftron.pdf.widget.toolbar.component.TabletAnnotationToolbarComponent

Class Overview

Tablet version of AnnotationToolbarComponent which contains a preset style section in the annotation toolbar.

Summary

[Expand]
Inherited Constants
From class com.pdftron.pdf.widget.toolbar.component.AnnotationToolbarComponent
Public Constructors
TabletAnnotationToolbarComponent(LifecycleOwner lifecycleOwner, FragmentManager fragmentManager, AnnotationToolbarViewModel annotationToolbarViewModel, PresetBarViewModel presetBarViewModel, ToolManagerViewModel toolManagerViewModel, SignatureViewModel signatureViewModel, AnnotationToolbarView view, TabletPresetBarView presetBarView, boolean isInsideAnnotationToolbar, HashSet<ToolbarButtonType> toolsToHidePresetBar, boolean hidePresetBar)
Public Methods
void closeEditToolbar()
Closes the edit toolbar
void setCompactMode(boolean compactMode)
In compact mode, the annotation toolbar will prepend toolbar switcher in front of scrollable tools.
void setInsideAnnotationToolbar(boolean isInsideAnnotationToolbar)
void setPresetBarVerticalLayout(PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition position)
[Expand]
Inherited Methods
From class com.pdftron.pdf.widget.toolbar.component.AnnotationToolbarComponent
From class java.lang.Object
From interface com.pdftron.pdf.tools.AdvancedShapeCreate.OnEditToolbarListener

Public Constructors

public TabletAnnotationToolbarComponent (LifecycleOwner lifecycleOwner, FragmentManager fragmentManager, AnnotationToolbarViewModel annotationToolbarViewModel, PresetBarViewModel presetBarViewModel, ToolManagerViewModel toolManagerViewModel, SignatureViewModel signatureViewModel, AnnotationToolbarView view, TabletPresetBarView presetBarView, boolean isInsideAnnotationToolbar, HashSet<ToolbarButtonType> toolsToHidePresetBar, boolean hidePresetBar)

Public Methods

public void closeEditToolbar ()

Closes the edit toolbar

public void setCompactMode (boolean compactMode)

In compact mode, the annotation toolbar will prepend toolbar switcher in front of scrollable tools. In non-compact mode, it is assumed that toolbar switcher is located somewhere else in the viewer

Parameters
compactMode true if in compact mode, false otherwise. Default to false.

public void setInsideAnnotationToolbar (boolean isInsideAnnotationToolbar)

public void setPresetBarVerticalLayout (PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition position)