SchemeColorGenerator class

Color generator based in a Map of _schemes

Inheritance
Implementers

Constructors

SchemeColorGenerator(Map<String, List<String>> schemes, String mainScheme)

Properties

defaultDisabledSchemeName String
no setter
defaultSchemeName String
no setter
hashCode int
The hash code for this object.
no setterinherited
mainScheme String
The current main scheme name.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemeNames List<String>
Returns a List of scheme names/keys.
no setter

Methods

buildColors<C>(List<C> keys) Map<C, String>
Builds a Map with a color for each provided key from parameter keys.
inherited
buildDisabledColors<C>(List<C> keys) Map<C, String>
Builds a Map with a disabled color for each provided key from parameter keys.
inherited
generateColor(String name, int index, int total) String
Generate a HTML color using the entry index and total elements in the Charts as reference. The name of the Series/Category is supplied for advanced implementations.
override
generateDisabledColor(String name, int index, int total) String
Same as generateColor but for disabled element.
override
getDefaultDisabledSchemeColors(int size) List<String>
getDefaultSchemeColors(int size) List<String>
getDisabledSchemeColors(String schemeName, int size) List<String>
Returns the scheme colors using the schemeName and desired size.
getSchemeColors(String schemeName, int size) List<String>
Returns the scheme colors using the schemeName and desired size.
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