Packagecom.yworks.io.binary
Classpublic class ExternalizableGraph
InheritanceExternalizableGraph Inheritance Object
Implements flash.utils.IExternalizable, flash.events.IEventDispatcher

An externalizable container for an IGraph that can be used for AMF (de)serialization, e.g. with Adobe Blaze DS. The corresponding remote class is com.yworks.yfiles.server.graphml.flexio.binary.ExternalizableGraph.

The graph is serialized as a GraphML string.

See also

com.yworks.io.binary.ObjectSerializer
com.yworks.io.binary.ObjectDeserializer


Public Properties
 PropertyDefined By
  graph : IGraph
The graph instance that is externalized.
ExternalizableGraph
Public Methods
 MethodDefined By
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void
ExternalizableGraph
  
dispatchEvent(event:Event):Boolean
ExternalizableGraph
  
hasEventListener(type:String):Boolean
ExternalizableGraph
  
readExternal(input:IDataInput):void
Reades the graph along with any attached objects from the data input.
ExternalizableGraph
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
ExternalizableGraph
  
willTrigger(type:String):Boolean
ExternalizableGraph
  
writeExternal(output:IDataOutput):void
Write the graph along with any serialized attached objects to the data output.
ExternalizableGraph
Protected Methods
 MethodDefined By
  
Creates a graph that is used to read the externalized graph into.
ExternalizableGraph
  
Create the GraphMLIOhandler that will be used for reading and writing the graph instance.
ExternalizableGraph
Property Detail
graphproperty
graph:IGraph

The graph instance that is externalized.


Implementation
    public function get graph():IGraph
    public function set graph(value:IGraph):void
Method Detail
addEventListener()method
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
weakRef:Boolean (default = false)

createGraph()method 
protected function createGraph():IGraph

Creates a graph that is used to read the externalized graph into.

Returns
IGraph — The graph used when
createIOHandler()method 
protected function createIOHandler():GraphMLIOHandler

Create the GraphMLIOhandler that will be used for reading and writing the graph instance.

This implementation will register ObjectSerializer and ObjectDeserializer instances for writing and reading Objects using the AMF format.

Returns
GraphMLIOHandler

See also

dispatchEvent()method 
public function dispatchEvent(event:Event):Boolean

Parameters

event:Event

Returns
Boolean
hasEventListener()method 
public function hasEventListener(type:String):Boolean

Parameters

type:String

Returns
Boolean
readExternal()method 
public function readExternal(input:IDataInput):void

Reades the graph along with any attached objects from the data input.

For reading the graph, a GraphMLIOHandler is created using createIOHandler().

Parameters

input:IDataInput

removeEventListener()method 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)

willTrigger()method 
public function willTrigger(type:String):Boolean

Parameters

type:String

Returns
Boolean
writeExternal()method 
public function writeExternal(output:IDataOutput):void

Write the graph along with any serialized attached objects to the data output.

For writing the graph, a GraphMLIOHandler is created using createIOHandler().

Parameters

output:IDataOutput