Scale Calibration Picker Inspector View
open class ScaleCalibrationPickerInspectorView : FrameLayout, PropertyInspectorView, PropertyInspectorTitleButtonListener
Inspector component for setting measurement scale via calibration picker. Calibration picker is added to the distance measurement tools as a way of setting scale by calibrating a distance annotation to the desired length and unit.
Constructors
Link copied to clipboard
constructor(@NonNull lineAnnotation: LineAnnotation, @NonNull context: Context, @NonNull label: String, @NonNull defaultUnit: Scale.UnitTo, focusValueText: Boolean, @Nullable listener: ScaleCalibrationPickerInspectorView.CalibrationPickerListener)
Construct calibration picker.
Types
Link copied to clipboard
interface CalibrationPickerListener
Listener for calibration value being picked.
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 setCalibration(@Nullable value: Float, @NonNull unit: Scale.UnitTo, notifyListeners: Boolean)
Sets value to the calibration picker.
Link copied to clipboard
Unbind from property inspector controller.
Link copied to clipboard