Package | com.yworks.io.binary |
Class | public class ExternalizableGraph |
Inheritance | ExternalizableGraph Object |
Implements | flash.utils.IExternalizable, flash.events.IEventDispatcher |
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
Property | Defined By | ||
---|---|---|---|
graph : IGraph
The graph instance that is externalized. | ExternalizableGraph |
Method | Defined 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 |
Method | Defined 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 |
graph | property |
graph:IGraph
The graph instance that is externalized.
public function get graph():IGraph
public function set graph(value:IGraph):void
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.
ReturnsIGraph — 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.
GraphMLIOHandler |
See also
dispatchEvent | () | method |
public function dispatchEvent(event:Event):Boolean
Parameters
event:Event |
Boolean |
hasEventListener | () | method |
public function hasEventListener(type:String):Boolean
Parameters
type:String |
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 |
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 |