Search this API

y.io.graphml.graph2d
Class GenericGroupNodeRealizerSerializer

java.lang.Object
  extended by y.io.graphml.graph2d.AbstractNodeRealizerSerializer
      extended by y.io.graphml.graph2d.GenericNodeRealizerSerializer
          extended by y.io.graphml.graph2d.GenericGroupNodeRealizerSerializer
All Implemented Interfaces:
NodeRealizerSerializer
Direct Known Subclasses:
TableGroupNodeRealizerSerializer

public class GenericGroupNodeRealizerSerializer
extends GenericNodeRealizerSerializer

Serializer for instances of GenericGroupNodeRealizer.

 
Your browser does not support SVG content.

Nested Class Summary
 
Nested classes/interfaces inherited from class y.io.graphml.graph2d.GenericNodeRealizerSerializer
GenericNodeRealizerSerializer.ConfigurationFactory
 
Constructor Summary
GenericGroupNodeRealizerSerializer()
           
 
Method Summary
 java.lang.String getName()
          Returns the name of the XML element tag which denotes this type of realizer.
 java.lang.Class getRealizerClass()
          Returns the class of which the realizer is an instance of.
 void parse(NodeRealizer nr, org.w3c.dom.Node domNode, GraphMLParseContext context)
          Parses the properties into an instance of NodeRealizer.
 void write(NodeRealizer nr, XmlWriter writer, GraphMLWriteContext context)
          Writes the realizer element's content.
 
Methods inherited from class y.io.graphml.graph2d.GenericNodeRealizerSerializer
getNamespaceURI, getObjectStringConverter, parseStyleProperties, parseUserData, writeAttributes, writeStyleProperties, writeUserData
 
Methods inherited from class y.io.graphml.graph2d.AbstractNodeRealizerSerializer
canHandle, canHandle, createRealizerInstance, getNamespacePrefix, parseLabel, parseNodePorts, writeBorder, writeFill, writeNodeLabel, writeNodePorts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericGroupNodeRealizerSerializer

public GenericGroupNodeRealizerSerializer()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: NodeRealizerSerializer
Returns the name of the XML element tag which denotes this type of realizer.

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

getRealizerClass

public java.lang.Class getRealizerClass()
Description copied from interface: NodeRealizerSerializer
Returns the class of which the realizer is an instance of.

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

write

public void write(NodeRealizer nr,
                  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 GenericNodeRealizerSerializer
Parameters:
nr - The Realizer to write.
writer - The XmlWriter for the serialization.
context - The current write context.
Throws:
GraphMLWriteException

parse

public void parse(NodeRealizer nr,
                  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 GenericNodeRealizerSerializer
Parameters:
nr - 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.