DiscreteScaleConv<V, SP extends DiscreteScale<V>> class abstract

The discrete scale converter.

Inheritance
Implementers

Constructors

DiscreteScaleConv(SP spec, List<Tuple> tuples, String variable)

Properties

align double
The align ratio.
getter/setter pair
band double
The band ratio of each value.
getter/setter pair
formatter String? Function(V)
The scale formatter
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
inflate bool
Whether to inflate the axis range.
getter/setter pair
normalZero double
Normalized value of zero.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ticks List<V>
The scale ticks.
getter/setter pairinherited
title String
the scale title.
getter/setter pairinherited
values List<V>
The candidate values.
getter/setter pair
zero → V
The zero of V.
no setteroverride

Methods

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