Class DefaultAnnotationEditingInspectorController
-
- All Implemented Interfaces:
-
com.pspdfkit.ui.inspector.PropertyInspectorCoordinatorLayoutController.PropertyInspectorLifecycleListener
,com.pspdfkit.ui.inspector.annotation.AnnotationEditingInspectorController
,com.pspdfkit.ui.special_mode.controller.AnnotationInspectorController
public class DefaultAnnotationEditingInspectorController extends AbstractAnnotationInspectorController implements AnnotationEditingInspectorController
Annotation inspector for annotation editing. Meant to be used with .
-
-
Constructor Summary
Constructors Constructor Description DefaultAnnotationEditingInspectorController(Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)
-
Method Summary
Modifier and Type Method Description void
bindAnnotationEditingController(@NonNull() AnnotationEditingController controller)
Binds controller for managing annotation editing mode. void
unbindAnnotationEditingController()
Unbinds controller for managing annotation editing mode. AnnotationEditingController
getAnnotationEditingController()
Returns AnnotationEditingController we are currently bound to. boolean
hasAnnotationInspector()
Whether annotation inspector toolbar icon should be visible. void
onPreparePropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is prepared to be displayed in the . void
onDisplayPropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is displayed in the . void
onRemovePropertyInspector(@NonNull() PropertyInspector inspector)
Distance annotations created by the calibration tool are only temporary. -
-
Constructor Detail
-
DefaultAnnotationEditingInspectorController
DefaultAnnotationEditingInspectorController(Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)
- Parameters:
context
- The context.coordinatorController
- Controller managing inspector coordinator layout.
-
-
Method Detail
-
bindAnnotationEditingController
void bindAnnotationEditingController(@NonNull() AnnotationEditingController controller)
Binds controller for managing annotation editing mode.
- Parameters:
controller
- Annotation editing mode controller provided when entering annotation editing mode.
-
unbindAnnotationEditingController
void unbindAnnotationEditingController()
Unbinds controller for managing annotation editing mode.
-
getAnnotationEditingController
@Nullable() AnnotationEditingController getAnnotationEditingController()
Returns AnnotationEditingController we are currently bound to.
-
hasAnnotationInspector
boolean hasAnnotationInspector()
Whether annotation inspector toolbar icon should be visible.
- Returns:
true
if the inspector toolbar icon should be visible,false
otherwise.
-
onPreparePropertyInspector
void onPreparePropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is prepared to be displayed in the . Here you can change the inspector views.
- Parameters:
inspector
- Property inspector prepared for displaying in the coordinator.
-
onDisplayPropertyInspector
void onDisplayPropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is displayed in the .
- Parameters:
inspector
- Property inspector that is displayed in the coordinator.
-
onRemovePropertyInspector
void onRemovePropertyInspector(@NonNull() PropertyInspector inspector)
Distance annotations created by the calibration tool are only temporary. Once the inspector closes, we remove it. Either the MeasurementValueConfiguration has already been confirmed by the close/check button and stored to the document (see getPropertyInspectorTitleButtonListener. Otherwise the inspector was cancelled (back button or outside touch). In both cases we delete the annotation afterwards.
-
-
-
-