Packagecom.yworks.io.graphml.reader.deserializer
Classpublic class BitmapNodeStyleDeserializer
InheritanceBitmapNodeStyleDeserializer Inheritance AbstractNodeStyleDeserializer Inheritance AbstractDeserializer

A deserializer implementation that deserializes BitmapNodeStyle instances.

Bitmap images are deserialized using base64 encoding.

For compatibility with yFiles.NET, this deserializer parses IImageNodeStyle XML elements.

A shared instance can be retrieved using instance.



Public Properties
 PropertyDefined by
  elementName : String
[read-only] The local tag name that this Deserializer can claim to handle
BitmapNodeStyleDeserializer
  instance : BitmapNodeStyleDeserializer
[static][read-only] The shared instance of this deserializer.
BitmapNodeStyleDeserializer
 InheritedxmlNamespace : Namespace
The XmlNamespace that this Deserializer can claim to handle.
AbstractNodeStyleDeserializer
Public Methods
 MethodDefined by
 Inherited
canHandle(context:GraphMLParseContext, element:XML):Boolean
Returns whether a deserializer can handle a specific xml element.
AbstractDeserializer
 Inherited
deserialize(context:GraphMLParseContext, element:XML):Object
Create a new instance from the xml element
AbstractNodeStyleDeserializer
Protected Methods
 MethodDefined by
  
Deserialize the style specific data content of element.
BitmapNodeStyleDeserializer
Property detail
elementNameproperty
elementName:String  [read-only]

The local tag name that this Deserializer can claim to handle

Implementation
    public function get elementName():String
instanceproperty 
instance:BitmapNodeStyleDeserializer  [read-only]

The shared instance of this deserializer.

Implementation
    public static function get instance():BitmapNodeStyleDeserializer
Method detail
deserializeStyle()method
protected override function deserializeStyle(context:GraphMLParseContext, element:XML):INodeStyle

Deserialize the style specific data content of element.

Parameters
context:GraphMLParseContext — The current parse context
 
element:XML — The current XML object that represents the node style

Returns
INodeStyle — A new INodeStyle instance or the instance passed as styleInstance.