public class QPDFNotesView extends QPDFViewerView implements com.qoppa.notes.priv.IQPDFNotes
QPDFViewerView.setActivity(Activity)() after this class is constructed.QPDFViewerView.VIEW_MODE| Constructor and Description |
|---|
QPDFNotesView(Context context) |
QPDFNotesView(Context context,
AttributeSet set) |
QPDFNotesView(Context context,
QPDFViewerView.VIEW_MODE viewMode)
If viewMode is null,
QPDFViewerView.VIEW_MODE.VERTICAL_CONTINUOUS will be used. |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewPage()
Adds a blank page to the end of the current document.
|
void |
clearDrawingTool()
Clears the current drawing tool.
|
void |
copy(Annotation annot)
Copies the annotation to the system clipboard in XFDF format.
|
ToolbarNotes |
getToolbar()
Returns the application toolbar
|
Dialog |
initAnnotContextDialog(AnnotComponent comp)
This is called to instantiate the annotation context dialog, which is displayed when an annotation is long pressed upon.
The return for this method is null safe. |
Dialog |
initAnnotPropsDialog(AnnotComponent comp,
boolean justAdded)
Initializer which is called for creating all AnnotPropDialogs.
|
Dialog |
initPageContextDialog(PDFPageView pageView,
PointF location) |
void |
newDoc()
Closes the the current document and creates and loads a blank document.
|
void |
paste(PDFPageView pageView,
PointF location)
If the clipboard contains an annotation, pastes it onto the page at the given location.
|
void |
save()
Prompts the user to save the current document.
|
void |
save(java.lang.String path)
Saves the current document to the given path.
|
void |
saveAs()
Displays the save as file chooser
|
void |
signAndSaveAs(SignatureField field,
SigningInformation info)
Prompts the user to pick a location for the new document, and then signs and saves to that location.
|
void |
startDrawingTool(AnnotDrawingTool tool)
Begin drawing with the given tool.
|
addDocumentChangeListener, addDocumentListener, addPageChangedListener, clearAnnotationSelection, documentModified, getActivity, getCurrentPageFormat, getCurrentPageNumber, getCurrentScale, getDocument, getFitToWidth, getMaximumScale, getMininumScale, getPageView, getPageView, getPageViewOverlay, getScrollView, getSearchToolbar, getSelectedAnnotation, getShowNoteHook, getTileFactory, getToolbarLocation, getViewMode, goToPage, handleAction, handleActions, initAnnotComponent, initScrollViewWrapper, inputPage, inputZoom, isNightMode, isSearchVisible, isTouchListenerActive, isZooming, loadDocument, loadDocument, loadDocument, nextPage, onConfigurationChanged, onLeftToRightSwipe, onRightToLeftSwipe, open, prevPage, redrawCachedAnnots, redrawContent, redrawContent, refreshTiles, releaseDocument, scrollPdfRectVisible, selectAnnotation, setActivity, setCurrentPageFormat, setDocument, setMaximumScale, setMinimumScale, setNightMode, setOnGestureListener, setPageViewOverlay, setScale, setShowNoteHook, setShowProgressDialog, setToolbarLocation, setTouchListenerActive, showHideSearch, showHideToolbar, zoomIn, zoomOutpublic QPDFNotesView(Context context)
public QPDFNotesView(Context context,
AttributeSet set)
public QPDFNotesView(Context context,
QPDFViewerView.VIEW_MODE viewMode)
QPDFViewerView.VIEW_MODE.VERTICAL_CONTINUOUS will be used.public void save()
save in interface com.qoppa.notes.priv.IQPDFNotespublic void saveAs()
saveAs in interface com.qoppa.notes.priv.IQPDFNotespublic void save(java.lang.String path)
save in interface com.qoppa.notes.priv.IQPDFNotespath - The path to save the document to. If path is null or path is the path for the currently open document, an overwrite will be performedpublic void newDoc()
newDoc in interface com.qoppa.notes.priv.IQPDFNotespublic ToolbarNotes getToolbar()
getToolbar in class QPDFViewerViewpublic Dialog initAnnotContextDialog(AnnotComponent comp)
public AnnotContextMenuDialog initAnnotContextDialog() {
AnnotContextDialog dialog = super.initAnnotContextDialog();
dialog.getTvShowComment().setText("custom text");
return dialog;
}
initAnnotContextDialog in interface com.qoppa.notes.priv.IQPDFNotespublic Dialog initPageContextDialog(PDFPageView pageView, PointF location)
initPageContextDialog in interface com.qoppa.notes.priv.IQPDFNotespublic void clearDrawingTool()
clearDrawingTool in interface com.qoppa.notes.priv.IQPDFNotespublic void startDrawingTool(AnnotDrawingTool tool)
startDrawingTool in interface com.qoppa.notes.priv.IQPDFNotestool - An AnnotDrawingToolpublic Dialog initAnnotPropsDialog(AnnotComponent comp, boolean justAdded)
initAnnotPropsDialog in interface com.qoppa.notes.priv.IQPDFNotespublic void addNewPage()
addNewPage in interface com.qoppa.notes.priv.IQPDFNotespublic void signAndSaveAs(SignatureField field, SigningInformation info)
signAndSaveAs in interface com.qoppa.notes.priv.IQPDFNotespublic void copy(Annotation annot)
annot - public void paste(PDFPageView pageView, PointF location)
pageView - Page to paste the annotation onto.location - Location on the page to paste the annotation.