com.yworks.yfiles.server.graphml.flexio.serializer
Class TextLayoutFormatSerializer
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.TextLayoutFormatSerializer
- All Implemented Interfaces:
- java.util.EventListener, SerializationHandler
- public class TextLayoutFormatSerializer
- extends AbstractSerializer
A serializer which can handle TextLayoutFormat
.
The TextLayoutFormat
is serialized as element with the name
TextLayoutFormat
. All properties with a defined value
are serialized as attributes with the value represented by a string.
Example:
<yflex:TextLayoutFormat fontFamily="dialog" fontSize="12" color="#0000ff"/>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextLayoutFormatSerializer
public TextLayoutFormatSerializer()
getElementName
public java.lang.String getElementName(GraphMLWriteContext context)
- Description copied from class:
AbstractSerializer
- The local name of the serialized element node.
- Specified by:
getElementName
in class AbstractSerializer
- Parameters:
context
- The write context.
- Returns:
- The local name of the serialized element node.
getNamespace
public java.lang.String getNamespace(GraphMLWriteContext context)
- Description copied from class:
AbstractSerializer
- The namespace of the serialized element node.
- Overrides:
getNamespace
in class AbstractSerializer
- Parameters:
context
- The write context.
- Returns:
- y.io.graphml.NamespaceConstants.YFILES_JAVA_NS
getSerializationType
protected java.lang.Class getSerializationType(GraphMLWriteContext context)
serializeItem
public void serializeItem(java.lang.Object item,
XmlWriter writer,
GraphMLWriteContext context)
throws GraphMLWriteException
- Throws:
GraphMLWriteException
Copyright © 2000-2013 yWorks GmbH. All
rights reserved