| com.pdftron.pdf.tools.ToolManager.AnnotationModificationListener |
Known Indirect Subclasses
|
This interface can be used to monitor annotation modification events such as added/edited/removed.
For listening to events that change the structure of PDF document such as page manipulation see
ToolManager.PdfDocModificationListener.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
annotationsCouldNotBeAdded(String errorMessage)
Called when annotations couldn't have been added
| ||||||||||
| abstract void |
onAnnotationsAdded(Map<Annot, Integer> annots)
Called when annotations have been added to the document.
| ||||||||||
| abstract void |
onAnnotationsModified(Map<Annot, Integer> annots, Bundle extra)
Called when annotations have been modified.
| ||||||||||
| abstract void |
onAnnotationsPreModify(Map<Annot, Integer> annots)
Called right before annotations have been modified.
| ||||||||||
| abstract void |
onAnnotationsPreRemove(Map<Annot, Integer> annots)
Called right before annotations have been removed from the document.
| ||||||||||
| abstract void |
onAnnotationsRemoved(Map<Annot, Integer> annots)
Called when annotations have been removed from the document.
| ||||||||||
| abstract void |
onAnnotationsRemovedOnPage(int pageNum)
Called when all annotations in the specified page have been removed.
| ||||||||||
Called when annotations couldn't have been added
| errorMessage | The error message |
|---|
Called when annotations have been added to the document.
| annots | The list of annotations (a pair of annotation and the page number where the annotation is on) |
|---|
Called when annotations have been modified.
| annots | The list of annotations (a pair of annotation and the page number where the annotation is on) |
|---|
Called right before annotations have been modified.
| annots | The list of annotations (a pair of annotation and the page number where the annotation is on) |
|---|
Called right before annotations have been removed from the document. All actions to be performed on the annots need to be done here
| annots | The list of annotations (a pair of annotation and the page number where the annotation is on) |
|---|
Called when annotations have been removed from the document. No action should be performed on the annots, use onAnnotationsPreRemove instead.
| annots | The list of annotations (a pair of annotation and the page number where the annotation is on) |
|---|
Called when all annotations in the specified page have been removed.
| pageNum | The page number where the annotations are on |
|---|