Search this API

y.io.graphml.graph2d
Class GroupNodeRealizerSerializer

java.lang.Object
  extended by y.io.graphml.graph2d.AbstractNodeRealizerSerializer
      extended by y.io.graphml.graph2d.ShapeNodeRealizerSerializer
          extended by y.io.graphml.graph2d.GroupNodeRealizerSerializer
All Implemented Interfaces:
NodeRealizerSerializer

public class GroupNodeRealizerSerializer
extends ShapeNodeRealizerSerializer

Serializer for instances of GroupNodeRealizer.

 
Your browser does not support SVG content.

Constructor Summary
GroupNodeRealizerSerializer()
           
 
Method Summary
 java.lang.String getName()
          Returns the string ShapeNode.
 java.lang.Class getRealizerClass()
          Returns class ShapeNodeRealizer.
 void parse(NodeRealizer realizer, org.w3c.dom.Node domNode, GraphMLParseContext context)
          Parses the properties into an instance of NodeRealizer.
 void write(NodeRealizer realizer, XmlWriter writer, GraphMLWriteContext context)
          Writes the realizer element's content.
 
Methods inherited from class y.io.graphml.graph2d.ShapeNodeRealizerSerializer
decodeShapeType, encodeShapeType, getNamespaceURI, writeBorder
 
Methods inherited from class y.io.graphml.graph2d.AbstractNodeRealizerSerializer
canHandle, canHandle, createRealizerInstance, getNamespacePrefix, parseLabel, parseNodePorts, writeAttributes, writeFill, writeNodeLabel, writeNodePorts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupNodeRealizerSerializer

public GroupNodeRealizerSerializer()
Method Detail

getName

public java.lang.String getName()
Description copied from class: ShapeNodeRealizerSerializer
Returns the string ShapeNode.

Specified by:
getName in interface NodeRealizerSerializer
Overrides:
getName in class ShapeNodeRealizerSerializer
Returns:
The name of the XML element

getRealizerClass

public java.lang.Class getRealizerClass()
Description copied from class: ShapeNodeRealizerSerializer
Returns class ShapeNodeRealizer.

Specified by:
getRealizerClass in interface NodeRealizerSerializer
Overrides:
getRealizerClass in class ShapeNodeRealizerSerializer
Returns:
The target class of the realizer

write

public void write(NodeRealizer realizer,
                  XmlWriter writer,
                  GraphMLWriteContext context)
           throws GraphMLWriteException
Description copied from interface: NodeRealizerSerializer
Writes the realizer element's content.

Specified by:
write in interface NodeRealizerSerializer
Overrides:
write in class ShapeNodeRealizerSerializer
Parameters:
realizer - The Realizer to write.
writer - The XmlWriter for the serialization.
context - The current write context.
Throws:
GraphMLWriteException

parse

public void parse(NodeRealizer realizer,
                  org.w3c.dom.Node domNode,
                  GraphMLParseContext context)
           throws GraphMLParseException
Description copied from interface: NodeRealizerSerializer
Parses the properties into an instance of NodeRealizer.

Specified by:
parse in interface NodeRealizerSerializer
Overrides:
parse in class ShapeNodeRealizerSerializer
Parameters:
realizer - An existing NodeRealizer instance which is configured.
domNode - The XML node containing the realizer data.
context - The current parse context.
Throws:
GraphMLParseException

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.