Search this API

y.io.graphml.output
Interface SerializationHandler

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
AbstractEdgeLayoutSerializer, AbstractNodeLayoutSerializer, AbstractSerializer, AutoRotationSliderEdgeLabelModel.Handler, EdgeLabelSerializer, EdgeLabelSerializer.PreferredPlacementDescriptorSerializer, EdgeLabelSerializer.RotatedDiscreteEdgeLabelModelSerializer, EdgeLabelSerializer.RotatedSliderEdgeLabelModelSerializer, EdgeLabelSerializer.SmartEdgeLabelModelSerializer, NodeLabelSerializer, NodeLabelSerializer.SmartNodeLabelModelSerializer, NodeScaledPortLocationModel.Handler, PortLabelModel.Handler, TableStyle.SimpleStyleSerializer, TypeBasedSerializer

public interface SerializationHandler
extends java.util.EventListener

Event listener interface for SerializationEvents.

Implementing this interface allows to perform custom serialization code for the data contained in SerializationEvent.getItem().

Implementations can be registered with GraphMLHandler.addSerializationHandler(y.io.graphml.output.SerializationHandler) or GraphMLWriter.addSerializationHandler(y.io.graphml.output.SerializationHandler) or directly for a specific attribute with ComplexDataProviderOutputHandler.setSerializer(SerializationHandler). Calls to GraphMLWriteContext.serialize(Object) ultimately raise a SerializationEvent, which can be handled be registered implementations of this interface.

 
Your browser does not support SVG content.

Method Summary
 void onHandleSerialization(SerializationEvent event)
          Callback method to handle the serialization of the data contained in event.
 

Method Detail

onHandleSerialization

void onHandleSerialization(SerializationEvent event)
                           throws GraphMLWriteException
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.

Parameters:
event - Event that contains all data that is needed for serialization.
Throws:
GraphMLWriteException

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