|
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 | |
|---|---|
Object |
copyUserData(YLabel srcContext,
Object srcData,
YLabel targetContext)
Copies the user-defined data appropriately. |
Object |
readUserData(YLabel context,
ObjectInputStream ois)
Retrieves the user-defined data object from the ObjectInputStream. |
void |
storeUserData(YLabel context,
Object userData,
ObjectOutputStream oos)
Stores the user-defined data object to the ObjectOutputStream. |
| Method Detail |
|---|
void storeUserData(YLabel context,
Object userData,
ObjectOutputStream oos)
throws IOException
ObjectOutputStream. Used for YGF serialization.
IOException - if an exception occurscontext - the label to store the user-defined data foruserData - the user-defined data objectoos - the stream to store the user-defined data object to
Object readUserData(YLabel context,
ObjectInputStream ois)
throws IOException
ObjectInputStream. Used for YGF deserialization.
IOException - if an exception occurscontext - the label to read the user-defined data forois - the stream to read the user-defined data object from
Object copyUserData(YLabel srcContext,
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-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||