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

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.AbstractEdgeStyleDeserializer
              extended bycom.yworks.yfiles.server.graphml.flexio.deserializer.PolylineEdgeStyleDeserializer
All Implemented Interfaces:
DeserializationHandler, java.util.EventListener

public class PolylineEdgeStyleDeserializer
extends AbstractEdgeStyleDeserializer

Deserializer for PolylineEdgeStyle.


Constructor Summary
PolylineEdgeStyleDeserializer()
           
 
Method Summary
protected  IEdgeStyle deserializeStyle(GraphMLParseContext context, org.w3c.dom.Node xmlNode)
          Deserializes the inner edge style node not containing the arrows.
 java.lang.String getElementName(GraphMLParseContext context)
          Returns 'IPolylineEdgeStyle'.
protected  void setArrow(IEdgeStyle style, IArrow arrow, boolean atSource)
          Sets the arrows using the corresponding properties of the passed PolylineEdgeStyle.
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.deserializer.AbstractEdgeStyleDeserializer
deserializeNode
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.deserializer.AbstractDeserializer
canHandle, getXmlNamespaceURI, onHandleDeserialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolylineEdgeStyleDeserializer

public PolylineEdgeStyleDeserializer()
Method Detail

getElementName

public java.lang.String getElementName(GraphMLParseContext context)
Returns 'IPolylineEdgeStyle'.

Specified by:
getElementName in class AbstractDeserializer
Parameters:
context - The parse context.
Returns:
'IPolylineEdgeStyle'

setArrow

protected void setArrow(IEdgeStyle style,
                        IArrow arrow,
                        boolean atSource)
Sets the arrows using the corresponding properties of the passed PolylineEdgeStyle.

Specified by:
setArrow in class AbstractEdgeStyleDeserializer
Parameters:
style - The PolylineEdgeStyle to set the arrow.
arrow - The arrow to set.
atSource - true if the source arrow shall be set, false to set the target arrow.

deserializeStyle

protected IEdgeStyle deserializeStyle(GraphMLParseContext context,
                                      org.w3c.dom.Node xmlNode)
Description copied from class: AbstractEdgeStyleDeserializer
Deserializes the inner edge style node not containing the arrows.

Specified by:
deserializeStyle in class AbstractEdgeStyleDeserializer
Parameters:
context - The parse context.
xmlNode - The XML node to deserialize.
Returns:
The deserialized edge style.


Copyright © 2000-2013 yWorks GmbH. All rights reserved