Packagecom.yworks.io.graphml.writer.serializer
Classpublic class SWFNodeStyleSerializer
InheritanceSWFNodeStyleSerializer Inheritance AbstractSerializer

Serializer for SWFNodeStyle instances.

If the url property of the style instance is set, only the url serialized. Else, a Base64-ecnoded string representation of the byte array representing the SWF visualization is written.

See also

com.yworks.graph.drawing.SWFNodeStyle


Public Properties
 PropertyDefined by
  elementName : String
[read-only] The element name of the toplevel XmlElement for the serialized representation of this object
SWFNodeStyleSerializer
  instance : SWFNodeStyleSerializer
[static][read-only]
SWFNodeStyleSerializer
 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
SWFNodeStyleSerializer
 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
Write the content of the graphml element that corresponds to the serialization of subject.
SWFNodeStyleSerializer
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:SWFNodeStyleSerializer  [read-only]

Implementation
    public static function get instance():SWFNodeStyleSerializer
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
serializeContent()method 
protected override 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.