Package com.pspdfkit.ui.inspector.views
Class MeasurementValueInspectorView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback
,android.view.KeyEvent.Callback
,android.view.ViewManager
,android.view.ViewParent
,android.view.accessibility.AccessibilityEventSource
,com.pspdfkit.ui.inspector.PropertyInspectorView
public class MeasurementValueInspectorView extends FrameLayout implements PropertyInspectorView
Inspector component for displaying the measurement text value.
-
-
Constructor Summary
Constructors Constructor Description MeasurementValueInspectorView(Context context, String label, String measurementValue, Annotation annotation)
Construct measurement value item.
-
Method Summary
Modifier and Type Method Description void
setMeasurementValue(String measurementValue)
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
onShown()
Called when this inspector view became visible. void
onHidden()
Called when this inspector view was hidden. -
-
Constructor Detail
-
MeasurementValueInspectorView
MeasurementValueInspectorView(Context context, String label, String measurementValue, Annotation annotation)
Construct measurement value item.- Parameters:
context
- The context to use.measurementValue
- Measurement value set when showing text.
-
-
Method Detail
-
setMeasurementValue
void setMeasurementValue(String measurementValue)
-
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.
-
onShown
void onShown()
Called when this inspector view became visible.
-
onHidden
void onHidden()
Called when this inspector view was hidden.
-
-
-
-