Packagecom.yworks.io.graphml.realizer
Classpublic class JavaShapeNodeRealizerSerializer
InheritanceJavaShapeNodeRealizerSerializer Inheritance AbstractJavaNodeRealizerSerializer Inheritance Object
Subclasses JavaGroupNodeRealizerSerializer

The serializer for JavaShapeNodeStyle



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

The singleton instance.


Implementation
    public static function get instance():JavaShapeNodeRealizerSerializer
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
String — the name of the item
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 — The names of all xml elements this serializer can handle as Array.
getStyleClass()method 
override public function getStyleClass():Class

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

Returns
Class — The class that can be serialized by this instance.
parse()method 
override public function parse(style:INodeStyle, layout:IMutableRectangle, element:XML, context:GraphMLParseContext):void

Parses a serialized yFiles Java node realizer into the given style.

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

write()method 
override public function 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.

Parameters

node:INode — node whose style can be serialized to a format that can be read by yFiles Java.
 
writer:IXmlWriter — The xml writer
 
context:GraphMLWriteContext — The current write context.