| Package | flare.vis.operator |
| Class | public class OperatorSequence |
| Inheritance | OperatorSequence OperatorList flash.utils.Proxy |
The add method is not supported by this class. Instead,
use the addToSequence method, which includes the operator
to add along with a duration value (in seconds) specifying the length
of the animated transition for the operator.
An OperatorSequence is implemented by creating a
flare.animate.FunctionSequence instance and using it to
construct the staged animation. The FunctionSequence is
then added to the Transitioner passed in to the
operate method for this class. As a result, the
operate methods for each operator contained in the
seqeunce will not be invoked until the top-level
Transitioner is played.
However, if the input Transitioner is null or in
immediate mode, all the operators in the sequence will be run
immediately, exactly like a normal OperatorList.
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new OperatorSequence.
| OperatorSequence | ||
|
This method is not supported by this class and will throw an error
if invoked.
| OperatorSequence | ||
![]() |
clear():void
Removes all operators from this list.
| OperatorList | |
![]() |
getOperatorAt(i:uint):IOperator
Returns the operator at the specified position in the list
| OperatorList | |
|
operate(t:Transitioner = null):void
Performs an operation over the contents of a visualization.
| OperatorSequence | ||
|
Adds an operator and its timing information to this operator
sequence.
| OperatorSequence | ||
|
Removes an operator from this list.
| OperatorSequence | ||
|
removeOperatorAt(i:uint):IOperator
Removes the operator at the specified position in the list
| OperatorSequence | ||
|
setDurationAt(i:uint, duration:Number):Number
Sets the duration in seconds for the animated transition for the
operator at the given index.
| OperatorSequence | ||
![]() |
Set the operator at the specified position in the list
| OperatorList | |
![]() |
setup():void
Setup method invoked whenever this operator's visualization
property is set.
| OperatorList | |
| OperatorSequence | () | constructor |
public function OperatorSequence()Creates a new OperatorSequence.
| add | () | method |
public override function add(op:IOperator):voidThis method is not supported by this class and will throw an error if invoked.
Parametersop:IOperator — an input operator (ignored)
|
| operate | () | method |
public override function operate(t:Transitioner = null):voidPerforms an operation over the contents of a visualization.
Parameterst:Transitioner (default = null) — a Transitioner instance for collecting value updates.
|
| push | () | method |
public function push(op:IOperator, duration:Number):voidAdds an operator and its timing information to this operator sequence. The operator will be invoked with a transitioner configured with the given duration (in seconds).
Parametersop:IOperator — the operator to add to the sequence
|
|
duration:Number — the duration of the animated transition to be
used for results of the given operator.
|
| remove | () | method |
public override function remove(op:IOperator):BooleanRemoves an operator from this list.
Parametersop:IOperator — the operator to remove
|
Boolean — true if the operator was found and removed, false otherwise
|
| removeOperatorAt | () | method |
public override function removeOperatorAt(i:uint):IOperatorRemoves the operator at the specified position in the list
Parametersi:uint — the index into the operator list
|
IOperator —
the removed operator
|
| setDurationAt | () | method |
public function setDurationAt(i:uint, duration:Number):NumberSets the duration in seconds for the animated transition for the operator at the given index.
Parametersi:uint — the index at which to set the duration
|
|
duration:Number — the desired duration, in seconds
|
Number — the previous duration value
|