com.yworks.yfiles.server.graphml.flexio
Class SharedDataOutputHandler
java.lang.Object
yext.graphml.writer.AbstractOutputHandler
com.yworks.yfiles.server.graphml.flexio.SharedDataOutputHandler
- All Implemented Interfaces:
- OutputHandler, Precedence
- public class SharedDataOutputHandler
- extends AbstractOutputHandler
- implements Precedence
Output handler that enables writing of shared references.
This input handler requires a non-null SerializerRegistry
instance to be returned from the GraphMLParseContext.lookup(Class)
of the write context.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SharedDataOutputHandler
public SharedDataOutputHandler(Object nodeStyleDpKey,
Object edgeStyleDpKey,
Object edgeLabelsDpKey,
Object nodeLabelsDpKey)
- Create a new output handler for writing shared data.
- Parameters:
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.
setCommitLabelLayouts
public void setCommitLabelLayouts(boolean commitLabelLayouts)
addSharedInstance
public void addSharedInstance(Object instance)
- Add a shared instance.
printDataOutput
public void printDataOutput(GraphMLWriteContext context,
Graph graph,
Object nodeedge,
XmlWriter ips)
getSerializer
public ISerializer getSerializer()
- Returns a serializer that writes xml elements which reference shared instances.
getPrecedence
public int getPrecedence()
- Specified by:
getPrecedence in interface Precedence
printKeyAttributes
public void printKeyAttributes(GraphMLWriteContext context,
XmlWriter writer)
- Specified by:
printKeyAttributes in interface OutputHandler
printKeyOutput
public void printKeyOutput(GraphMLWriteContext context,
XmlWriter writer)
- Specified by:
printKeyOutput in interface OutputHandler
Copyright © 2000-2007 yWorks GmbH. All
rights reserved