Packagefr.kapit.components.treemap.utils
Interfacepublic interface ITreeMapColorGenerator
ImplementorsTreeMapDefaultColorGenerator

It is possible to change the algorithm used by the treemap to assign colorsto nodes by assigning an instance that implements this interface to the treemap colorGenerator property.



Public Properties
 PropertyDefined by
  discreteColors : Boolean
Used by the treemap to tell the color generator whether color values are discrete or continue.
ITreeMapColorGenerator
  treeMap : TreeMap
The treemap associated with color generator.
ITreeMapColorGenerator
Public Methods
 MethodDefined by
  
color(value:*, outsideOfRange:Boolean = false):uint
This function is used by the treemap to associate colors with values that are extracted from the color fields in the treemap dataProvider.
ITreeMapColorGenerator
Property detail
discreteColorsproperty
discreteColors:Boolean  [read-write]

Used by the treemap to tell the color generator whether color values are discrete or continue. Its value is equal to true if the dataprovider contains non numeric values for colors or if the treemap discreteColors property is set to true, otherwise its value is equal to false.

Implementation
    public function get discreteColors():Boolean
    public function set discreteColors(value:Boolean):void
treeMapproperty 
treeMap:TreeMap  [read-write]

The treemap associated with color generator.

Implementation
    public function get treeMap():TreeMap
    public function set treeMap(value:TreeMap):void
Method detail
color()method
public function color(value:*, outsideOfRange:Boolean = false):uint

This function is used by the treemap to associate colors with values that are extracted from the color fields in the treemap dataProvider. The result of this function is used to render nodes, the legend and the color filter.

Parameters
value:* — the value to which a color should be associated.
 
outsideOfRange:Boolean (default = false) — indicates whether the given value is outside of the selected range in the legend.

Returns
uint — the color to be associated with the given value.