LabKit MATLAB Workbench

reference

FrameworkApp SDK API

labkit.app.interaction.scaleReference

Declare an editable two-point scale reference.

Syntax

spec = labkit.app.interaction.scaleReference(id,onChanged,Name=Value)

Description

Creates the semantic declaration for an editable two-endpoint physical scale reference while the runtime owns its native editor lifecycle.

Inputs

id
Unique MATLAB identifier.
onChanged
Callback state = callback(state,endpoints,context).

Options

Axis
Axis ID. Default: "main".
Style
Scalar visual-option struct. Default: struct().
Instruction
Scalar guidance text. Default: "".
ViewportPolicy
"preserve" or "fit". Default: "preserve".

Outputs

spec
Immutable interaction declaration.

Errors

Throws labkit:app:contract:* for invalid values.

Typical Call

spec = labkit.app.interaction.scaleReference("scale",@changeScale);

Source

This page is generated from the MATLAB help text in +labkit/+app/+interaction/scaleReference.m.