|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectyext.graphml.writer.AbstractOutputHandler
com.yworks.yfiles.server.graphml.support.DocumentFragmentOutputHandler
com.yworks.yfiles.server.graphml.support.LabelCompatOutputHandler
An output handler that tries to commit the label model parameters for all labels in the graph that is being written to the xml fragments that were parsed when the graph was read.
| Constructor Summary | |
LabelCompatOutputHandler(Object dataProviderKey)
Creates a new instance that uses the DocumentFragements stored in the data provider with the given key |
|
| Method Summary | |
protected void |
commitLabelLayout(Node labelElement,
EdgeLabelLayout labelLayout,
Graph graph,
Edge edge)
Commit the model parameters of the given label element to the corresponding XML fragment. |
protected void |
commitLabelLayout(Node labelElement,
NodeLabelLayout labelLayout,
Graph graph,
Node node)
Commit the model parameters of the given label element to the corresponding XML fragment. |
protected void |
dumpNodes(XmlWriter writer,
Node rootNode)
Write all child nodes of the given root node to the xml writer. |
protected String |
getAttrNameValue()
|
boolean |
getCommitLabelLayouts()
Whether this output handler will call FlexIOTools.copyLabelLayouts(y.layout.LayoutGraph)
before the labels are written. |
protected Object |
getDataProviderKey()
|
int |
getPrecedence()
|
void |
printDataOutput(GraphMLWriteContext context,
Graph graph,
Object nodeedge,
XmlWriter writer)
|
void |
printKeyAttributes(GraphMLWriteContext context,
XmlWriter writer)
|
void |
printKeyOutput(GraphMLWriteContext context,
XmlWriter ips)
|
void |
setCommitLabelLayouts(boolean commitLabelLayouts)
Whether this output handler will call FlexIOTools.copyLabelLayouts(y.layout.LayoutGraph)
before the labels are written. |
| Methods inherited from class yext.graphml.writer.AbstractOutputHandler |
getKeyAttributes, printDataAttributes, printDataOutput |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LabelCompatOutputHandler(Object dataProviderKey)
dataProviderKey - The key of the data provider that contains the DocumentFragments
that represent the labels of edges or nodes.| Method Detail |
public boolean getCommitLabelLayouts()
FlexIOTools.copyLabelLayouts(y.layout.LayoutGraph)
before the labels are written.
public void setCommitLabelLayouts(boolean commitLabelLayouts)
FlexIOTools.copyLabelLayouts(y.layout.LayoutGraph)
before the labels are written.
protected void commitLabelLayout(Node labelElement,
NodeLabelLayout labelLayout,
Graph graph,
Node node)
DiscreteNodeLabelModel.
labelElement - The current XML elementlabelLayout - The label layout that should be commited back to the client.graph - The graph the node belongs to.node - The node that the label belongs to.
protected void commitLabelLayout(Node labelElement,
EdgeLabelLayout labelLayout,
Graph graph,
Edge edge)
SliderEdgeLabelModel or FreeEdgeLabelModel.
labelElement - The current XML elementlabelLayout - The label layout that should be commited back to the client.graph - The graph the edge belongs to.edge - The edge that the label belongs to.
public void printDataOutput(GraphMLWriteContext context,
Graph graph,
Object nodeedge,
XmlWriter writer)
public int getPrecedence()
protected Object getDataProviderKey()
protected String getAttrNameValue()
public void printKeyAttributes(GraphMLWriteContext context,
XmlWriter writer)
public void printKeyOutput(GraphMLWriteContext context,
XmlWriter ips)
protected void dumpNodes(XmlWriter writer,
Node rootNode)
writer - The xml writer to write torootNode - The parent node to be dumped
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||