| Package | flare.vis.operator.filter |
| Class | public class VisibilityFilter |
| Inheritance | VisibilityFilter Operator |
visibility property to true and
the alpha value to 1. For those items that do not meet
the criteria, this class sets the visibility property to
false and the alpha value to 0.
Predicate functions can either be arbitrary functions that take
a single argument and return a Boolean value, or can be systematically
constructed using the Expression language provided by the
flare.query package.
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | enabled : Boolean Indicates if the operator is enabled or disabled.
| Operator | |
| filter : Function Boolean function indicating which items to process.
| VisibilityFilter | ||
| group : String The name of the data group for which to compute the encoding.
| VisibilityFilter | ||
| immediate : Boolean = false Immediate mode sets the visibility settings immediately, bypassing
any transitioner provided.
| VisibilityFilter | ||
![]() | parameters : Object
Sets parameter values for this operator.
| Operator | |
| predicate : Function Predicate function determining item visibility.
| VisibilityFilter | ||
![]() | visualization : Visualization
The visualization processed by this operator.
| Operator | |
| Method | Defined by | ||
|---|---|---|---|
|
VisibilityFilter(predicate:Function = null, group:String, filter:* = null)
Creates a new VisibilityFilter.
| VisibilityFilter | ||
![]() |
applyParameters(op:IOperator, params:Object):void
[static]
Static method that applies parameter settings to an operator.
| Operator | |
|
operate(t:Transitioner = null):void
Performs an operation over the contents of a visualization.
| VisibilityFilter | ||
![]() |
setup():void
Setup method invoked whenever this operator's visualization
property is set.
| Operator | |
| filter | property |
filter:Function [read-write]Boolean function indicating which items to process. This function does not determine which items will be visible, it only determines which items are visited by this operator. Only items for which this function return true will be considered by the VisibilityFilter. If the function is null, all items will be considered.
Implementation public function get filter():Function
public function set filter(value:Function):void
See also
| group | property |
public var group:String The name of the data group for which to compute the encoding.
The default is Data.NODES.
| immediate | property |
public var immediate:Boolean = falseImmediate mode sets the visibility settings immediately, bypassing any transitioner provided.
| predicate | property |
public var predicate:FunctionPredicate function determining item visibility.
| VisibilityFilter | () | constructor |
public function VisibilityFilter(predicate:Function = null, group:String, filter:* = null)Creates a new VisibilityFilter.
Parameterspredicate:Function (default = null) — the predicate function for filtering items. This
should be a Boolean-valued function that returns true for items
that pass the filtering criteria and false for those that do not.
|
|
group:String — the data group to process.
|
|
filter:* (default = null) — a Boolean-valued filter function that determines which
items are considered by this visibility filter. Only tems that pass
this filter will then have their visibility value set according
to the predicate argument.
|
| 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.
|