A ControlList maintains a sequential chain of controls for interacting
with a visualization. Controls may perform operations such as selection,
panning, zooming, and expand/contract. Controls can be added to a
ControlList using the
add method. Once added, controls can be
retrieved and set using their index in the lists, either with array
notation (
[]) or with the
getControlAt and
setControlAt methods.
length:uint [read-only]
The number of controls in the list.
Implementation
public function get length():uint
protected var _list:Array
list:Array [write-only]
An array of the controls contained in the control list.
Implementation
public function set list(value:Array):void
protected var _vis:Visualization
visualization:Visualization [read-write]
The visualization manipulated by these controls.
Implementation
public function get visualization():Visualization
public function set visualization(value:Visualization):void
public function ControlList(... controls)
Creates a new ControlList.
Parameters
| ... controls — an ordered set of controls to include in the list.
|
public function add(ic:IControl):void
Adds a control to the end of this list.
Parameters
public function addAt(ic:IControl, idx:int):void
Adds a control at the specified index in the list.
Parameters
| ic:IControl — the control to add
|
| |
| idx:int — the index into the list
|
public function clear():void
Removes all controls from this list.
public function getControlAt(i:uint):IControl
Returns the control at the specified position in the list
Parameters
| i:uint — the index into the control list
|
Returns
flash_proxy override function getProperty(name:*):*
Proxy method for retrieving controls from the internal array.
Parameters
Returns
public function remove(ic:IControl):IControl
Removes an control from this list.
Parameters
Returns
| IControl —
true if the control was found and removed, false otherwise
|
public function removeControlAt(i:uint):IControl
Removes the control at the specified position in the list
Parameters
| i:uint — the index into the control list
|
Returns
public function setControlAt(i:uint, ic:IControl):IControl
Set the control at the specified position in the list
Parameters
| i:uint — the index into the control list
|
| |
| ic:IControl — the control to place in the list
|
Returns
| IControl —
the control previously at the index
|
flash_proxy override function setProperty(name:*, value:*):void
Proxy method for setting controls in the internal array.
Parameters
© 2007-2008 Regents of the University of California. Created Sat Jan 24 2009 11:25 AM.