|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.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. |
void |
addSharedInstanceProvider(ISharedInstanceProvider provider)
Recursively adds all shared instances of the passed provider. |
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)
|
boolean |
isCommitPortLocations()
|
void |
onQueryOutputHandler(QueryOutputHandlersEvent event)
|
void |
setCommitLabelLayouts(boolean commitLabelLayouts)
|
void |
setCommitPortLocations(boolean commitPortLocations)
|
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 boolean isCommitPortLocations()
public void setCommitPortLocations(boolean commitPortLocations)
public void onQueryOutputHandler(QueryOutputHandlersEvent event) throws GraphMLWriteException
GraphMLWriteException
public void addSharedInstanceProvider(ISharedInstanceProvider provider)
provider
- An provider for instances that should be considered for sharing.public void addSharedInstance(java.lang.Object instance)
instance
- an instance that should 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
GraphMLWriteException
public SerializationHandler getSerializer()
public WritePrecedence getPrecedence()
WritePrecedence.BEFORE_CHILDREN
WritePrecedence
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |