Packagecom.asterisq.graph.views
Classpublic class CustomFilterGraphView
InheritanceCustomFilterGraphView Inheritance SynchronizedGraphView Inheritance flash.events.EventDispatcher
ImplementsIGraphView

A view which filters nodes and edges using custom filter functions.



Public Properties
 PropertyDefined by
 InheritedautomaticViewInvalidation : Boolean
Indicates whether the view is automatically invalidated when the model changes.
SynchronizedGraphView
  edgeFilterFunction : Function
The function used to filter edges.
CustomFilterGraphView
 Inheritedmodel : IGraph
The model from which the contents of this view is calculated.
SynchronizedGraphView
  nodeFilterFunction : Function
The function used to filter nodes.
CustomFilterGraphView
 Inheritedview : IGraph
The calculated contents of this view.
SynchronizedGraphView
 InheritedviewInvalid : Boolean
Indicates whether the view is currently invalid.
SynchronizedGraphView
Public Methods
 MethodDefined by
  
Creates a new GraphView.
CustomFilterGraphView
 Inherited
invalidate():void
Schedules the view for validation during the next render cycle.
SynchronizedGraphView
 Inherited
validateNow():void
Immediately recalculates the view.
SynchronizedGraphView
Protected Methods
 MethodDefined by
  
validate():Boolean
Recalculates the contents of the view from the model data.
CustomFilterGraphView
Property detail
edgeFilterFunctionproperty
edgeFilterFunction:Function  [read-write]

The function used to filter edges. It should take an IEdge as its only parameter and return a boolean. A return value of true indicates the edge should be included in the view. A value of false will cause it to be discarded.

Implementation
    public function get edgeFilterFunction():Function
    public function set edgeFilterFunction(value:Function):void
nodeFilterFunctionproperty 
nodeFilterFunction:Function  [read-write]

The function used to filter nodes. It should take an INode as its only parameter and return a boolean. A return value of true indicates the node should be included in the view. A value of false will cause it to be discarded.

Implementation
    public function get nodeFilterFunction():Function
    public function set nodeFilterFunction(value:Function):void
Constructor detail
CustomFilterGraphView()constructor
public function CustomFilterGraphView()

Creates a new GraphView.

Method detail
validate()method
protected override function validate():Boolean

Recalculates the contents of the view from the model data.

Returns
Boolean