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
 Object copyUserData(NodePort srcPort, Object srcData, NodePort tgtPort)
          Creates a copy of the specified user data that is suitable for the specified target port instance.
 

Method Detail

copyUserData

Object copyUserData(NodePort srcPort,
                    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-2013,
yWorks GmbH.
All rights reserved.