Packagecom.yworks.io.graphml.writer.serializer
Classpublic class AbstractEdgeStyleSerializer
InheritanceAbstractEdgeStyleSerializer Inheritance AbstractSerializer Inheritance Object
Subclasses PolylineEdgeStyleSerializer

Abstract base class that should be used for all actual serializers for IEdgeStyles

This class provides hooks for serialization of style content and arrow handling



Public Properties
 PropertyDefined By
 InheritedelementName : String
[read-only] The element name of the toplevel XmlElement for the serialized representation of this object.
AbstractSerializer
 InheritedxmlNamespace : Namespace
[read-only] returns the yworks namespace
AbstractSerializer
Public Methods
 MethodDefined By
 Inherited
canHandle(context:GraphMLWriteContext, subject:Object):Boolean
Return whether this serializer can handle a specific object.
AbstractSerializer
 Inherited
serialize(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
Serialize the given style to a IXmlWriter.
AbstractSerializer
Protected Methods
 MethodDefined By
  
serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
[override] Write the content of the graphml element that corresponds to the serialization of subject.
AbstractEdgeStyleSerializer
  
Serialize the style itself (without arrows).
AbstractEdgeStyleSerializer
Method Detail
serializeContent()method
override protected function serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void

Write the content of the graphml element that corresponds to the serialization of subject.

Parameters

context:GraphMLWriteContext — The current write context.
 
subject:Object — The current object to be serialized.
 
writer:IXmlWriter — The xml writer.

writeStyle()method 
protected function writeStyle(context:GraphMLWriteContext, style:IEdgeStyle, writer:IXmlWriter):void

Serialize the style itself (without arrows).

This is the only method that implementors need to implement or override.

Parameters

context:GraphMLWriteContext — The current write context
 
style:IEdgeStyle — The actual Edge style
 
writer:IXmlWriter — The current output writer