| Package | com.yworks.io.graphml.writer.serializer |
| Class | public class ShapeNodeStyleSerializer |
| Inheritance | ShapeNodeStyleSerializer AbstractSerializer |
ISerializer implementation that serializes ShapeNodeStyles.
Note that this serializer will try to convert ShapeNodeShape constants that are only known by yFiles Java
to ShapeNodeShape constants that are known by yFiles.NET.
| Property | Defined by | ||
|---|---|---|---|
| elementName : String [read-only]
| ShapeNodeStyleSerializer | ||
| instance : ShapeNodeStyleSerializer
[static][read-only]
The shared instance of this serializer
| ShapeNodeStyleSerializer | ||
![]() | xmlNamespace : Namespace
returns the yworks namespace
| AbstractSerializer | |
| Method | Defined by | ||
|---|---|---|---|
|
canHandle(context:GraphMLWriteContext, subject:Object):Boolean
Return whether this serializer can handle a specific object
| ShapeNodeStyleSerializer | ||
![]() |
Serialize the given style to a
IXmlWriter
| AbstractSerializer | |
| Method | Defined by | ||
|---|---|---|---|
|
Write the content of the graphml element that corresponds to the serialization of
subject. | ShapeNodeStyleSerializer | ||
| Constant | Defined by | ||
|---|---|---|---|
| SHAPE_TAG : String = "Shape" [static]
The shape tag's element name
| ShapeNodeStyleSerializer | ||
| elementName | property |
elementName:String [read-only]Implementation
public function get elementName():String
| instance | property |
instance:ShapeNodeStyleSerializer [read-only]The shared instance of this serializer
Implementation public static function get instance():ShapeNodeStyleSerializer
| canHandle | () | method |
public override function canHandle(context:GraphMLWriteContext, subject:Object):BooleanReturn whether this serializer can handle a specific object
Parameterscontext:GraphMLWriteContext — The write context.
|
|
subject:Object — The object which is tested
|
Boolean — true 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.
context:GraphMLWriteContext — The current write context.
|
|
subject:Object — The current object to be serialized.
|
|
writer:IXmlWriter — The xml writer.
|
| SHAPE_TAG | constant |
public static const SHAPE_TAG:String = "Shape"The shape tag's element name