y.io.graphml.graph2d
Class EdgeLabelSerializer.RotatedDiscreteEdgeLabelModelSerializer
java.lang.Object
y.io.graphml.graph2d.EdgeLabelSerializer.RotatedDiscreteEdgeLabelModelSerializer
All Implemented Interfaces: java.util.EventListener, SerializationHandler
Enclosing class: EdgeLabelSerializer
public static class EdgeLabelSerializer.RotatedDiscreteEdgeLabelModelSerializer extends java.lang.Objectimplements SerializationHandler
Handles serialization of RotatedDiscreteEdgeLabelModel
instances and their model parameters.
Your browser does not support SVG content.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
EdgeLabelSerializer.RotatedDiscreteEdgeLabelModelSerializer
public EdgeLabelSerializer.RotatedDiscreteEdgeLabelModelSerializer ()
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
serializeParameter
protected void serializeParameter (y.layout.RotatedDiscreteEdgeLabelModel.ModelParameter parameter,
XmlWriter writer,
GraphMLWriteContext context)
serializeModel
protected void serializeModel (RotatedDiscreteEdgeLabelModel model,
XmlWriter writer,
GraphMLWriteContext context)