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

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.FillSerializer
All Implemented Interfaces:
java.util.EventListener, SerializationHandler

public class FillSerializer
extends AbstractSerializer

Serializer for IFill.


Constructor Summary
FillSerializer()
           
 
Method Summary
 boolean canHandle(SerializationEvent e)
          Checks whether the current item has the correct type.
 java.lang.String getElementName(GraphMLWriteContext context)
          The local name of the serialized element node.
static FillSerializer getInstance()
           
protected  java.lang.Class getSerializationType(GraphMLWriteContext context)
          Method isn't used as canHandle is overridden.
 void serializeItem(java.lang.Object item, XmlWriter writer, GraphMLWriteContext context)
           
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.serializer.AbstractSerializer
getNamespace, onHandleSerialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FillSerializer

public FillSerializer()
Method Detail

getInstance

public static FillSerializer getInstance()

canHandle

public boolean canHandle(SerializationEvent e)
Checks whether the current item has the correct type.

Parameters:
e - The current event argument
Returns:
true if the item is an IFill.

serializeItem

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

getElementName

public java.lang.String getElementName(GraphMLWriteContext context)
The local name of the serialized element node.

Specified by:
getElementName in class AbstractSerializer
Parameters:
context - The write context.
Returns:
'Brush'

getSerializationType

protected java.lang.Class getSerializationType(GraphMLWriteContext context)
Method isn't used as canHandle is overridden.

Parameters:
context - The current write context.
Returns:
null


Copyright © 2000-2013 yWorks GmbH. All rights reserved