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

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

public class GeneralPathSerializer
extends AbstractSerializer

Serializer for GeneralPath.


Field Summary
static java.lang.String GENERAL_PATH_DOTNET_OP_CUBIC_TO
          Element name to encode the GeneralPath#cubicTo operation that is supported by the yFiles.NET GraphML format.
static java.lang.String GENERAL_PATH_ELEMENT
          Constant for the top level element name.
static java.lang.String GENERAL_PATH_OP_CLOSE
          Element name to encode the GeneralPath#close operation
static java.lang.String GENERAL_PATH_OP_CURVETO
          Element name to encode the GeneralPath#curveTo operation
static java.lang.String GENERAL_PATH_OP_LINETO
          Element name to encode the GeneralPath#lineTo operation
static java.lang.String GENERAL_PATH_OP_MOVETO
          Element name to encode the GeneralPath#moveTo operation
 
Constructor Summary
GeneralPathSerializer()
           
 
Method Summary
 java.lang.String getElementName(GraphMLWriteContext context)
          The local name of the serialized element node.
protected  java.lang.Class getSerializationType(GraphMLWriteContext context)
          Gets the type for which this instance should handle serialization.
 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 y.io.graphml.output.TypeBasedSerializer
canHandle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERAL_PATH_ELEMENT

public static final java.lang.String GENERAL_PATH_ELEMENT
Constant for the top level element name.

See Also:
Constant Field Values

GENERAL_PATH_OP_LINETO

public static final java.lang.String GENERAL_PATH_OP_LINETO
Element name to encode the GeneralPath#lineTo operation

See Also:
Constant Field Values

GENERAL_PATH_OP_MOVETO

public static final java.lang.String GENERAL_PATH_OP_MOVETO
Element name to encode the GeneralPath#moveTo operation

See Also:
Constant Field Values

GENERAL_PATH_OP_CURVETO

public static final java.lang.String GENERAL_PATH_OP_CURVETO
Element name to encode the GeneralPath#curveTo operation

See Also:
Constant Field Values

GENERAL_PATH_DOTNET_OP_CUBIC_TO

public static final java.lang.String GENERAL_PATH_DOTNET_OP_CUBIC_TO
Element name to encode the GeneralPath#cubicTo operation that is supported by the yFiles.NET GraphML format.

See Also:
Constant Field Values

GENERAL_PATH_OP_CLOSE

public static final java.lang.String GENERAL_PATH_OP_CLOSE
Element name to encode the GeneralPath#close operation

See Also:
Constant Field Values
Constructor Detail

GeneralPathSerializer

public GeneralPathSerializer()
Method Detail

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:
'GeneralPath'

serializeItem

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

getSerializationType

protected java.lang.Class getSerializationType(GraphMLWriteContext context)
Gets the type for which this instance should handle serialization.

Parameters:
context - The current write context.
Returns:
GeneralPath.class


Copyright © 2000-2013 yWorks GmbH. All rights reserved