Class ShapeAnnotationPreviewInspectorView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback
,android.view.KeyEvent.Callback
,android.view.accessibility.AccessibilityEventSource
,com.pspdfkit.ui.inspector.PropertyInspectorView
,com.pspdfkit.ui.special_mode.manager.AnnotationManager.OnAnnotationCreationModeSettingsChangeListener
public class ShapeAnnotationPreviewInspectorView extends View implements PropertyInspectorView, AnnotationManager.OnAnnotationCreationModeSettingsChangeListener
Annotation inspector preview for shape annotations (line, square, circle etc.).
-
-
Constructor Summary
Constructors Constructor Description ShapeAnnotationPreviewInspectorView(Context context, AnnotationType annotationType, AnnotationCreationController annotationCreationController)
-
Method Summary
Modifier and Type Method Description View
getView()
Casts the inspector view to the View class and returns it. void
bindController(@NonNull() PropertyInspectorController controller)
Bind to property inspector controller. void
unbindController()
Unbind from property inspector controller. int
getPropertyInspectorMinHeight()
Height of the parent PropertyInspector that this view would like it to have. int
getPropertyInspectorMaxHeight()
Returns maximum height that this view with all its detail views will occupy. int
getSuggestedHeight()
Returns best height of this view when shown in inspector. void
onAnnotationCreationModeSettingsChange(@NonNull() AnnotationCreationController controller)
Called when the settings changed in the active annotation creation mode. -
-
Constructor Detail
-
ShapeAnnotationPreviewInspectorView
ShapeAnnotationPreviewInspectorView(Context context, AnnotationType annotationType, AnnotationCreationController annotationCreationController)
-
-
Method Detail
-
bindController
void bindController(@NonNull() PropertyInspectorController controller)
Bind to property inspector controller.
-
unbindController
void unbindController()
Unbind from property inspector controller.
-
getPropertyInspectorMinHeight
int getPropertyInspectorMinHeight()
Height of the parent PropertyInspector that this view would like it to have.
- Returns:
Hint for the minimum inspector height or 0 if no min height is specified.
-
getPropertyInspectorMaxHeight
int getPropertyInspectorMaxHeight()
Returns maximum height that this view with all its detail views will occupy.
- Returns:
Hint for the maximum inspector height or 0 if no max height is specified.
-
getSuggestedHeight
int getSuggestedHeight()
Returns best height of this view when shown in inspector. This is used to suggest initial height to inspector parent.
- Returns:
Hint for the view height after being shown in inspector.
-
onAnnotationCreationModeSettingsChange
void onAnnotationCreationModeSettingsChange(@NonNull() AnnotationCreationController controller)
Called when the settings changed in the active annotation creation mode. You can then get the new values from the provided AnnotationCreationController.
- Parameters:
controller
- Provided controller for managing annotation creation mode, holds values such as color, thickness, etc.
-
-
-
-