Packagecom.asterisq.graph.views
Classpublic class SynchronizedGraphView
InheritanceSynchronizedGraphView Inheritance flash.events.EventDispatcher
ImplementsIGraphView
SubclassesCustomFilterGraphView, DelayedTreeGraphView, MaxNeighborsGraphView, MaxNodesGraphView, MultiPathGraphView, MultiTreeGraphView, TreeGraphView

Base class for representing the view using a separate LinkedGraph. This class implements view validation, copies over INode and IEdge data property values from the model to the view when changes are detected, and invalidates the view when INodes and IEdges are added to or removed from the model.

When the view is recalculated, a Event.RENDER event is dispatched.



Public Properties
 PropertyDefined by
  automaticViewInvalidation : Boolean
Indicates whether the view is automatically invalidated when the model changes.
SynchronizedGraphView
  model : IGraph
The model from which the contents of this view is calculated.
SynchronizedGraphView
  view : IGraph
The calculated contents of this view.
SynchronizedGraphView
  viewInvalid : Boolean
[read-only] Indicates whether the view is currently invalid.
SynchronizedGraphView
Public Methods
 MethodDefined by
  
Creates a new synchronized graph view.
SynchronizedGraphView
  
invalidate():void
Schedules the view for validation during the next render cycle.
SynchronizedGraphView
  
validateNow():void
Immediately recalculates the view.
SynchronizedGraphView
Protected Methods
 MethodDefined by
  
validate():Boolean
Recalculates the contents of the view from the model data.
SynchronizedGraphView
Property detail
automaticViewInvalidationproperty
automaticViewInvalidation:Boolean  [read-write]

Indicates whether the view is automatically invalidated when the model changes. If set to true, GraphEvents fired by the model trigger invalidation of the view. Default value is true.

Implementation
    public function get automaticViewInvalidation():Boolean
    public function set automaticViewInvalidation(value:Boolean):void
modelproperty 
model:IGraph  [read-write]

The model from which the contents of this view is calculated.

Implementation
    public function get model():IGraph
    public function set model(value:IGraph):void
viewproperty 
view:IGraph  [read-write]

The calculated contents of this view.

Implementation
    public function get view():IGraph
    public function set view(value:IGraph):void
viewInvalidproperty 
viewInvalid:Boolean  [read-only]

Indicates whether the view is currently invalid.

Implementation
    public function get viewInvalid():Boolean
Constructor detail
SynchronizedGraphView()constructor
public function SynchronizedGraphView()

Creates a new synchronized graph view.

Method detail
invalidate()method
public function invalidate():void

Schedules the view for validation during the next render cycle.

validate()method 
protected function validate():Boolean

Recalculates the contents of the view from the model data.

Returns
Boolean
validateNow()method 
public function validateNow():void

Immediately recalculates the view. Cancels any view validation scheduled for the next render cycle.