Packagecom.yworks.io.graphml.writer.serializer
Classpublic class AbstractArrowSerializer
InheritanceAbstractArrowSerializer Inheritance AbstractSerializer
Implementscom.yworks.io.graphml.writer.serializer.ArrowSupport
SubclassesDefaultArrowSerializer



Public Properties
 PropertyDefined by
  atSource : Boolean
Determines, whether the arrow is located at the edges source or target port.
AbstractArrowSerializer
 InheritedelementName : String
The element name of the toplevel XmlElement for the serialized representation of this object
AbstractSerializer
 InheritedxmlNamespace : Namespace
returns the yworks namespace
AbstractSerializer
Public Methods
 MethodDefined by
  
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
AbstractArrowSerializer
  
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
atSourceproperty
atSource:Boolean  [read-write]

Determines, whether the arrow is located at the edges source or target port.

Implementation
    public function get atSource():Boolean
    public function set atSource(value:Boolean):void
Method detail
canHandle()method
public override function canHandle(context:GraphMLWriteContext, subject:Object):Boolean

Return whether this serializer can handle a specific object

Parameters
context:GraphMLWriteContext — The write context.
 
subject:Object — The object which is tested

Returns
Booleantrue if the serializer can handle the subject
serializeArrow()method 
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
serializeContent()method 
protected override function serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void

Serialize the given arrow to a IXmlWriter

Implementors should not overwrite this method, but serializeArrow instead.

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