| Package | com.flextoolbox.controls.treeMapClasses |
| Class | public class BaseTreeMapBranchRenderer |
| Inheritance | BaseTreeMapBranchRenderer mx.core.UIComponent |
| Implements | IDropInTreeMapItemRenderer, ITreeMapBranchRenderer |
| Subclasses | LiteTreeMapBranchRenderer, TreeMapBranchRenderer |
See also
| Property | Defined by | ||
|---|---|---|---|
| data : Object | BaseTreeMapBranchRenderer | ||
| itemCount : int [read-only]
The number of items displayed in this branch.
| BaseTreeMapBranchRenderer | ||
| selected : Boolean
Indicates if the item is selected or not.
| BaseTreeMapBranchRenderer | ||
| treeMapData : BaseTreeMapData
When a component is used as a drop-in item renderer Flex initializes
the treeMapData property of the component with the additional data
from the TreeMap control.
| BaseTreeMapBranchRenderer | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| BaseTreeMapBranchRenderer | ||
|
addItem(item:TreeMapItemLayoutData):void
Adds an item to be displayed in this branch.
| BaseTreeMapBranchRenderer | ||
|
addItemAt(item:TreeMapItemLayoutData, index:int):void
Adds an item to a specific position in this branch.
| BaseTreeMapBranchRenderer | ||
|
getItemAt(index:int):TreeMapItemLayoutData
Returns the item at the specified index.
| BaseTreeMapBranchRenderer | ||
|
itemsToArray():Array
Returns an Array containing all TreeMapItemLayoutData instances displayed by this branch.
| BaseTreeMapBranchRenderer | ||
|
removeAllItems():void
Removes all items currently displayed in this branch.
| BaseTreeMapBranchRenderer | ||
|
removeItem(item:TreeMapItemLayoutData):void
Removes an item that is currently being displayed in this branch.
| BaseTreeMapBranchRenderer | ||
|
removeItemAt(index:int):void
Removes an item from a specific position in this branch.
| BaseTreeMapBranchRenderer | ||
| Method | Defined by | ||
|---|---|---|---|
|
layoutContents(contentBounds:Rectangle):void
Positions the children.
| BaseTreeMapBranchRenderer | ||
| data | property |
data:Object [read-write]Implementation
public function get data():Object
public function set data(value:Object):void
| itemCount | property |
itemCount:int [read-only]The number of items displayed in this branch.
Implementation public function get itemCount():int
| selected | property |
selected:Boolean [read-write]Indicates if the item is selected or not.
Implementation public function get selected():Boolean
public function set selected(value:Boolean):void
| treeMapData | property |
treeMapData:BaseTreeMapData [read-write]When a component is used as a drop-in item renderer Flex initializes the treeMapData property of the component with the additional data from the TreeMap control. The component can then use the treeMapData property and the data property to display the appropriate information as a drop-in item renderer.
You do not set this property in MXML or ActionScript; Flex sets it when the component is used as a drop-in item renderer.
Implementation public function get treeMapData():BaseTreeMapData
public function set treeMapData(value:BaseTreeMapData):void
| BaseTreeMapBranchRenderer | () | constructor |
public function BaseTreeMapBranchRenderer()Constructor.
| addItem | () | method |
public function addItem(item:TreeMapItemLayoutData):voidAdds an item to be displayed in this branch.
Parametersitem:TreeMapItemLayoutData |
| addItemAt | () | method |
public function addItemAt(item:TreeMapItemLayoutData, index:int):voidAdds an item to a specific position in this branch.
Parametersitem:TreeMapItemLayoutData |
|
index:int |
| getItemAt | () | method |
public function getItemAt(index:int):TreeMapItemLayoutDataReturns the item at the specified index.
Parametersindex:int |
TreeMapItemLayoutData |
| itemsToArray | () | method |
public function itemsToArray():ArrayReturns an Array containing all TreeMapItemLayoutData instances displayed by this branch.
ReturnsArray |
| layoutContents | () | method |
protected function layoutContents(contentBounds:Rectangle):voidPositions the children. Subclasses should override this or updateDisplayList() to size and position chrome.
ParameterscontentBounds:Rectangle |
| removeAllItems | () | method |
public function removeAllItems():voidRemoves all items currently displayed in this branch.
| removeItem | () | method |
public function removeItem(item:TreeMapItemLayoutData):voidRemoves an item that is currently being displayed in this branch.
Parametersitem:TreeMapItemLayoutData |
| removeItemAt | () | method |
public function removeItemAt(index:int):voidRemoves an item from a specific position in this branch.
Parametersindex:int |