|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.LayoutGraphCopyFactory
public class LayoutGraphCopyFactory
An implementation of the copy factory interface used by GraphCopier
that can be used by implementations of LayoutGraph
.
Nested Class Summary | |
---|---|
static class |
LayoutGraphCopyFactory.HierarchicGraphCopyFactory
An implementation of the copy factory interface used by GraphCopier
that can be used by implementations of LayoutGraph that are hierarchically grouped
using GroupingKeys . |
Constructor Summary | |
---|---|
LayoutGraphCopyFactory()
|
Method Summary | |
---|---|
Edge |
copyEdge(Graph targetGraph,
Node newSource,
Node newTarget,
Edge originalEdge)
Copies the originalEdge from the source graph to the new targetGraph
using the specified new source and target node in the target graph. |
protected EdgeLabelLayout |
copyEdgeLabelLayout(EdgeLabelLayout edgeLabelLayout)
Copies the edge label's layout. |
protected void |
copyLabels(LayoutGraph originalLayoutGraph,
Edge originalEdge,
LayoutGraph layoutGraph,
Edge edge)
Callback that copies the labels for a given edge. |
protected void |
copyLabels(LayoutGraph originalLayoutGraph,
Node originalNode,
LayoutGraph targetGraph,
Node newNode)
Callback that copies the labels for a given node. |
Node |
copyNode(Graph targetGraph,
Node originalNode)
Copies the originalNode from the source graph to the new targetGraph |
protected NodeLabelLayout |
copyNodeLabelLayout(NodeLabelLayout nodeLabelLayout)
Copies the node label's layout. |
Graph |
createGraph()
Creates a new DefaultLayoutGraph . |
void |
postCopyGraphData(Graph originalGraph,
Graph newGraph,
Map nodeMap,
Map edgeMap)
Callback that will be called after the copy operation has completed. |
void |
preCopyGraphData(Graph originalGraph,
Graph newGraph)
Callback that will be called before the copy operation takes place. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutGraphCopyFactory()
Method Detail |
---|
public Node copyNode(Graph targetGraph, Node originalNode)
GraphCopier.CopyFactory
originalNode
from the source graph to the new targetGraph
copyNode
in interface GraphCopier.CopyFactory
targetGraph
- the graph to create the new node inoriginalNode
- the original node from the source graph
protected void copyLabels(LayoutGraph originalLayoutGraph, Node originalNode, LayoutGraph targetGraph, Node newNode)
protected NodeLabelLayout copyNodeLabelLayout(NodeLabelLayout nodeLabelLayout)
public Edge copyEdge(Graph targetGraph, Node newSource, Node newTarget, Edge originalEdge)
GraphCopier.CopyFactory
originalEdge
from the source graph to the new targetGraph
using the specified new source and target node in the target graph.
copyEdge
in interface GraphCopier.CopyFactory
targetGraph
- the graph to create the new node innewSource
- the source node in the target graph to use for the newly created edgenewTarget
- the target node in the target graph to use for the newly created edgeoriginalEdge
- the original edge from the source graph
public Graph createGraph()
DefaultLayoutGraph
.
createGraph
in interface GraphCopier.CopyFactory
protected void copyLabels(LayoutGraph originalLayoutGraph, Edge originalEdge, LayoutGraph layoutGraph, Edge edge)
protected EdgeLabelLayout copyEdgeLabelLayout(EdgeLabelLayout edgeLabelLayout)
public void preCopyGraphData(Graph originalGraph, Graph newGraph)
GraphCopier.CopyFactory
preCopyGraphData
in interface GraphCopier.CopyFactory
originalGraph
- the graph that will be used to copy the entities from.newGraph
- the graph that will be used to copy the entities to.public void postCopyGraphData(Graph originalGraph, Graph newGraph, Map nodeMap, Map edgeMap)
GraphCopier.CopyFactory
postCopyGraphData
in interface GraphCopier.CopyFactory
originalGraph
- the graph that was used to copy the entities from.newGraph
- the graph that was used to copy the entities to.nodeMap
- a map that contains a mapping between the nodes in the source graph
to their corresponding nodes in the new graph.edgeMap
- a map that contains a mapping between the edges in the source graph
to their corresponding edges in the new graph.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |