Packagecom.yworks.io.graphml.writer.serializer
Classpublic class DefaultArrowSerializer
InheritanceDefaultArrowSerializer Inheritance AbstractArrowSerializer Inheritance AbstractSerializer

A serializer implementation that serializes IArrow instances.

A shared instance can be retrieved using instance



Public Properties
 PropertyDefined by
 InheritedatSource : Boolean
Determines, whether the arrow is located at the edges source or target port.
AbstractArrowSerializer
  elementName : String
[read-only] The element name of the toplevel XmlElement for the serialized representation of this object
DefaultArrowSerializer
  instance : DefaultArrowSerializer
[static][read-only] The singleton instance of this DefaultArrowSerializer
DefaultArrowSerializer
 InheritedxmlNamespace : Namespace
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
AbstractArrowSerializer
 Inherited
serialize(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
Serialize the given style to a IXmlWriter
AbstractSerializer
Protected Methods
 MethodDefined by
  
serializeArrow(context:GraphMLWriteContext, arrow:IArrow, writer:IXmlWriter):void
Serialize the given arrow to a IXmlWriter
DefaultArrowSerializer
 Inherited
serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
Serialize the given arrow to a IXmlWriter

Implementors should not overwrite this method, but serializeArrow instead.

AbstractArrowSerializer
Property detail
elementNameproperty
elementName:String  [read-only]

The element name of the toplevel XmlElement for the serialized representation of this object

Implementation
    public function get elementName():String
instanceproperty 
instance:DefaultArrowSerializer  [read-only]

The singleton instance of this DefaultArrowSerializer

Implementation
    public static function get instance():DefaultArrowSerializer
Method detail
serializeArrow()method
protected override function serializeArrow(context:GraphMLWriteContext, arrow:IArrow, writer:IXmlWriter):void

Serialize the given arrow to a IXmlWriter

Parameters
context:GraphMLWriteContext — The current write context
 
arrow:IArrow — The actual arrow
 
writer:IXmlWriter — A IXmlWriter instance for output