Search this API

y.io.graphml.graph2d
Class NodeLabelDeserializer.SmartNodeLabelModelDeserializer

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

public static class NodeLabelDeserializer.SmartNodeLabelModelDeserializer
extends java.lang.Object
implements DeserializationHandler

Handles deserialization of SmartNodeLabelModel instances and their model parameters.

 
Your browser does not support SVG content.

Constructor Summary
NodeLabelDeserializer.SmartNodeLabelModelDeserializer()
           
 
Method Summary
protected  java.lang.Object createModel(org.w3c.dom.Node node, GraphMLParseContext context)
          Creates a SmartNodeLabelModel with values from the graphML structure.
protected  java.lang.Object createParameter(org.w3c.dom.Node node, GraphMLParseContext context)
          Creates a model parameter for a SmartNodeLabelModel 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

NodeLabelDeserializer.SmartNodeLabelModelDeserializer

public NodeLabelDeserializer.SmartNodeLabelModelDeserializer()
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 SmartNodeLabelModel 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 SmartNodeLabelModel 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 SmartNodeLabelModel

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