Search this API

y.io.graphml.graph2d
Class QuadCurveEdgeRealizerSerializer

java.lang.Object
  extended by y.io.graphml.graph2d.AbstractEdgeRealizerSerializer
      extended by y.io.graphml.graph2d.QuadCurveEdgeRealizerSerializer
All Implemented Interfaces:
EdgeRealizerSerializer

public class QuadCurveEdgeRealizerSerializer
extends AbstractEdgeRealizerSerializer

Serializer for instances of QuadCurveEdgeRealizer.

 

Constructor Summary
QuadCurveEdgeRealizerSerializer()
           
 
Method Summary
 java.lang.String getName()
          Returns the string QuadCurveEdge.
 java.lang.String getNamespaceURI()
          Returns the target namespace of the toplevel element
 java.lang.Class getRealizerClass()
          Returns class QuadCurveEdgeRealizer.
 void parse(EdgeRealizer er, org.w3c.dom.Node domNode, GraphMLParseContext context)
          Parses the properties from an instance of EdgeRealizer.
 void writeAttributes(EdgeRealizer er, XmlWriter writer, GraphMLWriteContext context)
          Writes the attributes of an EdgeRealizer element.
 
Methods inherited from class y.io.graphml.graph2d.AbstractEdgeRealizerSerializer
canHandle, canHandle, createRealizerInstance, getNamespacePrefix, parseLabel, parsePort, write, writeEdgeLabel, writePort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuadCurveEdgeRealizerSerializer

public QuadCurveEdgeRealizerSerializer()
Method Detail

getName

public java.lang.String getName()
Returns the string QuadCurveEdge.

Returns:
The name of the XML element

getNamespaceURI

public java.lang.String getNamespaceURI()
Description copied from interface: EdgeRealizerSerializer
Returns the target namespace of the toplevel element

Returns:
the target namespace of the toplevel element

getRealizerClass

public java.lang.Class getRealizerClass()
Returns class QuadCurveEdgeRealizer.

Returns:
The target class of the realizer

parse

public void parse(EdgeRealizer er,
                  org.w3c.dom.Node domNode,
                  GraphMLParseContext context)
           throws GraphMLParseException
Description copied from class: AbstractEdgeRealizerSerializer
Parses the properties from an instance of EdgeRealizer.

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

writeAttributes

public void writeAttributes(EdgeRealizer er,
                            XmlWriter writer,
                            GraphMLWriteContext context)
Description copied from interface: EdgeRealizerSerializer
Writes the attributes of an EdgeRealizer element.

Specified by:
writeAttributes in interface EdgeRealizerSerializer
Overrides:
writeAttributes in class AbstractEdgeRealizerSerializer
Parameters:
er - The Realizer to write.
writer - The XmlWriter for the serialization.
context - The current write context.

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