Packagecom.yworks.io.graphml.writer.serializer
Classpublic class GeneralPathSerializer
InheritanceGeneralPathSerializer Inheritance AbstractSerializer

Implementation of AbstractSerializer for GeneralPaths

This implementation just writes an ordered list of all operations in the GeneralPath.

A shared instance can be retrieved with instance.



Public Properties
 PropertyDefined by
  elementName : String
[read-only] The element name of the toplevel XmlElement for the serialized representation of this object
GeneralPathSerializer
  instance : GeneralPathSerializer
[static][read-only] The shared instance of this serializer
GeneralPathSerializer
 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
GeneralPathSerializer
 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.
GeneralPathSerializer
Public Constants
 ConstantDefined by
  GENERAL_PATH_DOTNET_OP_CUBIC_TO : String = "CubicTo"
[static] Element name to encode the GeneralPath#cubicTo operation that is supported by the yFiles.NET GraphML format.
GeneralPathSerializer
  GENERAL_PATH_ELEMENT : String = "GeneralPath"
[static] Constant for the toplevel element name.
GeneralPathSerializer
  GENERAL_PATH_OP_CLOSE : String = "Close"
[static] Element name to encode the GeneralPath#close operation
GeneralPathSerializer
  GENERAL_PATH_OP_CURVETO : String = "QuadTo"
[static] Element name to encode the GeneralPath#curveTo operation
GeneralPathSerializer
  GENERAL_PATH_OP_LINETO : String = "LineTo"
[static] Element name to encode the GeneralPath#lineTo operation
GeneralPathSerializer
  GENERAL_PATH_OP_MOVETO : String = "MoveTo"
[static] Element name to encode the GeneralPath#moveTo operation
GeneralPathSerializer
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:GeneralPathSerializer  [read-only]

The shared instance of this serializer

Implementation
    public static function get instance():GeneralPathSerializer
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.
Constant detail
GENERAL_PATH_DOTNET_OP_CUBIC_TOconstant
public static const GENERAL_PATH_DOTNET_OP_CUBIC_TO:String = "CubicTo"

Element name to encode the GeneralPath#cubicTo operation that is supported by the yFiles.NET GraphML format.

GENERAL_PATH_ELEMENTconstant 
public static const GENERAL_PATH_ELEMENT:String = "GeneralPath"

Constant for the toplevel element name.

GENERAL_PATH_OP_CLOSEconstant 
public static const GENERAL_PATH_OP_CLOSE:String = "Close"

Element name to encode the GeneralPath#close operation

GENERAL_PATH_OP_CURVETOconstant 
public static const GENERAL_PATH_OP_CURVETO:String = "QuadTo"

Element name to encode the GeneralPath#curveTo operation

GENERAL_PATH_OP_LINETOconstant 
public static const GENERAL_PATH_OP_LINETO:String = "LineTo"

Element name to encode the GeneralPath#lineTo operation

GENERAL_PATH_OP_MOVETOconstant 
public static const GENERAL_PATH_OP_MOVETO:String = "MoveTo"

Element name to encode the GeneralPath#moveTo operation