LinearScaleConv class

The linear scale converter.

Inheritance

Constructors

LinearScaleConv(LinearScale spec, List<Tuple> tuples, String variable)

Properties

formatter String? Function(num)
The scale formatter
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
max num?
The maximum input boundary
getter/setter pairinherited
min num?
The minimum input boundary.
getter/setter pairinherited
normalZero double
Normalized value of zero.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ticks List<num>
The scale ticks.
getter/setter pairinherited
title String
the scale title.
getter/setter pairinherited
zero num
The zero of V.
no setteroverride

Methods

convert(num input) double
Converts an input to output.
defaultFormatter(num value) String
The default formatter of V for formatter.
override
denormalize(double normalValue) double
De-normalizes a 0, 1 value to scaled value.
inherited
format(num value) String?
Formats a value to string.
inherited
invert(double output) num
Inverts an output to input.
normalize(double scaledValue) double
Normalizes a scaled value to 0, 1.
inherited
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.
override