Packagecom.asterisq.graph
Classpublic class GraphEvent
InheritanceGraphEvent Inheritance flash.events.Event

An event associated with a graph.



Public Properties
 PropertyDefined by
  changeType : String
[read-only] The type of change that occurred.
GraphEvent
  endIndex : int
[read-only] The end index of the affected items.
GraphEvent
  items : Array
[read-only] The affected items.
GraphEvent
  startIndex : int
[read-only] The start index of the affected items.
GraphEvent
Public Methods
 MethodDefined by
  
GraphEvent(eventType:String, changeType:String, items:Array, startIndex:int = -1, endIndex:int = -1)
Creates a new graph event.
GraphEvent
  
clone():Event
GraphEvent
Public Constants
 ConstantDefined by
  EDGES_CHANGE : String = "edgesChange"
[static] Indicates a change to the graph's edges.
GraphEvent
  NODES_CHANGE : String = "nodesChange"
[static] Indicates a change to the graph's nodes.
GraphEvent
Property detail
changeTypeproperty
changeType:String  [read-only]

The type of change that occurred. The value is usually one of the DataChangeType constants.

Implementation
    public function get changeType():String
endIndexproperty 
endIndex:int  [read-only]

The end index of the affected items.

Implementation
    public function get endIndex():int
itemsproperty 
items:Array  [read-only]

The affected items.

Implementation
    public function get items():Array
startIndexproperty 
startIndex:int  [read-only]

The start index of the affected items.

Implementation
    public function get startIndex():int
Constructor detail
GraphEvent()constructor
public function GraphEvent(eventType:String, changeType:String, items:Array, startIndex:int = -1, endIndex:int = -1)

Creates a new graph event.

Parameters
eventType:String — The type of event. Use one of the GraphEvent constants.
 
changeType:String — The type of change. Use one of the DataChangeType constants.
 
items:Array — The affected items.
 
startIndex:int (default = -1) — The start index of the affected items.
 
endIndex:int (default = -1) — The end index of the affected items.
Method detail
clone()method
public override function clone():Event

Returns
Event
Constant detail
EDGES_CHANGEconstant
public static const EDGES_CHANGE:String = "edgesChange"

Indicates a change to the graph's edges.

NODES_CHANGEconstant 
public static const NODES_CHANGE:String = "nodesChange"

Indicates a change to the graph's nodes.