com.yworks.yfiles.server.graphml.flexio.serializer
Class StrokeSerializer
java.lang.Object
y.io.graphml.output.AbstractSerializer
y.io.graphml.output.TypeBasedSerializer
com.yworks.yfiles.server.graphml.flexio.serializer.AbstractSerializer
com.yworks.yfiles.server.graphml.flexio.serializer.StrokeSerializer
- All Implemented Interfaces:
- java.util.EventListener, SerializationHandler
- public class StrokeSerializer
- extends AbstractSerializer
Serializer for Stroke.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrokeSerializer
public StrokeSerializer()
getInstance
public static StrokeSerializer getInstance()
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 iff this instance is an IStroke
getElementName
public java.lang.String getElementName(GraphMLWriteContext context)
- Never used as canHandle is overridden.
- Specified by:
getElementName in class AbstractSerializer
- Parameters:
context - The write context.
- Returns:
- 'Pen'
getSerializationType
protected java.lang.Class getSerializationType(GraphMLWriteContext context)
- Never used as canHandle is overridden
- Parameters:
context - The current write context.
- Returns:
- null
serializeItem
public void serializeItem(java.lang.Object item,
XmlWriter writer,
GraphMLWriteContext context)
throws GraphMLWriteException
- Throws:
GraphMLWriteException
Copyright © 2000-2013 yWorks GmbH. All
rights reserved