SignalValueFormatRegistry class
Shared display-format preferences keyed by occurrence address.
Viewer packages publish SignalValueFormat values; embedded surfaces use the same values without depending on viewer-local format enums.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
changes
→ ValueListenable<
int> -
Notifies listeners whenever occurrence-format preferences change.
no setter
Static Methods
-
clear(
) → void - Removes all occurrence-format preferences.
-
formatFor(
OccurrenceAddress address) → SignalValueFormat -
Returns the requested format for
address, or the waveform default. -
formatForAny(
Iterable< OccurrenceAddress?> addresses, {SignalValueFormat fallback = SignalValueFormat.waveform}) → SignalValueFormat -
Returns the first registered format matching
addresses. -
formatFromString(
String value) → SignalValueFormat? - Converts a serialized format name to its corresponding enum value.
-
formatToString(
SignalValueFormat format) → String -
Converts
formatto its serialized format name. -
formatValue(
String value, SignalValueFormat format, int width) → String -
Formats a ROHD radix literal according to
format. -
setFormatFor(
Iterable< OccurrenceAddress> addresses, SignalValueFormat format) → void -
Sets
formatfor each signal occurrence inaddresses. -
update(
Iterable< SignalValueFormatPreference> preferences) → void -
Replaces all occurrence-format preferences with
preferences.