Packagecom.yworks.io.graphml.realizer
Classpublic class ImageNodeStyleRealizerSerializer
InheritanceImageNodeStyleRealizerSerializer Inheritance AbstractNodeRealizerSerializer Inheritance Object

An IRealizerSerializer that can read y:ImageNode and y:SVGNode elements written by yFiles Java.



Public Properties
 PropertyDefined By
  instance : ImageNodeStyleRealizerSerializer
[static] [read-only] The shared instance of this serializer.
ImageNodeStyleRealizerSerializer
Public Methods
 MethodDefined By
 Inherited
canRead(node:XML, context:GraphMLParseContext):Boolean
Whether this instance can deserialize the given xml element in the given context.
AbstractNodeRealizerSerializer
 Inherited
canWrite(node:INode, context:GraphMLWriteContext):Boolean
Whether this instance can serialize the style of the given node in the given context.
AbstractNodeRealizerSerializer
 Inherited
Create a style instance that can represent the node graphics information of the given xml element.
AbstractNodeRealizerSerializer
  
getElementName(item:Object):String
[override] Returns the name of the element that will be written by this serializer given the provided item.
ImageNodeStyleRealizerSerializer
  
[override] Returns the names of all XML elements that can be parsed or written by this serializer.
ImageNodeStyleRealizerSerializer
 Inherited
getNamespace():Namespace
Returns GraphMLConstants.YWORKS_EXT_NS.
AbstractNodeRealizerSerializer
  
[override] Returns the style class that can be serialized or deserialized by this instance.
ImageNodeStyleRealizerSerializer
  
parse(style:INodeStyle, layout:IMutableRectangle, element:XML, context:GraphMLParseContext):void
[override] Parses an image or SWF node.
ImageNodeStyleRealizerSerializer
 Inherited
write(node:INode, writer:IXmlWriter, context:GraphMLWriteContext):void
Write the given node style in a format that can be parsed into a node realizer by yFiles Java.
AbstractNodeRealizerSerializer
 Inherited
Write the attributes of the realizer xml element
AbstractNodeRealizerSerializer
Property Detail
instanceproperty
instance:ImageNodeStyleRealizerSerializer  [read-only]

The shared instance of this serializer.


Implementation
    public static function get instance():ImageNodeStyleRealizerSerializer
Method Detail
getElementName()method
override public function getElementName(item:Object):String

Returns the name of the element that will be written by this serializer given the provided item.

Parameters

item:Object

Returns
StringGraphMLConstants.Y_IMAGE_NODE.
getElementNames()method 
override public function getElementNames():Array

Returns the names of all XML elements that can be parsed or written by this serializer.

Returns
Array — An Array with GraphMLConstants.Y_IMAGE_NODE, GraphMLConstants.Y_SVG_NODE.
getStyleClass()method 
override public function getStyleClass():Class

Returns the style class that can be serialized or deserialized by this instance.

Returns
Classcom.yworks.graph.drawing.ImageNodeStyle.
parse()method 
override public function parse(style:INodeStyle, layout:IMutableRectangle, element:XML, context:GraphMLParseContext):void

Parses an image or SWF node.

Parameters

style:INodeStyle — A node style that is used to display the appearance of the yFiles Java node realizer.
 
layout:IMutableRectangle — A mutable rectangle that will be set to the bounds of the parsed realizer.
 
element:XML — the graphml node element
 
context:GraphMLParseContext — the current parsing context