|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecty.io.graphml.output.AbstractOutputHandler
com.yworks.yfiles.server.graphml.flexio.SharedDataOutputHandler
Output handler that enables writing of shared references.
| Nested Class Summary | |
static interface |
SharedDataOutputHandler.SharingRegistry
|
| Constructor Summary | |
SharedDataOutputHandler(java.lang.Object nodeStyleDpKey,
java.lang.Object edgeStyleDpKey,
java.lang.Object edgeLabelsDpKey,
java.lang.Object nodeLabelsDpKey)
Create a new output handler for writing shared data. |
|
| Method Summary | |
void |
addSharedInstance(java.lang.Object instance)
Add a shared instance. |
WritePrecedence |
getPrecedence()
This handler shall write before its children. |
SerializationHandler |
getSerializer()
Returns a serializer that writes xml elements which reference shared instances. |
protected java.lang.Object |
getValue(GraphMLWriteContext context,
java.lang.Object key)
|
protected void |
handleSharedObject(java.lang.Object toShare,
SharedDataOutputHandler.SharingRegistry registry)
Allows to customize sharing for objects that are shared per default. |
void |
setCommitLabelLayouts(boolean commitLabelLayouts)
|
protected void |
writeValueCore(GraphMLWriteContext context,
java.lang.Object data)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SharedDataOutputHandler(java.lang.Object nodeStyleDpKey,
java.lang.Object edgeStyleDpKey,
java.lang.Object edgeLabelsDpKey,
java.lang.Object nodeLabelsDpKey)
nodeStyleDpKey - The key for the data provider that stores node styles.edgeStyleDpKey - The key for the data provider that stores edge styles.edgeLabelsDpKey - The key for the data provider that stores lists of edge labels.nodeLabelsDpKey - The key for the data provider that stores lists of node labels.| Method Detail |
public void setCommitLabelLayouts(boolean commitLabelLayouts)
public void addSharedInstance(java.lang.Object instance)
instance - an instance that should be considered for sharing.
protected void handleSharedObject(java.lang.Object toShare,
SharedDataOutputHandler.SharingRegistry registry)
toShare - An object that is considered for sharing, e.g. styles, user tags,
label model parameters.registry - A registry for objects that will be considered for sharing.
protected java.lang.Object getValue(GraphMLWriteContext context,
java.lang.Object key)
throws GraphMLWriteException
GraphMLWriteException
protected void writeValueCore(GraphMLWriteContext context,
java.lang.Object data)
throws GraphMLWriteException
GraphMLWriteExceptionpublic SerializationHandler getSerializer()
public WritePrecedence getPrecedence()
WritePrecedence.BEFORE_CHILDRENWritePrecedence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||