| Package | fr.kapit.components.treemap.utils |
| Class | public class TreeMapDefaultColorGenerator |
| Implements | ITreeMapColorGenerator |
ITreeMapColorGenerator.
| Property | Defined by | ||
|---|---|---|---|
| continueGreyColor : uint
Indicates the color used to render nodes that are outside of the selected range in the treemap legend in the case of continue colors.
| TreeMapDefaultColorGenerator | ||
| discreteColors : Boolean
Used by the treemap to tell the color generator whether color values are discrete or continue.
| TreeMapDefaultColorGenerator | ||
| discreteDarkGreyColor : uint
Used in association with
discreteLightGreyColor to determine the color used to render nodes that are outside of the selected range in the treemap legend in the case of discrete colors. | TreeMapDefaultColorGenerator | ||
| discreteLightGreyColor : uint
Used in association with
discreteDarkGreyColor to determine the color used to render nodes that are outside of the selected range in the treemap legend in the case of discrete colors. | TreeMapDefaultColorGenerator | ||
| treeMap : TreeMap
The treemap associated with color generator.
| TreeMapDefaultColorGenerator | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| TreeMapDefaultColorGenerator | ||
|
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.
| TreeMapDefaultColorGenerator | ||
| Method | Defined by | ||
|---|---|---|---|
|
getContinueColor(value:*, outsideOfRange:Boolean):uint
Detemines the color value in the case of continue colors.
| TreeMapDefaultColorGenerator | ||
|
getDiscreteColor(val:*, outsideOfRange:Boolean):uint
Detemines the color value in the case of discrete colors.
| TreeMapDefaultColorGenerator | ||
| continueGreyColor | property |
continueGreyColor:uint [read-write]Indicates the color used to render nodes that are outside of the selected range in the treemap legend in the case of continue colors.
The default value is 0xCCCCCC.
public function get continueGreyColor():uint
public function set continueGreyColor(value:uint):void
| discreteColors | property |
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.
public function get discreteColors():Boolean
public function set discreteColors(value:Boolean):void
| discreteDarkGreyColor | property |
discreteDarkGreyColor:uint [read-write]
Used in association with discreteLightGreyColor to determine the color used to render nodes that are outside of the selected range in the treemap legend in the case of discrete colors.
The default value is 0x444444.
public function get discreteDarkGreyColor():uint
public function set discreteDarkGreyColor(value:uint):void
| discreteLightGreyColor | property |
discreteLightGreyColor:uint [read-write]
Used in association with discreteDarkGreyColor to determine the color used to render nodes that are outside of the selected range in the treemap legend in the case of discrete colors.
The default value is 0xBBBBBB.
public function get discreteLightGreyColor():uint
public function set discreteLightGreyColor(value:uint):void
| treeMap | property |
treeMap:TreeMap [read-write]The treemap associated with color generator.
Implementation public function get treeMap():TreeMap
public function set treeMap(value:TreeMap):void
| TreeMapDefaultColorGenerator | () | constructor |
public function TreeMapDefaultColorGenerator()Constructor.
| color | () | method |
public function color(value:*, outsideOfRange:Boolean = false):uintThis 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.
Parametersvalue:* — 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.
|
uint — the color to be associated with the given value.
|
| getContinueColor | () | method |
protected function getContinueColor(value:*, outsideOfRange:Boolean):uintDetemines the color value in the case of continue colors.
Parametersvalue:* |
|
outsideOfRange:Boolean |
uint |
| getDiscreteColor | () | method |
protected function getDiscreteColor(val:*, outsideOfRange:Boolean):uintDetemines the color value in the case of discrete colors.
Parametersval:* |
|
outsideOfRange:Boolean |
uint |