Search this API

y.view
Class PortLabelModel.Handler

java.lang.Object
  extended by y.view.PortLabelModel.Handler
All Implemented Interfaces:
java.util.EventListener, DeserializationHandler, SerializationHandler
Enclosing class:
PortLabelModel

public static final class PortLabelModel.Handler
extends java.lang.Object
implements SerializationHandler, DeserializationHandler

Provides GraphML (de-)serialization support for PortLabelModel and its parameters.

 

Constructor Summary
PortLabelModel.Handler()
           
 
Method Summary
 void onHandleDeserialization(DeserializationEvent event)
          Callback method to handle the deserialization of the data contained in event.
 void onHandleSerialization(SerializationEvent event)
          Callback method to handle the serialization 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

PortLabelModel.Handler

public PortLabelModel.Handler()
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

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

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