ScaleConv<V, SV extends num> class abstract

The scale converter.

It also acts like avatar of a variable, carring the meta information like title, formatter, and ticks of the scale.

Because the default values are relatied to tuple values, it is initialized in the constructor body.

Implementers

Constructors

ScaleConv()

Properties

formatter String? Function(V)
The scale formatter
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
normalZero double
Normalized value of zero.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ticks List<V>
The scale ticks.
getter/setter pair
title String
the scale title.
getter/setter pair
zero → V
The zero of V.
no setter

Methods

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