Packagecom.flextoolbox.controls.treeMapClasses
Interfacepublic interface ITreeMapBranchRenderer extends ITreeMapItemRenderer, mx.core.IDataRenderer, mx.core.IUIComponent, flash.events.IEventDispatcher, mx.core.IFlexDisplayObject, mx.styles.IStyleClient, mx.core.IInvalidating
ImplementorsBaseTreeMapBranchRenderer

The interface that defines functionality required for a TreeMap control's branch renderers.

See also

com.flextoolbox.controls.TreeMap


Public Properties
 PropertyDefined by
  itemCount : int
[read-only] The number of items displayed in this branch.
ITreeMapBranchRenderer
 Inheritedselected : Boolean
Indicates if the item is selected or not.
ITreeMapItemRenderer
Public Methods
 MethodDefined by
  
Adds an item to be displayed in this branch.
ITreeMapBranchRenderer
  
addItemAt(item:TreeMapItemLayoutData, index:int):void
Adds an item to a specific position in this branch.
ITreeMapBranchRenderer
  
Returns the item at the specified index.
ITreeMapBranchRenderer
  
itemsToArray():Array
Returns an Array containing all TreeMapItemLayoutData instances displayed by this branch.
ITreeMapBranchRenderer
  
Removes all items currently displayed in this branch.
ITreeMapBranchRenderer
  
Removes an item that is currently being displayed in this branch.
ITreeMapBranchRenderer
  
removeItemAt(index:int):void
Removes an item from a specific position in this branch.
ITreeMapBranchRenderer
Events
 EventSummaryDefined by
   Event type that is dispatched when the branch renderer finishes drawing itself and its children are sized and positioned.ITreeMapBranchRenderer
   Event type that is dispatched when the user selects the branch.ITreeMapBranchRenderer
   Event type that is dispatched when the user zooms the branch.ITreeMapBranchRenderer
Property detail
itemCountproperty
itemCount:int  [read-only]

The number of items displayed in this branch.

Implementation
    public function get itemCount():int
Method detail
addItem()method
public function addItem(item:TreeMapItemLayoutData):void

Adds an item to be displayed in this branch.

Parameters
item:TreeMapItemLayoutData
addItemAt()method 
public function addItemAt(item:TreeMapItemLayoutData, index:int):void

Adds an item to a specific position in this branch.

Parameters
item:TreeMapItemLayoutData
 
index:int
getItemAt()method 
public function getItemAt(index:int):TreeMapItemLayoutData

Returns the item at the specified index.

Parameters
index:int

Returns
TreeMapItemLayoutData
itemsToArray()method 
public function itemsToArray():Array

Returns an Array containing all TreeMapItemLayoutData instances displayed by this branch.

Returns
Array
removeAllItems()method 
public function removeAllItems():void

Removes all items currently displayed in this branch.

removeItem()method 
public function removeItem(item:TreeMapItemLayoutData):void

Removes an item that is currently being displayed in this branch.

Parameters
item:TreeMapItemLayoutData
removeItemAt()method 
public function removeItemAt(index:int):void

Removes an item from a specific position in this branch.

Parameters
index:int
Event detail
layoutCompleteevent 
Event object type: com.flextoolbox.events.TreeMapBranchEvent

Event type that is dispatched when the branch renderer finishes drawing itself and its children are sized and positioned.

requestSelectevent  
Event object type: com.flextoolbox.events.TreeMapBranchEvent

Event type that is dispatched when the user selects the branch. Implementations of branch renderers may provide different UIs for this interaction.

requestZoomevent  
Event object type: com.flextoolbox.events.TreeMapBranchEvent

Event type that is dispatched when the user zooms the branch. Implementations of branch renderers may provide different UIs for this interaction.