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.
Property | Defined By | ||
---|---|---|---|
adjustFontSize : Boolean
Whether to adjust the font size when serializing / deserializing fonts. | GraphMLIOHandler | ||
clearGraphBeforeRead : Boolean
Whether to clear an existing graph instance before reading. | GraphMLIOHandler | ||
fontSizeFactor : Number
The factor to adjust the font size when serializing / deserializing fonts. | GraphMLIOHandler | ||
inputHandlerProvider : IInputHandlerProvider
Gets or sets an IInputHandlerProvider instance for dynamic input handler retrieval. | GraphMLIOHandler | ||
localViewMode : Boolean
Whether to read/write only the local view for folded graphs. | GraphMLIOHandler | ||
mapJavaLabelModels : Boolean
Whether to use a matching Label model when parsing graphml. | JavaCompatGraphMLIOHandler | ||
outputHandlerProvider : IOutputHandlerProvider
Gets or sets an IOutputHandlerProvider instance for dynamic output handler retrieval. | GraphMLIOHandler | ||
parseErrorHandler : IGraphMLParseErrorHandler
An error handler that will be used to handle errors which occur during parsing. | GraphMLIOHandler | ||
readLabels : Boolean
Whether labels should be deserialized. | GraphMLIOHandler | ||
readMajorVersion : int
The major file format version for the input. | GraphMLIOHandler | ||
readMinorVersion : int
The minor file format version for the input. | GraphMLIOHandler | ||
readPortLocationModel : Boolean
Whether port location models should be deserialized. | GraphMLIOHandler | ||
readRealizers : Boolean
Whether styles should be deserialized from realizers. | GraphMLIOHandler | ||
readStyles : Boolean
Whether styles should be deserialized. | GraphMLIOHandler | ||
readTables : Boolean
Whether to read tables. | GraphMLIOHandler | ||
realizerSerializerManager : RealizerSerializerManager [read-only]
Get the RealizerSerializerManager instance used by this
GraphMLIOHandler. | GraphMLIOHandler | ||
supportUserTags : Boolean
Whether to support user tags at ModelItems automatically. | GraphMLIOHandler | ||
supportZOrder : Boolean
Whether to support z-orders of IModelItems automatically. | GraphMLIOHandler | ||
useJavaStyles : Boolean
Whether to use style implementations that were
created for compatibility with the yFiles Java realizers. | JavaCompatGraphMLIOHandler | ||
writeLabels : Boolean
Whether labels should be serialized. | GraphMLIOHandler | ||
writeMajorVersion : int
The major file format version for the output
| GraphMLIOHandler | ||
writeMinorVersion : int
The minor file format version for the output
| GraphMLIOHandler | ||
writePortLocationModel : Boolean
Whether port location models should be serialized. | GraphMLIOHandler | ||
writeRealizers : Boolean
Whether styles should be serialized as realizers. | GraphMLIOHandler | ||
writeSharedReferences : Boolean
Whether to support object sharing on output. | GraphMLIOHandler | ||
writeStyles : Boolean
Whether styles should be serialized. | GraphMLIOHandler | ||
writeTables : Boolean
Whether to write tables. | GraphMLIOHandler |
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 | ||
addGraphAttribute(mapper:IMapper, attrName:String, type:String = string):void
Adds a GraphML attribute with graph 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 | ||
addRegistryGraphAttribute(registryTag:Object, attrName:String, type:String = string):void
Adds a GraphML attribute with graph 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 | ||
---|---|---|---|
configureDeserializers(context:GraphMLParseContext):void
Sets up all default IDeserializer instances on context. | GraphMLIOHandler | ||
configureInputHandlers(parser:GraphMLParser):void
Sets up all input handlers for the provided parser instance. | GraphMLIOHandler | ||
configureSerializers(context:GraphMLWriteContext):void
Configures context to use all registered serializers. | GraphMLIOHandler | ||
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 | ||
[override]
Callback method for the creation of a new read context. | JavaCompatGraphMLIOHandler | ||
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 [override]
Registers default data handlers for reading and writing style information
in a yFiles Java compatible format. | JavaCompatGraphMLIOHandler |
mapJavaLabelModels | property |
mapJavaLabelModels:Boolean
Whether to use a matching Label model when parsing graphml.
If set to false
all edge labels will get a FreeEdgeLabelModel
parameter
when a GraphML is read. This will guarantee that all labels will be placed at their exact
position but the labels can be moved anywhere by the user if moving labels is allowed.
If set to true
edge labels with the models center_slider, side_slider, six_pos,
three_center, two_pos and centered will be created with a SliderEdgeLabelModel
parameter when a GraphML is read. This will restrict moving labels to certain positions along
the edge if moving labels is allowed / another layout with labeling is run. On the other
hand it cannot be guaranteed that the labels will be placed at the exact position they
had on Java side.
The default value is false
.
This property can be used as the source for data binding.
public function get mapJavaLabelModels():Boolean
public function set mapJavaLabelModels(value:Boolean):void
useJavaStyles | property |
useJavaStyles:Boolean
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.
The default value is false
.
This property can be used as the source for data binding.
public function get useJavaStyles():Boolean
public function set useJavaStyles(value:Boolean):void
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.
|
createParseContext | () | method |
override protected function createParseContext(parser:GraphMLParser, graph:IGraph):GraphMLParseContext
Callback method for the creation of a new read context.
This method is called by createGraphMLParser
Parameters
parser:GraphMLParser — The reader to create the read context for.
| |
graph:IGraph — The graph that is to be read by the reader
|
GraphMLParseContext — A context that can be passed to the reader as the initial context
|
initializeHandlers | () | method |
override protected function initializeHandlers():void
Registers default data handlers for reading and writing style information in a yFiles Java compatible format.