Packagecom.yworks.io.graphml.writer.serializer
Classpublic class TextLayoutFormatSerializer
InheritanceTextLayoutFormatSerializer Inheritance AbstractSerializer Inheritance Object

A serializer that serializes TextLayoutFormat instances.

A shared instance can be retrieved using instance.

The serializer will only write non-default values.



Public Properties
 PropertyDefined By
  elementName : String
[override] [read-only] The element name of the toplevel XmlElement for the serialized representation of this object.
TextLayoutFormatSerializer
  instance : TextLayoutFormatSerializer
[static] [read-only]
TextLayoutFormatSerializer
  xmlNamespace : Namespace
[override] [read-only] returns the yworks namespace
TextLayoutFormatSerializer
Public Methods
 MethodDefined By
  
canHandle(context:GraphMLWriteContext, subject:Object):Boolean
[override] Return whether this serializer can handle a specific object.
TextLayoutFormatSerializer
 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.
TextLayoutFormatSerializer
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:TextLayoutFormatSerializer  [read-only]


Implementation
    public static function get instance():TextLayoutFormatSerializer
xmlNamespaceproperty 
xmlNamespace:Namespace  [read-only] [override]

returns the yworks namespace


Implementation
    public function get xmlNamespace():Namespace
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
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.