public class

ShapeAnnotationPreviewInspectorView

extends View
implements PropertyInspectorView AnnotationManager.OnAnnotationCreationModeSettingsChangeListener
java.lang.Object
   ↳ android.view.View
     ↳ com.pspdfkit.ui.inspector.views.ShapeAnnotationPreviewInspectorView

Class Overview

Annotation inspector preview for shape annotations (line, square, circle etc.).

Summary

[Expand]
Inherited Constants
From class android.view.View
Fields
protected final AnnotationCreationController annotationCreationController
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
ShapeAnnotationPreviewInspectorView(Context context, AnnotationType annotationType, AnnotationCreationController annotationCreationController)
Public Methods
void bindController(PropertyInspectorController controller)
Bind to property inspector controller.
int getPropertyInspectorMaxHeight()
Returns maximum height that this view with all its detail views will occupy.
int getPropertyInspectorMinHeight()
Height of the parent PropertyInspector that this view would like it to have.
int getSuggestedHeight()
Returns best height of this view when shown in inspector.
View getView()
Casts the inspector view to the View class and returns it.
void onAnnotationCreationModeSettingsChange(AnnotationCreationController controller)
Called when the settings changed in the active annotation creation mode.
void unbindController()
Unbind from property inspector controller.
Protected Methods
void onDraw(Canvas canvas)
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
[Expand]
Inherited Methods
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource
From interface com.pspdfkit.ui.inspector.PropertyInspectorView
From interface com.pspdfkit.ui.special_mode.manager.AnnotationManager.OnAnnotationCreationModeSettingsChangeListener

Fields

protected final AnnotationCreationController annotationCreationController

Public Constructors

public ShapeAnnotationPreviewInspectorView (Context context, AnnotationType annotationType, AnnotationCreationController annotationCreationController)

Public Methods

public void bindController (PropertyInspectorController controller)

Bind to property inspector controller.

public 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.

public 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.

public 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.

public View getView ()

Casts the inspector view to the View class and returns it.

public void onAnnotationCreationModeSettingsChange (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. This listener notifies that some of these values have changed.

public void unbindController ()

Unbind from property inspector controller.

Protected Methods

protected void onDraw (Canvas canvas)

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)