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



Public Properties
 PropertyDefined By
  instance : JavaGroupNodeRealizerSerializer
[static] [read-only] The shared instance of this serializer.
JavaGroupNodeRealizerSerializer
Public Methods
 MethodDefined By
  
JavaGroupNodeRealizerSerializer
 Inherited
canRead(node:XML, context:GraphMLParseContext):Boolean
Whether this instance can deserialize the given xml element in the given context.
AbstractJavaNodeRealizerSerializer
  
canWrite(node:INode, context:GraphMLWriteContext):Boolean
[override] Whether this instance can serialize the style of the given node in the given context.
JavaGroupNodeRealizerSerializer
 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 element name associated with the given item and this serializer.
JavaGroupNodeRealizerSerializer
  
[override] Returns an array with the element names this serializer can handle
JavaGroupNodeRealizerSerializer
 Inherited
getNamespace():Namespace
Returns the namespace of the element this serilaizer writes.
AbstractJavaNodeRealizerSerializer
  
[override] Returns the class this serializer can handle.
JavaGroupNodeRealizerSerializer
  
parse(style:INodeStyle, layout:IMutableRectangle, element:XML, context:GraphMLParseContext):void
[override] Parses a serialized yFiles Java node realizer into the given style.
JavaGroupNodeRealizerSerializer
  
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.
JavaGroupNodeRealizerSerializer
 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:JavaGroupNodeRealizerSerializer  [read-only]

The shared instance of this serializer.


Implementation
    public static function get instance():JavaGroupNodeRealizerSerializer
Constructor Detail
JavaGroupNodeRealizerSerializer()Constructor
public function JavaGroupNodeRealizerSerializer()



Method Detail
canWrite()method
override public function canWrite(node:INode, context:GraphMLWriteContext):Boolean

Whether this instance can serialize the style of the given node in the given context.

Parameters

node:INode — The node.
 
context:GraphMLWriteContext — The write context.

Returns
Booleantrue if this instance can serialize the given node's style.
getElementName()method 
override public function getElementName(item:Object):String

Returns the element name associated with the given item and this serializer.

Parameters

item:Object — The item to be serialized.

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

Returns an array with the element names this serializer can handle

Returns
Array — An array with GraphMLConstants.Y_GROUP_NODE
getStyleClass()method 
override public function getStyleClass():Class

Returns the class this serializer can handle.

Returns
Classcom.yworks.graph.drawing.compat.JavaGroupNodeStyle
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.