public class GraphCopier
extends java.lang.Object
Graph
s.Constructor and Description |
---|
GraphCopier(org.eclipse.gef4.common.attributes.IAttributeCopier attributeCopier)
Creates a new
GraphCopier instance with the given
IAttributeCopier . |
Modifier and Type | Method and Description |
---|---|
Graph |
copy(Graph graph)
Creates a copy of the given
Graph . |
protected void |
copyAttributes(org.eclipse.gef4.common.attributes.IAttributeStore inputStore,
org.eclipse.gef4.common.attributes.IAttributeStore outputStore)
|
protected Edge |
copyEdge(Edge edge)
Creates a copy of the given edge.
|
protected Node |
copyNode(Node node)
Creates a copy of the given node.
|
public GraphCopier(org.eclipse.gef4.common.attributes.IAttributeCopier attributeCopier)
GraphCopier
instance with the given
IAttributeCopier
.public Graph copy(Graph graph)
Graph
.graph
- The Graph to copy.protected void copyAttributes(org.eclipse.gef4.common.attributes.IAttributeStore inputStore, org.eclipse.gef4.common.attributes.IAttributeStore outputStore)
protected Edge copyEdge(Edge edge)
edge
- The Edge to copy.Edge
with transferred relations and (copied)
attributes.Copyright (c) 2014 itemis AG and others. All rights reserved.