com.yworks.yfiles.server.graphml.flexio.deserializer
Class TextLayoutFormatDeserializer

java.lang.Object
  extended byy.io.graphml.input.AbstractDeserializer
      extended bycom.yworks.yfiles.server.graphml.flexio.deserializer.AbstractDeserializer
          extended bycom.yworks.yfiles.server.graphml.flexio.deserializer.TextLayoutFormatDeserializer
All Implemented Interfaces:
DeserializationHandler, java.util.EventListener

public class TextLayoutFormatDeserializer
extends AbstractDeserializer

A deserializer 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
TextLayoutFormatDeserializer()
           
 
Method Summary
 java.lang.Object deserializeNode(org.w3c.dom.Node xmlNode, GraphMLParseContext context)
           
 java.lang.String getElementName(GraphMLParseContext context)
          The local name that the node must satisfy if it should be deserialized.
 java.lang.String getXmlNamespaceURI(GraphMLParseContext context)
          The namespace URI that the node must satisfy if it should be deserialized.
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.deserializer.AbstractDeserializer
canHandle, onHandleDeserialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextLayoutFormatDeserializer

public TextLayoutFormatDeserializer()
Method Detail

getElementName

public java.lang.String getElementName(GraphMLParseContext context)
Description copied from class: AbstractDeserializer
The local name that the node must satisfy if it should be deserialized. This method is called by AbstractDeserializer.canHandle(y.io.graphml.input.DeserializationEvent).

Specified by:
getElementName in class AbstractDeserializer
Parameters:
context - The parse context.
Returns:
The local name that the node must satisfy if it should be deserialized.

getXmlNamespaceURI

public java.lang.String getXmlNamespaceURI(GraphMLParseContext context)
Description copied from class: AbstractDeserializer
The namespace URI that the node must satisfy if it should be deserialized.

Overrides:
getXmlNamespaceURI in class AbstractDeserializer
Returns:
NamespaceConstants.YFILES_JAVA_NS

deserializeNode

public java.lang.Object deserializeNode(org.w3c.dom.Node xmlNode,
                                        GraphMLParseContext context)
                                 throws GraphMLParseException
Throws:
GraphMLParseException


Copyright © 2000-2013 yWorks GmbH. All rights reserved