|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface GraphCopier.CopyFactory
The copy factory interface used by GraphCopier
to delegate the actual work to.
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. |
Node |
copyNode(Graph targetGraph,
Node originalNode)
Copies the originalNode from the source graph to the new targetGraph |
Graph |
createGraph()
Creates a new graph instance that will be the target graph of the copy operation. |
void |
postCopyGraphData(Graph sourceGraph,
Graph targetGraph,
Map nodeMap,
Map edgeMap)
Callback that will be called after the copy operation has completed. |
void |
preCopyGraphData(Graph sourceGraph,
Graph targetGraph)
Callback that will be called before the copy operation takes place. |
Method Detail |
---|
Node copyNode(Graph targetGraph, Node originalNode)
originalNode
from the source graph to the new targetGraph
targetGraph
- the graph to create the new node inoriginalNode
- the original node from the source graph
Edge copyEdge(Graph targetGraph, Node newSource, Node newTarget, Edge originalEdge)
originalEdge
from the source graph to the new targetGraph
using the specified new source and target node in the target graph.
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
Graph createGraph()
void preCopyGraphData(Graph sourceGraph, Graph targetGraph)
sourceGraph
- the graph that will be used to copy the entities from.targetGraph
- the graph that will be used to copy the entities to.void postCopyGraphData(Graph sourceGraph, Graph targetGraph, Map nodeMap, Map edgeMap)
sourceGraph
- the graph that was used to copy the entities from.targetGraph
- 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 |