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
read / write
hashCode int
The hash code for this object.
read-onlyinherited
normalZero double
Normalized value of zero.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
ticks List<V>
The scale ticks.
read / write
title String
the scale title.
read / write
zero → V
The zero of V.
read-only

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