Packageflare.vis.controls
Classpublic class ExpandControl
InheritanceExpandControl Inheritance Control Inheritance flash.events.EventDispatcher

Interactive control for expaning and collapsing graph or tree nodes by clicking them. This control will only work when applied to a Visualization instance.



Public Properties
 PropertyDefined by
 Inheritedfilter : Function
Boolean function indicating the items considered by the control.
Control
 Inheritedobject : InteractiveObject
The interactive object this control is attached to.
Control
  update : Function
Update function invoked after expanding or collapsing an item.
ExpandControl
Public Methods
 MethodDefined by
  
ExpandControl(filter:* = null, update:Function = null)
Creates a new ExpandControl.
ExpandControl
  
attach(obj:InteractiveObject):void
Attach this control to the given interactive object.
ExpandControl
  
detach():InteractiveObject
Detach this control.
ExpandControl
Property detail
updateproperty
public var update:Function

Update function invoked after expanding or collapsing an item. By default, invokes the update method on the visualization with a 1-second transitioner.

Constructor detail
ExpandControl()constructor
public function ExpandControl(filter:* = null, update:Function = null)

Creates a new ExpandControl.

Parameters
filter:* (default = null) — a Boolean-valued filter function for determining which item this control will expand or collapse
 
update:Function (default = null) — function invokde after expanding or collapsing an item.
Method detail
attach()method
public override function attach(obj:InteractiveObject):void

Attach this control to the given interactive object. This method will automatically detach if already attached to another object.

Parameters
obj:InteractiveObject — the display object to attach to
detach()method 
public override function detach():InteractiveObject

Detach this control.

Returns
InteractiveObject — the interactive object this control was attached to, or null if this control was not attached.