public class

AnnotationToolbarView

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.widget.toolbar.component.view.AnnotationToolbarView

Class Overview

Class that contains the views related to the new annotation toolbar, and exposes necessary Annotation Toolbar related API.

Summary

Public Constructors
AnnotationToolbarView(ViewGroup parent)
AnnotationToolbarView(ViewGroup parent, PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition position, boolean isPresetExpanding, boolean showEmptyPreset)
Public Methods
void addOnButtonLongClickListener(View.OnLongClickListener onLongClickListener)
void addOnMenuItemClickListener(Toolbar.OnMenuItemClickListener onMenuItemClickListener)
void addToolbarActionsLeftOptionalContainer(View view)
void addToolbarActionsRightOptionalContainer(View view)
void addToolbarLeftOptionalContainer(View view)
void addToolbarOverlay(View view)
void clearOptionContainers()
void clearPreviousToolbarBuilder()
void clearToolbarOverlayView()
void deselectAllToolbarButtons()
void disableAllItems()
ActionToolbar getActionToolbar()
Context getContext()
int getHeight()
FrameLayout getPresetContainer()
PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition getToolbarPosition()
void hide(boolean animate)
void inflateWithBuilder(AnnotationToolbarBuilder builder)
boolean isShown()
boolean isVertical()
void scrollToToolButton(int buttonId)
Attempts to scroll the scrollable tool region to the specified tool button if the button is not visible.
void selectToolbarButtonIfAvailable(int buttonId)
void setCompactMode(boolean compactMode)
void setEmptyToolText(int emptyText)
void setEmptyToolTextOnClickListener(View.OnClickListener listener)
void setEmptyToolTextVisible(boolean visible)
void setIconColor(int buttonId, int iconColor)
void setItemAppearanceEnabled(int buttonId, boolean isAppearanceEnabled)
void setItemEnabled(int buttonId, boolean isEnabled)
void setItemVisibility(int buttonId, boolean isVisible)
void setNavigationIcon(int icon)
void setNavigationIconProperty(int paddingLeft, int minWidth)
void setNavigationIconVisible(boolean visible)
void setSelectedIconColor(int buttonId, int iconColor)
void setToolRegionVisible(boolean visible)
void setToolbarHeight(int size)
void setToolbarItemGravity(int layoutGravity)
void setToolbarSwitcherVisible(boolean visible)
void setVerticalLayout(ViewGroup parent, PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition position)
void show(boolean animate)
void toggleToolbarButtons(ToolbarItem toolbarItem)
void updateAccentButton(int buttonId, int color, int alpha)
void updateTheme()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AnnotationToolbarView (ViewGroup parent)

public AnnotationToolbarView (ViewGroup parent, PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition position, boolean isPresetExpanding, boolean showEmptyPreset)

Public Methods

public void addOnButtonLongClickListener (View.OnLongClickListener onLongClickListener)

public void addOnMenuItemClickListener (Toolbar.OnMenuItemClickListener onMenuItemClickListener)

public void addToolbarActionsLeftOptionalContainer (View view)

public void addToolbarActionsRightOptionalContainer (View view)

public void addToolbarLeftOptionalContainer (View view)

public void addToolbarOverlay (View view)

public void clearOptionContainers ()

public void clearPreviousToolbarBuilder ()

public void clearToolbarOverlayView ()

public void deselectAllToolbarButtons ()

public void disableAllItems ()

public ActionToolbar getActionToolbar ()

public Context getContext ()

public int getHeight ()

public FrameLayout getPresetContainer ()

public void hide (boolean animate)

public void inflateWithBuilder (AnnotationToolbarBuilder builder)

public boolean isShown ()

public boolean isVertical ()

public void scrollToToolButton (int buttonId)

Attempts to scroll the scrollable tool region to the specified tool button if the button is not visible.

Parameters
buttonId id of the button to scroll to.

public void selectToolbarButtonIfAvailable (int buttonId)

public void setCompactMode (boolean compactMode)

public void setEmptyToolText (int emptyText)

public void setEmptyToolTextOnClickListener (View.OnClickListener listener)

public void setEmptyToolTextVisible (boolean visible)

public void setIconColor (int buttonId, int iconColor)

public void setItemAppearanceEnabled (int buttonId, boolean isAppearanceEnabled)

public void setItemEnabled (int buttonId, boolean isEnabled)

public void setItemVisibility (int buttonId, boolean isVisible)

public void setNavigationIcon (int icon)

public void setNavigationIconProperty (int paddingLeft, int minWidth)

public void setNavigationIconVisible (boolean visible)

public void setSelectedIconColor (int buttonId, int iconColor)

public void setToolRegionVisible (boolean visible)

public void setToolbarHeight (int size)

public void setToolbarItemGravity (int layoutGravity)

public void setToolbarSwitcherVisible (boolean visible)

public void setVerticalLayout (ViewGroup parent, PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition position)

public void show (boolean animate)

public void toggleToolbarButtons (ToolbarItem toolbarItem)

public void updateAccentButton (int buttonId, int color, int alpha)

public void updateTheme ()