| Package | fr.kapit.components.treemap |
| Class | public class TreeMap |
| Inheritance | TreeMap fr.kapit.base.KapUIComponent |
Default MXML PropertydataProvider
| Property | Defined by | ||
|---|---|---|---|
| applyGradientFill : Boolean
Indicates whether to apply a gradient fill when drawing treemap nodes.
| TreeMap | ||
| areaField : String
The name/index of the property used to detemine the area of an item.
| TreeMap | ||
| areaFunction : Function
The function used to detemine the area of an item.
| TreeMap | ||
| colorField : String
The name/index of the property used to detemine the color of an item.
| TreeMap | ||
| colorFunction : Function
The function used to detemine the color of an item.
| TreeMap | ||
| colorGenerator : ITreeMapColorGenerator
The colorGenerator is used by the treemap to determine the displayed colors for nodes and for the legend.
| TreeMap | ||
| colorPolicy : String
Indicates the policy used to generate colors for the nodes.
| TreeMap | ||
| dataDescriptor : ITreeDataDescriptor
Indicates the
ITreeDataDescriptor used to parse the hierarchy of the dataProvider. | TreeMap | ||
| discreteColors : Boolean
Indicates whether the colorField/colorFunction contains discrete(non numerical) values or continue (numerical) values.
| TreeMap | ||
| distanceBetweenBranches : Number
Indicates the distance between the different branches.
| TreeMap | ||
| distanceBetweenNodes : Number
Indicates the distance between the different nodes.
| TreeMap | ||
| dynamicTextSize : Boolean
Indicates whether the text on the nodes should have a dynamic size (to fit the area of the node) or respect the default size value.
| TreeMap | ||
| enableSelection : Boolean
Indicates whether to enable item selection or not.
| TreeMap | ||
| filterPath : Array
Filter Path is used for CSV and General XML files and enables data source analysis with a given logic.
| TreeMap | ||
| firstColor : uint
The first color used to generate nodes colors.
| TreeMap | ||
| highlightPolicy : String
Indicates the policy used to display highlight filters.
| TreeMap | ||
| iconAlpha : Number
Indicates the icon alpha.
| TreeMap | ||
| iconFunction : Function
The function used to detemine the icon of an item.
| TreeMap | ||
| labelField : String
The name/index of the property used to detemine the label of an item.
| TreeMap | ||
| labelFunction : Function
The function used to detemine the label of an item.
| TreeMap | ||
| labelHorizontalAlign : String
The TreeMapNode label horizontal alignment.
| TreeMap | ||
| labelMinimumHeight : Number
The minimum height for a TreeMapNode to display a label.
| TreeMap | ||
| labelMinimumWidth : Number
The minimum width for a TreeMapNode to display a label.
| TreeMap | ||
| labelMultiline : Boolean
Indicates whether the TreeMapNode label has multiline.
| TreeMap | ||
| labelPolicy : String
Indicates the policy used to display labels.
| TreeMap | ||
| labelTruncateToFit : Boolean
Indicates whether the TreeMapNodel label should be truncated with an '...' indicator to fit the available space.
| TreeMap | ||
| labelVerticalAlign : String
The TreeMapNode label vertical alignment.
| TreeMap | ||
| labelWordWrap : Boolean
Indicates whether the TreeMapNode label has word wrap.
| TreeMap | ||
| maxColorValue : Number
Indicates a custom maximum color value.
| TreeMap | ||
| minColorValue : Number
Indicates a custom minimum color value.
| TreeMap | ||
| nodeHighlightFilters : Array
Indicates the array of filters used to highlight the node under the mouse.
| TreeMap | ||
| secondColor : uint
The second color used to generate nodes colors.
| TreeMap | ||
| toolTipField : String
The name/index of the property used to detemine the toolTip of an item.
| TreeMap | ||
| toolTipFunction : Function
The function used to detemine the toolTip of an item.
| TreeMap | ||
| useLogarithmicScale : Boolean
Indicates whether to display the name of branches or not.
| TreeMap | ||
| viewBranchHeader : Boolean
Indicates whether to display the name of branches or not.
| TreeMap | ||
| Method | Defined by | ||
|---|---|---|---|
|
TreeMap()
Constructor.
| TreeMap | ||
|
dataToICollectionView(value:Object):ICollectionView
| TreeMap | ||
|
filterChanged(filter:TreeMapFilter):void
| TreeMap | ||
|
filterFunction(item:Object):Boolean
Determines the area and color filter applied by the user using the
areaFilters or colooFiltersField properties. | TreeMap | ||
|
getAreaFromData(data:Object):Number
Determines the area from the
data object using the
areaFunction or areaField properties. | TreeMap | ||
|
getColorFromData(data:Object):*
Determines the color from the
data object using the
colorFunction or colorField properties. | TreeMap | ||
|
getIconFromData(data:Object):Bitmap
| TreeMap | ||
|
getLabelFromData(data:Object, info:Object):String
Determines the label from the
data object using the
labelFunction or labelField properties. | TreeMap | ||
|
getStyle(styleProp:String):*
| TreeMap | ||
|
getToolTipFromData(data:Object, info:Object):String
Determines the toolTip from the
data object using the
toolTipFunction or toolTipField properties. | TreeMap | ||
|
refresh():void
Forces the treemap to be redrawn.
| TreeMap | ||
|
styleChanged(styleProp:String):void
| TreeMap | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when a goup header is clicked. | TreeMap | |||
| Dispatched after a drill-down on a group. | TreeMap | |||
| Dispatched after a drill-up on a group. | TreeMap | |||
| Dispatched when the mouse is rolled out of a group header. | TreeMap | |||
| Dispatched when the mouse is rolled over a group header. | TreeMap | |||
| Dispatched when a node is clicked. | TreeMap | |||
| Dispatched when the mouse is rolled out of a node. | TreeMap | |||
| Dispatched when the mouse is rolled over a node. | TreeMap | |||
| Constant | Defined by | ||
|---|---|---|---|
| COLOR_POLICY_BICHROMATIC : String = "bichromatic" [static]
Colors are generated by mixing firstColor and secondColor.
| TreeMap | ||
| COLOR_POLICY_MONOCHROMATIC : String = "monochromatic" [static]
Colors are generated by mixing firstColor and black.
| TreeMap | ||
| COLOR_POLICY_SPECTRUM : String = "spectrum" [static]
Colors are generated by mixing red, green and blue colors.
| TreeMap | ||
| HIGHLIGHT_POLICY_ALL : String = "all" [static]
Highlight filters are displayed on all nodes and all groups.
| TreeMap | ||
| HIGHLIGHT_POLICY_GROUPS : String = "groups" [static]
Highlight filters are displayed only on groups.
| TreeMap | ||
| HIGHLIGHT_POLICY_NODES : String = "nodes" [static]
Highlight filters are displayed only on nodes.
| TreeMap | ||
| HIGHLIGHT_POLICY_NONE : String = "none" [static]
No highlight filters are displayed.
| TreeMap | ||
| LABEL_POLICY_ALL : String = "all" [static]
Labels are displayed on all nodes and all groups.
| TreeMap | ||
| LABEL_POLICY_GROUPS : String = "groups" [static]
Labels are displayed only on groups.
| TreeMap | ||
| LABEL_POLICY_NODES : String = "nodes" [static]
Labels are displayed only on nodes.
| TreeMap | ||
| LABEL_POLICY_NONE : String = "none" [static]
No Labels are displayed.
| TreeMap | ||
| applyGradientFill | property |
applyGradientFill:Boolean [read-write]Indicates whether to apply a gradient fill when drawing treemap nodes.
Implementation public function get applyGradientFill():Boolean
public function set applyGradientFill(value:Boolean):void
| areaField | property |
areaField:String [read-write]
The name/index of the property used to detemine the area of an item.
Only used when areaFunction is null.
public function get areaField():String
public function set areaField(value:String):void
| areaFunction | property |
areaFunction:Function [read-write]
The function used to detemine the area of an item. It must have the
following signature : areaFunction(item:Object):Number.
public function get areaFunction():Function
public function set areaFunction(value:Function):void
| colorChanged | property |
colorChanged:Boolean [write-only]Implementation
treemap_internal function set colorChanged(value:Boolean):void
| colorField | property |
colorField:String [read-write]
The name/index of the property used to detemine the color of an item.
Only used when colorFunction is null.
public function get colorField():String
public function set colorField(value:String):void
| colorFunction | property |
colorFunction:Function [read-write]
The function used to detemine the color of an item. It must have the
following signature : colorFunction(item:Object):Number.
public function get colorFunction():Function
public function set colorFunction(value:Function):void
| colorGenerator | property |
colorGenerator:ITreeMapColorGenerator [read-write]The colorGenerator is used by the treemap to determine the displayed colors for nodes and for the legend.
Implementation public function get colorGenerator():ITreeMapColorGenerator
public function set colorGenerator(value:ITreeMapColorGenerator):void
| colorPolicy | property |
colorPolicy:String [read-write]Indicates the policy used to generate colors for the nodes.
Implementation public function get colorPolicy():String
public function set colorPolicy(value:String):void
See also
| colorValuesDict | property |
treemap_internal var colorValuesDict:Dictionary
| dataDescriptor | property |
dataDescriptor:ITreeDataDescriptor [read-write]
Indicates the ITreeDataDescriptor used to parse the hierarchy of the dataProvider.
If this property is null, a DefaultDataDescriptor is used.
Currently, only the getChildren() and isBranch() methods of the ITreeDataDescriptor interface are used.
public function get dataDescriptor():ITreeDataDescriptor
public function set dataDescriptor(value:ITreeDataDescriptor):void
| discreteColors | property |
discreteColors:Boolean [read-write]Indicates whether the colorField/colorFunction contains discrete(non numerical) values or continue (numerical) values.
Implementation public function get discreteColors():Boolean
public function set discreteColors(value:Boolean):void
| distanceBetweenBranches | property |
distanceBetweenBranches:Number [read-write]Indicates the distance between the different branches.
Implementation public function get distanceBetweenBranches():Number
public function set distanceBetweenBranches(value:Number):void
| distanceBetweenNodes | property |
distanceBetweenNodes:Number [read-write]Indicates the distance between the different nodes.
Implementation public function get distanceBetweenNodes():Number
public function set distanceBetweenNodes(value:Number):void
| dynamicTextSize | property |
dynamicTextSize:Boolean [read-write]Indicates whether the text on the nodes should have a dynamic size (to fit the area of the node) or respect the default size value.
Implementation public function get dynamicTextSize():Boolean
public function set dynamicTextSize(value:Boolean):void
| enableSelection | property |
enableSelection:Boolean [read-write]Indicates whether to enable item selection or not.
Implementation public function get enableSelection():Boolean
public function set enableSelection(value:Boolean):void
| filterPath | property |
filterPath:Array [read-write]Filter Path is used for CSV and General XML files and enables data source analysis with a given logic. For CSV files(like other formats), the analysis path is an Array containing the columns headers that describes an Hierarchy or another logical entity. This property can be used as the source for data binding.
This property can be used as the source for data binding.
Implementation public function get filterPath():Array
public function set filterPath(value:Array):void
| firstColor | property |
firstColor:uint [read-write]The first color used to generate nodes colors.
Implementation public function get firstColor():uint
public function set firstColor(value:uint):void
| highlightPolicy | property |
highlightPolicy:String [read-write]Indicates the policy used to display highlight filters.
Implementation public function get highlightPolicy():String
public function set highlightPolicy(value:String):void
See also
| iconAlpha | property |
iconAlpha:Number [read-write]Indicates the icon alpha.
Implementation public function get iconAlpha():Number
public function set iconAlpha(value:Number):void
| iconFunction | property |
iconFunction:Function [read-write]
The function used to detemine the icon of an item. It must have one of the
following signatures : iconFunction(item:Object):Class and iconFunction(item:Object):Bitmap.
public function get iconFunction():Function
public function set iconFunction(value:Function):void
| labelField | property |
labelField:String [read-write]
The name/index of the property used to detemine the label of an item.
Only used when labelFunction is null.
public function get labelField():String
public function set labelField(value:String):void
| labelFunction | property |
labelFunction:Function [read-write]
The function used to detemine the label of an item. It must have the
following signature : labelFunction(item:Object,info:Object):String
where info contains some statistics about the item.
public function get labelFunction():Function
public function set labelFunction(value:Function):void
| labelHorizontalAlign | property |
labelHorizontalAlign:String [read-write]
The TreeMapNode label horizontal alignment.
Valid values are: left, center and right.
The default value is <code>center</code>.
public function get labelHorizontalAlign():String
public function set labelHorizontalAlign(value:String):void
| labelMinimumHeight | property |
labelMinimumHeight:Number [read-write]The minimum height for a TreeMapNode to display a label.
The default value is 8.
public function get labelMinimumHeight():Number
public function set labelMinimumHeight(value:Number):void
See also
| labelMinimumWidth | property |
labelMinimumWidth:Number [read-write]The minimum width for a TreeMapNode to display a label.
The default value is 8.
public function get labelMinimumWidth():Number
public function set labelMinimumWidth(value:Number):void
See also
| labelMultiline | property |
labelMultiline:Boolean [read-write]
Indicates whether the TreeMapNode label has multiline. This property is not used when dynamicTextSizetrue.
The default value is false.
public function get labelMultiline():Boolean
public function set labelMultiline(value:Boolean):void
| labelPolicy | property |
labelPolicy:String [read-write]Indicates the policy used to display labels.
Implementation public function get labelPolicy():String
public function set labelPolicy(value:String):void
See also
| labelTruncateToFit | property |
labelTruncateToFit:Boolean [read-write]Indicates whether the TreeMapNodel label should be truncated with an '...' indicator to fit the available space.
The default value is false.
public function get labelTruncateToFit():Boolean
public function set labelTruncateToFit(value:Boolean):void
| labelVerticalAlign | property |
labelVerticalAlign:String [read-write]
The TreeMapNode label vertical alignment.
Valid values are: top, middle and bottom.
The default value is <code>middle</code>.
public function get labelVerticalAlign():String
public function set labelVerticalAlign(value:String):void
| labelWordWrap | property |
labelWordWrap:Boolean [read-write]
Indicates whether the TreeMapNode label has word wrap. This property is not used when dynamicTextSizetrue.
The default value is false.
public function get labelWordWrap():Boolean
public function set labelWordWrap(value:Boolean):void
| maxColorValue | property |
maxColorValue:Number [read-write]Indicates a custom maximum color value. The Treemap computes the minimum and maximum color values found on the dataProvider and uses them to asign colors to the different nodes. If you don't want to use the default maximum color value, you can specify a custom value using this property.
Implementation public function get maxColorValue():Number
public function set maxColorValue(value:Number):void
| minColorValue | property |
minColorValue:Number [read-write]Indicates a custom minimum color value. The Treemap computes the minimum and maximum color values found on the dataProvider and uses them to asign colors to the different nodes. If you don't want to use the default minimum color value, you can specify a custom value using this property.
Implementation public function get minColorValue():Number
public function set minColorValue(value:Number):void
| nodeHighlightFilters | property |
nodeHighlightFilters:Array [read-write]Indicates the array of filters used to highlight the node under the mouse.
Implementation public function get nodeHighlightFilters():Array
public function set nodeHighlightFilters(value:Array):void
| secondColor | property |
secondColor:uint [read-write]The second color used to generate nodes colors.
Implementation public function get secondColor():uint
public function set secondColor(value:uint):void
| toolTipField | property |
toolTipField:String [read-write]
The name/index of the property used to detemine the toolTip of an item.
Only used when toolTipFunction is null.
public function get toolTipField():String
public function set toolTipField(value:String):void
| toolTipFunction | property |
toolTipFunction:Function [read-write]
The function used to detemine the toolTip of an item. It must have the
following signature : toolTipFunction(item:Object,info:Object):String
where info contains some statistics about the item.
public function get toolTipFunction():Function
public function set toolTipFunction(value:Function):void
| useDiscreteColors | property |
useDiscreteColors:Boolean [read-only]Implementation
treemap_internal function get useDiscreteColors():Boolean
| useKData | property |
treemap_internal var useKData:Boolean = false
| useLogarithmicScale | property |
useLogarithmicScale:Boolean [read-write]Indicates whether to display the name of branches or not.
Implementation public function get useLogarithmicScale():Boolean
public function set useLogarithmicScale(value:Boolean):void
| viewBranchHeader | property |
viewBranchHeader:Boolean [read-write]Indicates whether to display the name of branches or not.
Implementation public function get viewBranchHeader():Boolean
public function set viewBranchHeader(value:Boolean):void
| TreeMap | () | constructor |
public function TreeMap()Constructor.
| dataToICollectionView | () | method |
public function dataToICollectionView(value:Object):ICollectionViewParameters
value:Object |
ICollectionView |
| drillDownUp | () | method |
treemap_internal function drillDownUp(b:TreeMapBranch):voidParameters
b:TreeMapBranch |
| filterChanged | () | method |
public function filterChanged(filter:TreeMapFilter):voidParameters
filter:TreeMapFilter |
| filterFunction | () | method |
public function filterFunction(item:Object):Boolean
Determines the area and color filter applied by the user using the
areaFilters or colooFiltersField properties.
item:Object |
Boolean |
| getAreaFromData | () | method |
public function getAreaFromData(data:Object):Number
Determines the area from the data object using the
areaFunction or areaField properties.
data:Object — The data object from which the area will
be determined.
|
Number — The area determined from the data object.
|
| getColorFromData | () | method |
public function getColorFromData(data:Object):*
Determines the color from the data object using the
colorFunction or colorField properties.
data:Object — The data object from which the color will
be determined.
|
* — The color determined from the data object.
|
| getIconFromData | () | method |
public function getIconFromData(data:Object):BitmapParameters
data:Object |
Bitmap |
| getLabelFromData | () | method |
public function getLabelFromData(data:Object, info:Object):String
Determines the label from the data object using the
labelFunction or labelField properties.
data:Object — The data object from which the label will
be determined.
|
|
info:Object |
String — The label determined from the data object.
|
| getStyle | () | method |
public override function getStyle(styleProp:String):*Parameters
styleProp:String |
* |
| getToolTipFromData | () | method |
public function getToolTipFromData(data:Object, info:Object):String
Determines the toolTip from the data object using the
toolTipFunction or toolTipField properties.
data:Object — The data object from which the toolTip will
be determined.
|
|
info:Object |
String — The toolTip determined from the data object.
|
| newNode | () | method |
treemap_internal function newNode(parentbranch:ITreeMapBranch):TreeMapNodeParameters
parentbranch:ITreeMapBranch |
TreeMapNode |
| refresh | () | method |
public function refresh():voidForces the treemap to be redrawn.
| styleChanged | () | method |
public override function styleChanged(styleProp:String):voidParameters
styleProp:String |
| groupClick | event |
fr.kapit.components.treemap.events.TreeMapEvent
Dispatched when a goup header is clicked.
| groupDrillDown | event |
fr.kapit.components.treemap.events.TreeMapEvent
Dispatched after a drill-down on a group.
| groupDrillUp | event |
fr.kapit.components.treemap.events.TreeMapEvent
Dispatched after a drill-up on a group.
| groupRollOut | event |
fr.kapit.components.treemap.events.TreeMapEvent
Dispatched when the mouse is rolled out of a group header.
| groupRollOver | event |
fr.kapit.components.treemap.events.TreeMapEvent
Dispatched when the mouse is rolled over a group header.
| nodeClick | event |
fr.kapit.components.treemap.events.TreeMapEvent
Dispatched when a node is clicked.
| nodeRollOut | event |
fr.kapit.components.treemap.events.TreeMapEvent
Dispatched when the mouse is rolled out of a node.
| nodeRollOver | event |
fr.kapit.components.treemap.events.TreeMapEvent
Dispatched when the mouse is rolled over a node.
| COLOR_POLICY_BICHROMATIC | constant |
public static const COLOR_POLICY_BICHROMATIC:String = "bichromatic"Colors are generated by mixing firstColor and secondColor.
| COLOR_POLICY_MONOCHROMATIC | constant |
public static const COLOR_POLICY_MONOCHROMATIC:String = "monochromatic"Colors are generated by mixing firstColor and black.
| COLOR_POLICY_SPECTRUM | constant |
public static const COLOR_POLICY_SPECTRUM:String = "spectrum"Colors are generated by mixing red, green and blue colors.
| HIGHLIGHT_POLICY_ALL | constant |
public static const HIGHLIGHT_POLICY_ALL:String = "all"Highlight filters are displayed on all nodes and all groups.
| HIGHLIGHT_POLICY_GROUPS | constant |
public static const HIGHLIGHT_POLICY_GROUPS:String = "groups"Highlight filters are displayed only on groups.
| HIGHLIGHT_POLICY_NODES | constant |
public static const HIGHLIGHT_POLICY_NODES:String = "nodes"Highlight filters are displayed only on nodes.
| HIGHLIGHT_POLICY_NONE | constant |
public static const HIGHLIGHT_POLICY_NONE:String = "none"No highlight filters are displayed.
| LABEL_POLICY_ALL | constant |
public static const LABEL_POLICY_ALL:String = "all"Labels are displayed on all nodes and all groups.
| LABEL_POLICY_GROUPS | constant |
public static const LABEL_POLICY_GROUPS:String = "groups"Labels are displayed only on groups.
| LABEL_POLICY_NODES | constant |
public static const LABEL_POLICY_NODES:String = "nodes"Labels are displayed only on nodes.
| LABEL_POLICY_NONE | constant |
public static const LABEL_POLICY_NONE:String = "none"No Labels are displayed.