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

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
All Implemented Interfaces:
java.util.EventListener, SerializationHandler
Direct Known Subclasses:
PolylineEdgeStyleSerializer

public abstract class AbstractEdgeStyleSerializer
extends AbstractSerializer

Abstract serialized for IEdgeStyle that writes elements for the source and target arrow of the edge and delegates the serialization of the edge style to writeStyle(y.io.graphml.output.GraphMLWriteContext, com.yworks.yfiles.server.graphml.flexio.data.IEdgeStyle, y.io.graphml.output.XmlWriter).


Constructor Summary
AbstractEdgeStyleSerializer()
           
 
Method Summary
 void serializeItem(java.lang.Object item, XmlWriter writer, GraphMLWriteContext context)
           
protected abstract  void writeStyle(GraphMLWriteContext context, IEdgeStyle style, XmlWriter writer)
          Writes the passed edge style.
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.serializer.AbstractSerializer
getElementName, getNamespace, onHandleSerialization
 
Methods inherited from class y.io.graphml.output.TypeBasedSerializer
canHandle, getSerializationType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEdgeStyleSerializer

public AbstractEdgeStyleSerializer()
Method Detail

serializeItem

public void serializeItem(java.lang.Object item,
                          XmlWriter writer,
                          GraphMLWriteContext context)
                   throws GraphMLWriteException
Throws:
GraphMLWriteException

writeStyle

protected abstract void writeStyle(GraphMLWriteContext context,
                                   IEdgeStyle style,
                                   XmlWriter writer)
Writes the passed edge style.

Parameters:
context - The write context.
style - The edge style to serialize.
writer - The writer to use for the serialization.


Copyright © 2000-2013 yWorks GmbH. All rights reserved