Packagecom.yworks.io.graphml.realizer
Interfacepublic interface IEdgeRealizerSerializer extends IRealizerSerializer
Implementors AbstractEdgeRealizerSerializer

Interface for reading and/or writing edge graphics information written/to be parsed by yFiles Java



Public Methods
 MethodDefined By
  
canRead(node:XML, context:GraphMLParseContext):Boolean
Whether this instance can deserialize the given xml element in the given context.
IEdgeRealizerSerializer
  
canWrite(edge:IEdge, context:GraphMLWriteContext):Boolean
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
 Inherited
getElementName(item:Object):String
Returns the name of the element that will be written by this serializer given the provided item.
IRealizerSerializer
 Inherited
Returns the names of all XML elements that can be parsed or written by this serializer.
IRealizerSerializer
 Inherited
getNamespace():Namespace
Returns the namespace of the element this serilaizer writes.
IRealizerSerializer
 Inherited
Returns the style class that can be serialized or deserialized by this instance.
IRealizerSerializer
  
parse(style:IEdgeStyle, element:XML, context:GraphMLParseContext):void
Parses a serialized yFiles Java edge realizer into the given style.
IEdgeRealizerSerializer
  
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.
IEdgeRealizerSerializer
  
Write the attributes of the realizer xml element
IEdgeRealizerSerializer
Method Detail
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.

Returns
Booleantrue 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.

Returns
Booleantrue 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.

Returns
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.