| Package | com.asterisq.graph.views |
| Class | public class SynchronizedGraphView |
| Inheritance | SynchronizedGraphView flash.events.EventDispatcher |
| Implements | IGraphView |
| Subclasses | CustomFilterGraphView, DelayedTreeGraphView, MaxNeighborsGraphView, MaxNodesGraphView, MultiPathGraphView, MultiTreeGraphView, TreeGraphView |
When the view is recalculated, a Event.RENDER event is
dispatched.
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
validate():Boolean
Recalculates the contents of the view from the model data.
| SynchronizedGraphView | ||
| automaticViewInvalidation | property |
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.
public function get automaticViewInvalidation():Boolean
public function set automaticViewInvalidation(value:Boolean):void
| model | property |
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
| view | property |
view:IGraph [read-write]The calculated contents of this view.
Implementation public function get view():IGraph
public function set view(value:IGraph):void
| viewInvalid | property |
viewInvalid:Boolean [read-only]Indicates whether the view is currently invalid.
Implementation public function get viewInvalid():Boolean
| SynchronizedGraphView | () | constructor |
public function SynchronizedGraphView()Creates a new synchronized graph view.
| invalidate | () | method |
public function invalidate():voidSchedules the view for validation during the next render cycle.
| validate | () | method |
protected function validate():BooleanRecalculates the contents of the view from the model data.
ReturnsBoolean |
| validateNow | () | method |
public function validateNow():voidImmediately recalculates the view. Cancels any view validation scheduled for the next render cycle.