com.pspdfkit.ui.special_mode.controller.AnnotationEditingController |
Default controller given when entering annotation editing mode. Used to control annotation editing mode actions.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
bindAnnotationInspectorController(AnnotationInspectorController annotationInspectorController)
Binds to the annotation inspector controller for managing annotation inspector.
| ||||||||||
abstract void |
deleteCurrentlySelectedAnnotation()
Deletes currently selected annotation from the document.
| ||||||||||
abstract void |
enterAudioPlaybackMode()
Starts playback mode for the currently selected sound annotation.
| ||||||||||
abstract void |
enterAudioRecordingMode()
Starts recording mode for the currently selected sound annotation.
| ||||||||||
abstract AnnotationManager |
getAnnotationManager()
Returns an annotation manager which you can use to register listeners from the controller.
| ||||||||||
abstract PdfConfiguration |
getConfiguration()
Returns an active configuration.
| ||||||||||
abstract Annotation |
getCurrentlySelectedAnnotation()
Returns currently edited annotation (if any).
| ||||||||||
abstract void |
recordAnnotationZIndexEdit(Annotation annotation, int oldZIndex, int newZIndex)
Records the z-index being changed on the specified annotation.
| ||||||||||
abstract void |
saveCurrentlySelectedAnnotation()
Saves currently selected annotation to the document.
| ||||||||||
abstract boolean |
shouldDisplayPicker()
Whether annotation inspector toolbar icon should be visible.
| ||||||||||
abstract boolean |
shouldDisplayPlayAudioButton()
Whether play button should be displayed for the selected sound annotation.
| ||||||||||
abstract boolean |
shouldDisplayRecordAudioButton()
Whether record button should be displayed for the selected sound annotation.
| ||||||||||
abstract void |
showAnnotationEditor(Annotation annotation)
Shows annotation editor for the passed annotation.
| ||||||||||
abstract void |
showEditedAnnotationPositionOnThePage(int pageIndex)
Temporarily hides the selected/edited annotation view and shows its relative position on the
page.
| ||||||||||
abstract void |
startRecording()
Starts recording the edits.
| ||||||||||
abstract void |
stopRecording()
Stops recording the edits, notifies the result and clears current record, so calling
startRecording() will start from clean state. | ||||||||||
abstract void |
toggleAnnotationInspector()
Displays/hides an annotation inspector for the selected annotation.
| ||||||||||
abstract void |
unbindAnnotationInspectorController()
Unbinds from previously bound annotation inspector controller.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Binds to the annotation inspector controller for managing annotation inspector.
annotationInspectorController | Controller for managing annotation inspector. |
---|
Deletes currently selected annotation from the document.
Starts playback mode for the currently selected sound annotation.
Starts recording mode for the currently selected sound annotation.
Returns an annotation manager which you can use to register listeners from the controller.
Returns an active configuration.
Returns currently edited annotation (if any).
null
if none currently edited.
Records the z-index being changed on the specified annotation.
annotation | Annotation being reordered. |
---|---|
oldZIndex | Old z-index of the annotation. |
newZIndex | New z-index of the annotation. |
Saves currently selected annotation to the document.
Whether annotation inspector toolbar icon should be visible.
Whether play button should be displayed for the selected sound annotation.
Whether record button should be displayed for the selected sound annotation.
Shows annotation editor for the passed annotation.
annotation | Annotation for which to show the editor. |
---|
Temporarily hides the selected/edited annotation view and shows its relative position on the page.
pageIndex | A page on which to temporarily hide the selected annotation views. |
---|
Starts recording the edits.
Stops recording the edits, notifies the result and clears current record, so calling startRecording()
will start from clean state.
Displays/hides an annotation inspector for the selected annotation.
Unbinds from previously bound annotation inspector controller.