Class DefaultAnnotationCreationInspectorController
-
- All Implemented Interfaces:
-
com.pspdfkit.ui.inspector.PropertyInspectorCoordinatorLayoutController.PropertyInspectorLifecycleListener
,com.pspdfkit.ui.inspector.PropertyInspectorTitleButtonListener
,com.pspdfkit.ui.inspector.annotation.AnnotationCreationInspectorController
,com.pspdfkit.ui.special_mode.controller.AnnotationInspectorController
public class DefaultAnnotationCreationInspectorController extends AbstractAnnotationInspectorController implements AnnotationCreationInspectorController, PropertyInspectorTitleButtonListener
Controller for annotation creation inspector. Meant to be used with .
-
-
Constructor Summary
Constructors Constructor Description DefaultAnnotationCreationInspectorController(Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)
-
Method Summary
Modifier and Type Method Description void
bindAnnotationCreationController(@NonNull() AnnotationCreationController controller)
Binds controller for managing annotation creation mode. void
unbindAnnotationCreationController()
Unbinds controller for managing annotation creation mode. void
displayScalePicker(boolean animate)
Toggles between shown/hidden state of the annotation inspector and displays the measurements scale picker. boolean
onBackButtonClicked()
Only active when we're in measurement scale mode (property inspector for the scale FAB) boolean
onCloseButtonClicked()
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 . -
-
Constructor Detail
-
DefaultAnnotationCreationInspectorController
DefaultAnnotationCreationInspectorController(Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)
- Parameters:
context
- The context.coordinatorController
- Controller managing inspector coordinator layout.
-
-
Method Detail
-
bindAnnotationCreationController
void bindAnnotationCreationController(@NonNull() AnnotationCreationController controller)
Binds controller for managing annotation creation mode.
- Parameters:
controller
- Annotation creation mode controller provided when entering annotation creation mode.
-
unbindAnnotationCreationController
void unbindAnnotationCreationController()
Unbinds controller for managing annotation creation mode.
-
displayScalePicker
void displayScalePicker(boolean animate)
Toggles between shown/hidden state of the annotation inspector and displays the measurements scale picker.
- Parameters:
animate
- Whether to animate the change.
-
onBackButtonClicked
boolean onBackButtonClicked()
Only active when we're in measurement scale mode (property inspector for the scale FAB)
- Returns:
true
if the click was consumed, otherwisefalse
-
onCloseButtonClicked
boolean onCloseButtonClicked()
-
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.
-
-
-
-