Package | com.yworks.io.graphml.realizer |
Interface | public interface IEdgeRealizerSerializer extends IRealizerSerializer |
Implementors | AbstractEdgeRealizerSerializer |
Method | Defined By | ||
---|---|---|---|
canRead(node:XML, context:GraphMLParseContext):Boolean
Whether this instance can deserialize the given xml element in the given context. | IEdgeRealizerSerializer | ||
Whether this instance can serialize the given edge style in the given context. | IEdgeRealizerSerializer | ||
Create a style instance that can represent the edge graphics information of the given xml element. | IEdgeRealizerSerializer | ||
getElementName(item:Object):String
Returns the name of the element that will be written by this serializer given the provided item. | IRealizerSerializer | ||
getElementNames():Array
Returns the names of all XML elements that can be parsed or written by this serializer. | IRealizerSerializer | ||
getNamespace():Namespace
Returns the namespace of the element this serilaizer writes. | IRealizerSerializer | ||
getStyleClass():Class
Returns the style class that can be serialized or deserialized by this instance. | IRealizerSerializer | ||
Parses a serialized yFiles Java edge realizer into the given style. | IEdgeRealizerSerializer | ||
Write the given edge style in a format that can be parsed into a edge realizer by yFiles Java. | IEdgeRealizerSerializer | ||
Write the attributes of the realizer xml element
| IEdgeRealizerSerializer |
canRead | () | method |
public function canRead(node:XML, context:GraphMLParseContext):Boolean
Whether this instance can deserialize the given xml element in the given context.
Parameters
node:XML — The xml element.
| |
context:GraphMLParseContext — the parse context.
|
Boolean — true if this instance can deserialize the xml element.
|
canWrite | () | method |
public function canWrite(edge:IEdge, context:GraphMLWriteContext):Boolean
Whether this instance can serialize the given edge style in the given context.
Parameters
edge:IEdge — the edge.
| |
context:GraphMLWriteContext — the write context.
|
Boolean — true if this instance can serialize the edge style.
|
createStyleInstance | () | method |
public function createStyleInstance(element:XML, context:GraphMLParseContext):IEdgeStyle
Create a style instance that can represent the edge graphics information of the given xml element.
Parameters
element:XML — the xml element.
| |
context:GraphMLParseContext — the parse context.
|
IEdgeStyle — the deserialized edge style instance.
|
parse | () | method |
public function parse(style:IEdgeStyle, element:XML, context:GraphMLParseContext):void
Parses a serialized yFiles Java edge realizer into the given style.
Parameters
style:IEdgeStyle — An edge style that is used to display the appearance of the yFiles Java edge realizer.
| |
element:XML — the graphml edge element
| |
context:GraphMLParseContext — the current parsing context
|
write | () | method |
public function write(edge:IEdge, writer:IXmlWriter, context:GraphMLWriteContext):void
Write the given edge style in a format that can be parsed into a edge realizer by yFiles Java.
Parameters
edge:IEdge — An edge style that can be serialized to a format that can be read by yFiles Java.
| |
writer:IXmlWriter — The xml writer
| |
context:GraphMLWriteContext — The current write context.
|
writeAttributes | () | method |
public function writeAttributes(edge:IEdge, writer:IXmlWriter, context:GraphMLWriteContext):void
Write the attributes of the realizer xml element
Parameters
edge:IEdge — An edge style that can be serialized to a format that can be read by yFiles Java.
| |
writer:IXmlWriter — The xml writer.
| |
context:GraphMLWriteContext — The current write context.
|