public class CPDFContextMenuShowHelper extends java.lang.Object implements IContextMenuShowListener
IContextMenuShowListener.ContextMenuType
Modifier and Type | Field and Description |
---|---|
static int |
AddEditImageArea |
static int |
ReplaceEditImageArea |
Constructor and Description |
---|
CPDFContextMenuShowHelper(CPDFReaderView readerView) |
Modifier and Type | Method and Description |
---|---|
void |
dismissContextMenu()
Dismisses context menu.
|
android.view.View |
getCheckboxContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of Checkbox form |
android.view.View |
getComboboxContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of Combobox form |
android.view.View |
getContentViewByType(CPDFPageView pageView,
IContextMenuShowListener.ContextMenuType type,
android.graphics.RectF area,
android.view.LayoutInflater layoutInflater)
Gets the ContentView of context menu according to context menu type
|
android.view.View |
getCropImageAreaContentView(CPDFPageView pageView,
android.view.LayoutInflater layoutInflater)
Gets
ContentView of the context menu when clicking the cropping image block in the image-cropping status. |
android.view.View |
getEditImageAreaContentView(CPDFPageView pageView,
android.view.LayoutInflater layoutInflater,
android.graphics.RectF area)
Gets
ContentView of the context menu when selecting image block in the image-editing status. |
android.view.View |
getEditLongPressContentView(CPDFPageView pageView,
android.graphics.PointF point,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu when long pressing of the edit mode |
android.view.View |
getEditPathAreaContentView(CPDFPageView pageView,
android.view.LayoutInflater layoutInflater) |
CPDFEditSelections |
getEditSelection()
Get the selection of the EditTextArea.
|
android.view.View |
getEditSelectTextContentView(CPDFPageView pageView,
android.view.LayoutInflater layoutInflater,
CPDFEditSelections selections)
Gets
ContentView of the context menu when editing and selecting the text content in the text-editing status. |
android.view.View |
getEditTextAreaContentView(CPDFPageView pageView,
android.view.LayoutInflater layoutInflater,
CPDFEditSelections selections)
Gets
ContentView of the context menu when selecting text block in the text-editing status. |
android.view.View |
getEditTextContentView(CPDFPageView pageView,
android.view.LayoutInflater layoutInflater)
Gets
ContentView of the context menu when editing the text content and clicking the position of the cursor in the text-editing status. |
android.view.View |
getFreetextContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater,
IContextMenuShowListener.ContextMenuType type)
Gets the
ContentView of context menu of annotation. |
android.view.View |
getInkContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of Markup annotation |
android.view.View |
getLinkContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of Link annotation |
android.view.View |
getListboxContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of Listbox form |
android.view.View |
getLongPressContentView(CPDFPageView pageView,
android.graphics.PointF point,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu when long pressing the blank |
android.view.View |
getMarkupContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of Markup annotation |
android.view.View |
getNoteContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of Note annotation |
CPDFPageView |
getPageView()
Get pageview
|
android.view.View |
getPushbuttonContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of Pushbutton form |
android.view.View |
getRadiobuttonContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of Radiobutton form |
android.view.View |
getRedactContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of TextField form |
android.view.View |
getScreenShotContentView(CPDFPageView pageView,
android.view.LayoutInflater layoutInflater,
android.graphics.RectF rect) |
android.view.View |
getSearchReplaceContentView(CPDFPageView pageView,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu when searching text in edit mode and select a search result. |
android.view.View |
getSelectTextContentView(CPDFPageView pageView,
android.view.LayoutInflater layoutInflater)
Gets
ContentView of the context menu when selecting text. |
android.view.View |
getShapeContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of Shape annotation. |
android.view.View |
getSignatureContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of Signature form |
android.view.View |
getSoundContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of Sound annotation |
android.view.View |
getStampContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of Stamp annotation |
android.view.View |
getTextfieldContentView(CPDFPageView pageView,
CPDFBaseAnnotImpl annotImpl,
android.view.LayoutInflater layoutInflater)
Gets the
ContentView of context menu of TextField form |
void |
setEditSelection(CPDFEditSelections selections)
Set the selection of the EditTextArea.
|
void |
setPageView(CPDFPageView pageView)
Set pageview
|
void |
showContextMenu(CPDFPageView rootView,
CPDFBaseAnnotImpl annotImpl,
android.graphics.RectF area,
IContextMenuShowListener.ContextMenuType type)
Shows the context menu in specified area according to annotation type
|
void |
showContextMenu(CPDFPageView rootView,
IContextMenuShowListener.ContextMenuType type,
android.graphics.RectF area)
Shows context menu in area according to context menu type.
|
void |
showContextMenu(CPDFPageView rootView,
IContextMenuShowListener.ContextMenuType type,
android.graphics.RectF area,
CPDFEditSelections selections)
Shows context menu in edit mode according to context menu type.
|
public static final int AddEditImageArea
public static final int ReplaceEditImageArea
public CPDFContextMenuShowHelper(CPDFReaderView readerView)
public CPDFEditSelections getEditSelection()
public void setEditSelection(CPDFEditSelections selections)
selections
- The selection of the EditTextArea.public void setPageView(CPDFPageView pageView)
pageView
- pageviewpublic CPDFPageView getPageView()
public void showContextMenu(CPDFPageView rootView, CPDFBaseAnnotImpl annotImpl, android.graphics.RectF area, IContextMenuShowListener.ContextMenuType type)
showContextMenu
in interface IContextMenuShowListener
rootView
- Root of context menu.annotImpl
- Annotation display entity, more: CPDFBaseAnnotImpl
area
- Displayed area of annotation(Android coordinate system)type
- Context menu typepublic void showContextMenu(CPDFPageView rootView, IContextMenuShowListener.ContextMenuType type, android.graphics.RectF area)
showContextMenu
in interface IContextMenuShowListener
rootView
- Root of context menu.type
- Context menu type, more: IContextMenuShowListener.ContextMenuType
area
- 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 IContextMenuShowListener
rootView
- Root of context menu.type
- Context menu type, more: IContextMenuShowListener.ContextMenuType
area
- Displayed position of context menu(Android coordinate system)selections
- The select text objects in the current text block.public android.view.View getContentViewByType(CPDFPageView pageView, IContextMenuShowListener.ContextMenuType type, android.graphics.RectF area, android.view.LayoutInflater layoutInflater)
pageView
- Displayed View in PDF page, more: CPDFPageView
type
- Annotation display entity.area
- Displayed position of context menu(Android coordinate system)layoutInflater
- more: LayoutInflater
public void dismissContextMenu()
dismissContextMenu
in interface IContextMenuShowListener
public android.view.View getShapeContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of Shape
annotation.pageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
public android.view.View getFreetextContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater, IContextMenuShowListener.ContextMenuType type)
ContentView
of context menu of annotation.pageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
public android.view.View getMarkupContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of Markup
annotationpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of Markup
annotationpublic android.view.View getInkContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of Markup
annotationpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of Ink
annotationpublic android.view.View getStampContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of Stamp
annotationpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of Stamp
annotationpublic android.view.View getLinkContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of Link
annotationpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of Link
annotationpublic android.view.View getNoteContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of Note
annotationpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of Note
annotationpublic android.view.View getSoundContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of Sound
annotationpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of Sound
annotationpublic android.view.View getCheckboxContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of Checkbox
formpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of Checkbox
formpublic android.view.View getComboboxContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of Combobox
formpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of Combobox
formpublic android.view.View getListboxContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of Listbox
formpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of Listbox
formpublic android.view.View getPushbuttonContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of Pushbutton
formpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of Pushbutton
formpublic android.view.View getRadiobuttonContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of Radiobutton
formpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of Radiobutton
formpublic android.view.View getSignatureContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of Signature
formpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of Signature
formpublic android.view.View getTextfieldContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of TextField
formpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of TextField
formpublic android.view.View getSelectTextContentView(CPDFPageView pageView, android.view.LayoutInflater layoutInflater)
ContentView
of the context menu when selecting text.pageView
- Displayed View in PDF page, more: CPDFPageView
layoutInflater
- more: LayoutInflater
ContentView
of context menu when selecting textpublic android.view.View getEditImageAreaContentView(CPDFPageView pageView, android.view.LayoutInflater layoutInflater, android.graphics.RectF area)
ContentView
of the context menu when selecting image block in the image-editing status.pageView
- Displayed View in PDF page, more: CPDFPageView
layoutInflater
- more: LayoutInflater
area
- Area of the selected image block.ContentView
of the context menu when selecting text block in the text-editing status.public android.view.View getLongPressContentView(CPDFPageView pageView, android.graphics.PointF point, android.view.LayoutInflater layoutInflater)
ContentView
of context menu when long pressing the blankpageView
- Displayed View in PDF page, more: CPDFPageView
layoutInflater
- more: LayoutInflater
ContentView
of context menu when long pressing the blankpublic android.view.View getEditLongPressContentView(CPDFPageView pageView, android.graphics.PointF point, android.view.LayoutInflater layoutInflater)
ContentView
of context menu when long pressing of the edit modepageView
- Displayed View in PDF page, more: CPDFPageView
layoutInflater
- more: LayoutInflater
ContentView
of context menu when long pressing the blank of the edit modepublic android.view.View getEditTextAreaContentView(CPDFPageView pageView, android.view.LayoutInflater layoutInflater, CPDFEditSelections selections)
ContentView
of the context menu when selecting text block in the text-editing status.pageView
- Displayed View in PDF page, more: CPDFPageView
layoutInflater
- more: LayoutInflater
selections
- All text objects in the current text block.ContentView
of the context menu when selecting text block in the text-editing status.public android.view.View getEditSelectTextContentView(CPDFPageView pageView, android.view.LayoutInflater layoutInflater, CPDFEditSelections selections)
ContentView
of the context menu when editing and selecting the text content in the text-editing status.pageView
- Displayed View in PDF page, more: CPDFPageView
layoutInflater
- more: LayoutInflater
selections
- The currently selected object.ContentView
of the context menu when editing and selecting the text content in the text-editing status.public android.view.View getEditTextContentView(CPDFPageView pageView, android.view.LayoutInflater layoutInflater)
ContentView
of the context menu when editing the text content and clicking the position of the cursor in the text-editing status.pageView
- Displayed View in PDF page, more: CPDFPageView
layoutInflater
- more: LayoutInflater
ContentView
of the context menu when editing the text content and clicking the position of the cursor in the text-editing status.public android.view.View getRedactContentView(CPDFPageView pageView, CPDFBaseAnnotImpl annotImpl, android.view.LayoutInflater layoutInflater)
ContentView
of context menu of TextField
formpageView
- Displayed View in PDF page, more: CPDFPageView
annotImpl
- Annotation display entity.layoutInflater
- more: LayoutInflater
ContentView
of context menu of TextField
formpublic android.view.View getCropImageAreaContentView(CPDFPageView pageView, android.view.LayoutInflater layoutInflater)
ContentView
of the context menu when clicking the cropping image block in the image-cropping status.pageView
- Displayed View in PDF page, more: CPDFPageView
layoutInflater
- more: LayoutInflater
ContentView
of context menu of cropping image block.public android.view.View getSearchReplaceContentView(CPDFPageView pageView, android.view.LayoutInflater layoutInflater)
ContentView
of context menu when searching text in edit mode and select a search result.pageView
- Displayed View in PDF page, more: CPDFPageView
layoutInflater
- more: LayoutInflater
ContentView
of context menu.public android.view.View getEditPathAreaContentView(CPDFPageView pageView, android.view.LayoutInflater layoutInflater)
public android.view.View getScreenShotContentView(CPDFPageView pageView, android.view.LayoutInflater layoutInflater, android.graphics.RectF rect)