edu.uci.ics.jung.utils
Class UserDataContainer.CopyAction.Shared

java.lang.Object
  extended byedu.uci.ics.jung.utils.UserDataContainer.CopyAction.Shared
All Implemented Interfaces:
UserDataContainer.CopyAction
Enclosing class:
UserDataContainer.CopyAction

public static class UserDataContainer.CopyAction.Shared
extends java.lang.Object
implements UserDataContainer.CopyAction

Implements UserData.SHARED

Author:
danyelf
See Also:
UserData.SHARED

Nested Class Summary
 
Nested classes inherited from class edu.uci.ics.jung.utils.UserDataContainer.CopyAction
UserDataContainer.CopyAction.Clone, UserDataContainer.CopyAction.Remove, UserDataContainer.CopyAction.Shared
 
Constructor Summary
UserDataContainer.CopyAction.Shared()
           
 
Method Summary
 java.lang.Object onCopy(java.lang.Object value, UserDataContainer source, UserDataContainer target)
          The callback triggered when a UserDatum is copied.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDataContainer.CopyAction.Shared

public UserDataContainer.CopyAction.Shared()
Method Detail

onCopy

public java.lang.Object onCopy(java.lang.Object value,
                               UserDataContainer source,
                               UserDataContainer target)
Description copied from interface: UserDataContainer.CopyAction
The callback triggered when a UserDatum is copied. Implement this method to create your own CopyAction.

Specified by:
onCopy in interface UserDataContainer.CopyAction
Parameters:
value - The item of UserData that is being copied
source - The UserDataContainer that holds this datum
target - The UserDataContainer that will hold the new datum
Returns:
Object The copy of the UserData