|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface YLabel.UserDataHandler
This interface is used during YGF serialization to delegate the copying and serialization/deserialization of any user-defined data to. Registered implementations of this interface will be used to perform the actual serialization and deserialization of the user-defined data object. Additionally, implementations are responsible for creating appropriate copies of the user-defined data.
Method Summary | |
---|---|
java.lang.Object |
copyUserData(YLabel srcContext,
java.lang.Object srcData,
YLabel targetContext)
Copies the user-defined data appropriately. |
java.lang.Object |
readUserData(YLabel context,
java.io.ObjectInputStream ois)
Retrieves the user-defined data object from the ObjectInputStream . |
void |
storeUserData(YLabel context,
java.lang.Object userData,
java.io.ObjectOutputStream oos)
Stores the user-defined data object to the ObjectOutputStream . |
Method Detail |
---|
void storeUserData(YLabel context, java.lang.Object userData, java.io.ObjectOutputStream oos) throws java.io.IOException
ObjectOutputStream
. Used for YGF serialization.
context
- the label to store the user-defined data foruserData
- the user-defined data objectoos
- the stream to store the user-defined data object to
java.io.IOException
- if an exception occursjava.lang.Object readUserData(YLabel context, java.io.ObjectInputStream ois) throws java.io.IOException
ObjectInputStream
. Used for YGF deserialization.
context
- the label to read the user-defined data forois
- the stream to read the user-defined data object from
java.io.IOException
- if an exception occursjava.lang.Object copyUserData(YLabel srcContext, java.lang.Object srcData, YLabel targetContext)
srcContext
- the label that will be copiedsrcData
- the data associated with the srcContexttargetContext
- the label the copy will be associated with
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |