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

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.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"/>
 


Constructor Summary
TextLayoutFormatSerializer()
           
 
Method Summary
 java.lang.String getElementName(GraphMLWriteContext context)
          The local name of the serialized element node.
 java.lang.String getNamespace(GraphMLWriteContext context)
          The namespace of the serialized element node.
protected  java.lang.Class getSerializationType(GraphMLWriteContext context)
           
 void serializeItem(java.lang.Object item, XmlWriter writer, GraphMLWriteContext context)
           
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.serializer.AbstractSerializer
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

TextLayoutFormatSerializer

public TextLayoutFormatSerializer()
Method Detail

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