com.yworks.yfiles.server.graphml.flexio
Class StyleSerializer

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

public class StyleSerializer
extends AbstractSerializer

Serializer that delegates writing of style instances to registered SerializationHandler but does serializes them itself it the style is only a DocumentFragment.


Constructor Summary
StyleSerializer()
           
 
Method Summary
 boolean canHandle(SerializationEvent e)
          Predicate member method to determine whether this instance should react to a given SerializationEvent.
 void serializeItem(java.lang.Object item, XmlWriter writer, GraphMLWriteContext context)
           
 
Methods inherited from class y.io.graphml.output.AbstractSerializer
onHandleSerialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleSerializer

public StyleSerializer()
Method Detail

canHandle

public boolean canHandle(SerializationEvent e)
Predicate member method to determine whether this instance should react to a given SerializationEvent.

Parameters:
e - The event data.
Returns:
true if the item is either an INodeStyle, IEdgeStyle or a DocumentFragment.
See Also:
INodeStyle, IEdgeStyle, DocumentFragment

serializeItem

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


Copyright © 2000-2013 yWorks GmbH. All rights reserved