Search this API

y.io.graphml.graph2d
Class EdgeLabelDeserializer.SmartEdgeLabelModelDeserializer

java.lang.Object
  extended by y.io.graphml.graph2d.EdgeLabelDeserializer.SmartEdgeLabelModelDeserializer
All Implemented Interfaces:
java.util.EventListener, DeserializationHandler
Enclosing class:
EdgeLabelDeserializer

public static class EdgeLabelDeserializer.SmartEdgeLabelModelDeserializer
extends java.lang.Object
implements DeserializationHandler

Handles deserialization of SmartEdgeLabelModel instances and their model parameters.

 
Your browser does not support SVG content.

Constructor Summary
EdgeLabelDeserializer.SmartEdgeLabelModelDeserializer()
           
 
Method Summary
protected  java.lang.Object createModel(org.w3c.dom.Node node, GraphMLParseContext context)
          Creates a SmartEdgeLabelModel with values from the graphML structure.
protected  java.lang.Object createParameter(org.w3c.dom.Node node, GraphMLParseContext context)
          Creates a model parameter for a SmartEdgeLabelModel with values from the graphML structure.
 void onHandleDeserialization(DeserializationEvent event)
          Callback method to handle the deserialization of the data contained in event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeLabelDeserializer.SmartEdgeLabelModelDeserializer

public EdgeLabelDeserializer.SmartEdgeLabelModelDeserializer()
Method Detail

onHandleDeserialization

public void onHandleDeserialization(DeserializationEvent event)
                             throws GraphMLParseException
Description copied from interface: DeserializationHandler
Callback method to handle the deserialization of the data contained in event.

If this callback could deserialize the data in event, it should assign the deserialization result to the event's DeserializationEvent.setResult(Object) property.

Specified by:
onHandleDeserialization in interface DeserializationHandler
Parameters:
event - Event that contains all data that is needed for deserialization.
Throws:
GraphMLParseException

createParameter

protected java.lang.Object createParameter(org.w3c.dom.Node node,
                                           GraphMLParseContext context)
Creates a model parameter for a SmartEdgeLabelModel with values from the graphML structure.

Parameters:
node - The node where the model parameter will be set
context - The current parse context
Returns:
The new model parameter

createModel

protected java.lang.Object createModel(org.w3c.dom.Node node,
                                       GraphMLParseContext context)
Creates a SmartEdgeLabelModel with values from the graphML structure.

Parameters:
node - The node where the model parameter will be set
context - The current parse context
Returns:
The new SmartEdgeLabelModel

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.