ScaleSelectPickerInspectorView

Used by the AnnotationCreationInspectorFactory to display/select the default MeasurementValueConfiguration to be used for creating a measurement annotation. Also used by the AnnotationEditingInspectorFactory to display/select the MeasurementValueConfiguration for the currently edited measurement annotation.

This inspector reacts to clicks in two different ways - If there are MeasurementValueConfigurations available it switches to the ScaleListPickerInspectorDetailView - If no scale is available, it opens ScaleConfigurationPickerInspectorDetailView to create the first scale

Constructors

Link copied to clipboard
Constructor for readonly mode (used in the inspector for the calibration tool)
constructor(@NonNull context: Context, @NonNull label: String, @Nullable defaultValue: MeasurementValueConfiguration, @NonNull inspectorFactory: AnnotationInspectorFactoryBase, @Nullable measurementValueConfigurationEditor: MeasurementValueConfigurationEditor, @Nullable listener: MeasurementValueConfigurationPickerListener)
Construct scale picker.

Functions

Link copied to clipboard
Bind to property inspector controller.
Link copied to clipboard
Returns maximum height that this view with all its detail views will occupy.
Link copied to clipboard
Height of the parent PropertyInspector that this view would like it to have.
Link copied to clipboard
Returns best height of this view when shown in inspector.
Link copied to clipboard
open fun getView(): View
Casts the inspector view to the View class and returns it.
Link copied to clipboard
open fun setConfiguration(@Nullable config: MeasurementValueConfiguration, notifyListeners: Boolean)
Sets value to the scale picker.
Link copied to clipboard
open fun unbindController()
Unbind from property inspector controller.