| Package | com.yworks.io.graphml |
| Class | public class JavaCompatGraphMLIOHandler |
| Inheritance | JavaCompatGraphMLIOHandler GraphMLIOHandler flash.events.EventDispatcher |
Depending on the useJavaStyles constructor parameter, either
specific style implementations for yFiles Java compatibility will be used
where necessary, or the serialized realizer information will be mapped to default
yFiles FLEX styles where this is possible. For best possible compatibility with the
yFiles Java GraphML format,
true should be passed to the constructor.
| Method | Defined by | ||
|---|---|---|---|
|
JavaCompatGraphMLIOHandler(useJavaStyles:Boolean = false)
Creates a new instance.
| JavaCompatGraphMLIOHandler | ||
![]() |
addEdgeAttribute(mapper:IMapper, attrName:String, type:String = "string"):void
Adds a GraphML attribute with edge scope that holds data of simple type.
| GraphMLIOHandler | |
![]() |
addInputHandler(handler:IInputHandler):void
Adds a input handler that can parse <data> blocks.
| GraphMLIOHandler | |
![]() |
addNamespace(ns:Namespace):void
Adds a namespace to the header of a GraphML file.
| GraphMLIOHandler | |
![]() |
addNodeAttribute(mapper:IMapper, attrName:String, type:String = "string"):void
Adds a GraphML attribute with node scope that holds data of simple type.
| GraphMLIOHandler | |
![]() |
addOutputHandler(outputHandler:IOutputHandler, scope:String):void
Adds a subordinate output handler for the given
element scope to this GraphMLIOHandler.
| GraphMLIOHandler | |
![]() |
addRegistryEdgeAttribute(registryTag:Object, attrName:String, type:String = "string"):void
Adds a GraphML attribute with edge scope that holds data of simple type.
| GraphMLIOHandler | |
![]() |
addRegistryNodeAttribute(registryTag:Object, attrName:String, type:String = "string"):void
Adds a GraphML attribute with node scope that holds data of simple type.
| GraphMLIOHandler | |
![]() |
Returns an iterable view of all input handlers that have been registered with this instance.
| GraphMLIOHandler | |
![]() |
getOutputHandlers(scope:String):Collection
Returns an editable view on the registered output handlers for GraphML attributes with
given scope that are registered with this GraphMLIOHandler.
| GraphMLIOHandler | |
![]() |
Returns an Iterable of all deserializers that have been registered with this instance.
| GraphMLIOHandler | |
![]() |
Returns an iterable view of all serializers that have been registered with this instance.
| GraphMLIOHandler | |
![]() |
populate the given
graph with the graph defined in the given xml file. | GraphMLIOHandler | |
![]() |
Populate the
graph with the graph structure defined
in a graph file located at the URL. | GraphMLIOHandler | |
![]() |
registerDeserializer(deserializer:IDeserializer):void
Register a
IDeserializer instance for reading custom information. | GraphMLIOHandler | |
![]() |
registerSerializer(serializer:ISerializer):void
Register a
ISerializer instance for writing custom information. | GraphMLIOHandler | |
![]() |
removeInputHandler(inputHandler:IInputHandler):void
Removes an input handler.
| GraphMLIOHandler | |
![]() |
removeOutputHandler(outputHandler:IOutputHandler, scope:String):void
Removes an output handler that was added for the given scope.
| GraphMLIOHandler | |
![]() |
unregisterDeserializer(deserializer:IDeserializer):void
Unregister an
IDeserializer instance that was previously registered. | GraphMLIOHandler | |
![]() |
unregisterSerializer(serializer:ISerializer):void
Unregister an
ISerializer instance that was previously registered. | GraphMLIOHandler | |
![]() |
Write the given graph to a XML Object in GraphML format.
| GraphMLIOHandler | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
Create the
DirectGraphMLWriter instance that is used for writing GraphML output. | GraphMLIOHandler | |
![]() |
Create a suitable instance of
IGraphElementFactory that can handle the given graph
| GraphMLIOHandler | |
![]() |
Create an
IGraphElementProvider instance that provides the graph elements that are to be written. | GraphMLIOHandler | |
![]() |
Create the
GraphMLParser instance that is used for writing GraphML output. | GraphMLIOHandler | |
![]() |
Callback method for the creation of a new read context.
| GraphMLIOHandler | |
![]() |
Callback method for the creation of a new write context.
| GraphMLIOHandler | |
![]() |
Create the
IXmlWriter instance that is used for low-level XML writing. | GraphMLIOHandler | |
|
initializeHandlers():void
Registers default data handlers for reading and writing style information
in a yFiles Java compatible format.
| JavaCompatGraphMLIOHandler | ||
| JavaCompatGraphMLIOHandler | () | constructor |
public function JavaCompatGraphMLIOHandler(useJavaStyles:Boolean = false)Creates a new instance.
For best possible compatibility with the yFiles Java GraphML format,
true should be passed to the constructor. This will ensure
that special compatibility style implementations will be used.
The useJavaStyles constructor parameter defaults to
false for backwards compatiblity.
useJavaStyles:Boolean (default = false) — whether to use style implementations that were
created for compatibility with the yFiles Java realizers. If false
is passed (the default), the serialized realizer information will be mapped to
default yFiles FLEX styles where this is possible. Defaults to false
for backwards compatibility.
|
| initializeHandlers | () | method |
protected override function initializeHandlers():voidRegisters default data handlers for reading and writing style information in a yFiles Java compatible format.