| Package | com.yworks.io.graphml.realizer |
| Class | public class JavaGroupNodeRealizerSerializer |
| Inheritance | JavaGroupNodeRealizerSerializer JavaShapeNodeRealizerSerializer AbstractJavaNodeRealizerSerializer Object |
| Property | Defined By | ||
|---|---|---|---|
| instance : JavaGroupNodeRealizerSerializer [static] [read-only]
The shared instance of this serializer. | JavaGroupNodeRealizerSerializer | ||
| Method | Defined By | ||
|---|---|---|---|
| JavaGroupNodeRealizerSerializer | |||
![]() | canRead(node:XML, context:GraphMLParseContext):Boolean
Whether this instance can deserialize the given xml element in the given context. | AbstractJavaNodeRealizerSerializer | |
[override]
Whether this instance can serialize the style of the given node in the given context. | JavaGroupNodeRealizerSerializer | ||
![]() |
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 | ||
getElementNames():Array [override]
Returns an array with the element names this serializer can handle
| JavaGroupNodeRealizerSerializer | ||
![]() | getNamespace():Namespace
Returns the namespace of the element this serilaizer writes. | AbstractJavaNodeRealizerSerializer | |
getStyleClass():Class [override]
Returns the class this serializer can handle. | JavaGroupNodeRealizerSerializer | ||
[override]
Parses a serialized yFiles Java node realizer into the given style. | JavaGroupNodeRealizerSerializer | ||
[override]
Write the given node style in a format that can be parsed into a node realizer by yFiles Java. | JavaGroupNodeRealizerSerializer | ||
![]() |
Write the attributes of the realizer xml element
| AbstractJavaNodeRealizerSerializer | |
| instance | property |
instance:JavaGroupNodeRealizerSerializer [read-only] The shared instance of this serializer.
public static function get instance():JavaGroupNodeRealizerSerializer| JavaGroupNodeRealizerSerializer | () | Constructor |
public function JavaGroupNodeRealizerSerializer()| canWrite | () | method |
override public function canWrite(node:INode, context:GraphMLWriteContext):BooleanWhether this instance can serialize the style of the given node in the given context.
Parameters
node:INode — The node.
| |
context:GraphMLWriteContext — The write context.
|
Boolean — true if this instance can serialize the given node's style.
|
| getElementName | () | method |
override public function getElementName(item:Object):StringReturns the element name associated with the given item and this serializer.
Parameters
item:Object — The item to be serialized.
|
String — GraphMLConstants.Y_GROUP_NODE
|
| getElementNames | () | method |
override public function getElementNames():ArrayReturns an array with the element names this serializer can handle
ReturnsArray — An array with GraphMLConstants.Y_GROUP_NODE
|
| getStyleClass | () | method |
override public function getStyleClass():ClassReturns the class this serializer can handle.
ReturnsClass — com.yworks.graph.drawing.compat.JavaGroupNodeStyle
|
| parse | () | method |
override public function parse(style:INodeStyle, layout:IMutableRectangle, element:XML, context:GraphMLParseContext):voidParses 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):voidWrite 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.
|