Search this API

y.view
Interface NodePort.UserDataHandler

All Known Implementing Classes:
SimpleUserDataHandler
Enclosing class:
NodePort

public static interface NodePort.UserDataHandler

This interface is used by NodePort to delegate the copying of any user-defined data to. Registered implementations are responsible for creating appropriate copies of the user-defined data.

 

Method Summary
 java.lang.Object copyUserData(NodePort srcPort, java.lang.Object srcData, NodePort tgtPort)
          Creates a copy of the specified user data that is suitable for the specified target port instance.
 

Method Detail

copyUserData

java.lang.Object copyUserData(NodePort srcPort,
                              java.lang.Object srcData,
                              NodePort tgtPort)
Creates a copy of the specified user data that is suitable for the specified target port instance.

Parameters:
srcPort - the port instance whose user data is copied.
srcData - the user data that has to be copied.
tgtPort - the port instance for which the copy is created.
Returns:
a copy of the specified user data.

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