Search this API

y.io.graphml.graph2d
Class EdgeLabelDeserializer.PreferredPlacementDescriptorDeserializer

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

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

Handles deserialization of PreferredPlacementDescriptor instances.

 

Constructor Summary
EdgeLabelDeserializer.PreferredPlacementDescriptorDeserializer()
           
 
Method Summary
protected  java.lang.Object createPreferredPlacementDescriptor(org.w3c.dom.Node node, GraphMLParseContext context)
          Creates a PreferredPlacementDescriptor instance 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.PreferredPlacementDescriptorDeserializer

public EdgeLabelDeserializer.PreferredPlacementDescriptorDeserializer()
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

createPreferredPlacementDescriptor

protected java.lang.Object createPreferredPlacementDescriptor(org.w3c.dom.Node node,
                                                              GraphMLParseContext context)
Creates a PreferredPlacementDescriptor instance 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 descriptor

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