Packagecom.yworks.io.graphml.writer.serializer
Classpublic class AbstractArrowSerializer
InheritanceAbstractArrowSerializer Inheritance AbstractSerializer Inheritance Object
Implements com.yworks.io.graphml.writer.serializer.ArrowSupport
Subclasses DefaultArrowSerializer



Public Properties
 PropertyDefined By
  atSource : Boolean
Determines, whether the arrow is located at the edges source or target port.
AbstractArrowSerializer
 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
  
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
  
Serialize the given arrow to a IXmlWriter
AbstractArrowSerializer
  
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
atSourceproperty
atSource:Boolean

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