Search this API

y.io.graphml.graph2d
Class EdgeLabelSerializer.PreferredPlacementDescriptorSerializer

java.lang.Object
  extended by y.io.graphml.graph2d.EdgeLabelSerializer.PreferredPlacementDescriptorSerializer
All Implemented Interfaces:
java.util.EventListener, SerializationHandler
Enclosing class:
EdgeLabelSerializer

public static class EdgeLabelSerializer.PreferredPlacementDescriptorSerializer
extends java.lang.Object
implements SerializationHandler

Handles serialization of PreferredPlacementDescriptor instances.

 
Your browser does not support SVG content.

Constructor Summary
EdgeLabelSerializer.PreferredPlacementDescriptorSerializer()
           
 
Method Summary
 void onHandleSerialization(SerializationEvent event)
          Callback method to handle the serialization of the data contained in event.
protected  void serializeContent(PreferredPlacementDescriptor descriptor, XmlWriter writer, GraphMLWriteContext context)
          Serializes the PreferredPlacementDescriptor instance with all its fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeLabelSerializer.PreferredPlacementDescriptorSerializer

public EdgeLabelSerializer.PreferredPlacementDescriptorSerializer()
Method Detail

onHandleSerialization

public void onHandleSerialization(SerializationEvent event)
                           throws GraphMLWriteException
Description copied from interface: SerializationHandler
Callback method to handle the serialization of the data contained in event.

If this callback could serialize the data in event, it should set the SerializationEvent.setHandled(boolean) property to true to prevent further serialization code from processing this data.

Specified by:
onHandleSerialization in interface SerializationHandler
Parameters:
event - Event that contains all data that is needed for serialization.
Throws:
GraphMLWriteException

serializeContent

protected void serializeContent(PreferredPlacementDescriptor descriptor,
                                XmlWriter writer,
                                GraphMLWriteContext context)
Serializes the PreferredPlacementDescriptor instance with all its fields.

Parameters:
descriptor - The PreferredPlacementDescriptor to write
writer - The writer to use
context - The current write context

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