public final class CPDFContextMenuController extends java.lang.Object implements IContextMenuShowListener, CPDFEditSelectionAware
IContextMenuShowListener.ContextMenuType| Constructor and Description |
|---|
CPDFContextMenuController(CPDFReaderView readerView,
CPDFContextMenuRegistry registry) |
CPDFContextMenuController(CPDFReaderView readerView,
CPDFContextMenuRegistry registry,
CPDFPopupMenuPresenter presenter) |
| Modifier and Type | Method and Description |
|---|---|
void |
dismissContextMenu()
Dismisses context menu.
|
CPDFEditSelections |
getEditSelection() |
void |
setEditSelection(CPDFEditSelections selections) |
void |
showContextMenu(CPDFPageView rootView,
CPDFBaseAnnotImpl annotImpl,
android.graphics.RectF area,
IContextMenuShowListener.ContextMenuType type)
Shows context menu according to annotation type.
|
void |
showContextMenu(CPDFPageView rootView,
IContextMenuShowListener.ContextMenuType type,
android.graphics.RectF area)
Shows context menu according to its type
|
void |
showContextMenu(CPDFPageView rootView,
IContextMenuShowListener.ContextMenuType type,
android.graphics.RectF area,
CPDFEditSelections selections) |
public CPDFContextMenuController(CPDFReaderView readerView, CPDFContextMenuRegistry registry)
public CPDFContextMenuController(CPDFReaderView readerView, CPDFContextMenuRegistry registry, CPDFPopupMenuPresenter presenter)
public void showContextMenu(CPDFPageView rootView, CPDFBaseAnnotImpl annotImpl, android.graphics.RectF area, IContextMenuShowListener.ContextMenuType type)
IContextMenuShowListenershowContextMenu in interface IContextMenuShowListenerrootView - Root of context menuannotImpl - Annotation display entity.area - Displayed position of context menu(Android coordinate system)type - Context menu typepublic void showContextMenu(CPDFPageView rootView, IContextMenuShowListener.ContextMenuType type, android.graphics.RectF area)
IContextMenuShowListenershowContextMenu in interface IContextMenuShowListenerrootView - Context menu roottype - Context menu typearea - Displayed position of context menu(Android coordinate system)public void showContextMenu(CPDFPageView rootView, IContextMenuShowListener.ContextMenuType type, android.graphics.RectF area, CPDFEditSelections selections)
showContextMenu in interface IContextMenuShowListenerpublic void dismissContextMenu()
IContextMenuShowListenerdismissContextMenu in interface IContextMenuShowListenerpublic void setEditSelection(CPDFEditSelections selections)
setEditSelection in interface CPDFEditSelectionAwarepublic CPDFEditSelections getEditSelection()