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

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
[override] [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
[read-only] returns the yworks namespace
AbstractSerializer
Public Methods
 MethodDefined By
 Inherited
canHandle(context:GraphMLWriteContext, subject:Object):Boolean
[override] 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
  
[override] Serialize the given arrow to a IXmlWriter
DefaultArrowSerializer
 Inherited
serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
[override] Serialize the given arrow to a IXmlWriter Implementors should not overwrite this method, but serializeArrow instead.
AbstractArrowSerializer
Property Detail
elementNameproperty
elementName:String  [read-only] [override]

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
override protected 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