LabKit MATLAB Workbench

reference

FrameworkApp SDK API

labkit.app.interaction.interval

Declare an editable one-dimensional plot interval.

Syntax

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

Description

Creates the semantic declaration for a managed interval editor and its optional typed scroll callback on one plot axis.

Inputs

id
Unique MATLAB identifier.
onChanged
Callback state = callback(state,range,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".
OnScrolled
Optional callback state = callback(state,event,context), where event is labkit.app.event.IntervalScroll. Default: [].

Outputs

spec
Immutable interaction declaration.

Errors

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

Typical Call

spec = labkit.app.interaction.interval("window",@changeWindow);

Source

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