com.yworks.yfiles.server.graphml.flexio.serializer
Class PolylineEdgeStyleSerializer

java.lang.Object
  extended byy.io.graphml.output.AbstractSerializer
      extended byy.io.graphml.output.TypeBasedSerializer
          extended bycom.yworks.yfiles.server.graphml.flexio.serializer.AbstractSerializer
              extended bycom.yworks.yfiles.server.graphml.flexio.serializer.AbstractEdgeStyleSerializer
                  extended bycom.yworks.yfiles.server.graphml.flexio.serializer.PolylineEdgeStyleSerializer
All Implemented Interfaces:
java.util.EventListener, SerializationHandler

public class PolylineEdgeStyleSerializer
extends AbstractEdgeStyleSerializer

Serializer for PolylineEdgeStyle that delegates the serialzation of the style's stroke to the context.


Constructor Summary
PolylineEdgeStyleSerializer()
           
 
Method Summary
 java.lang.String getElementName(GraphMLWriteContext context)
          The local name of the serialized element node.
protected  java.lang.Class getSerializationType(GraphMLWriteContext context)
          Gets the type for which this instance should handle serialization.
protected  void writeStyle(GraphMLWriteContext context, IEdgeStyle style, XmlWriter writer)
          Writes the passed edge style.
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.serializer.AbstractEdgeStyleSerializer
serializeItem
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.serializer.AbstractSerializer
getNamespace, onHandleSerialization
 
Methods inherited from class y.io.graphml.output.TypeBasedSerializer
canHandle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolylineEdgeStyleSerializer

public PolylineEdgeStyleSerializer()
Method Detail

writeStyle

protected void writeStyle(GraphMLWriteContext context,
                          IEdgeStyle style,
                          XmlWriter writer)
Description copied from class: AbstractEdgeStyleSerializer
Writes the passed edge style.

Specified by:
writeStyle in class AbstractEdgeStyleSerializer
Parameters:
context - The write context.
style - The edge style to serialize.
writer - The writer to use for the serialization.

getElementName

public java.lang.String getElementName(GraphMLWriteContext context)
The local name of the serialized element node.

Specified by:
getElementName in class AbstractSerializer
Parameters:
context - The write context.
Returns:
'IPolylineEdgeStyle'

getSerializationType

protected java.lang.Class getSerializationType(GraphMLWriteContext context)
Gets the type for which this instance should handle serialization.

Parameters:
context - The current write context.
Returns:
PolylineEdgeStyle.class


Copyright © 2000-2013 yWorks GmbH. All rights reserved