|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.util.GraphCopier.GraphDataCopyFactory y.layout.LayoutGraphCopyFactory.HierarchicGraphCopyFactory
public 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.HierarchicGraphCopyFactory()
Creates new LayoutGraphCopyFactory.HierarchicGraphCopyFactory instance with default settings. |
|
LayoutGraphCopyFactory.HierarchicGraphCopyFactory(GraphCopier.CopyFactory delegatingFactory)
Creates new LayoutGraphCopyFactory.HierarchicGraphCopyFactory instance that delegates to the passed factory. |
Method Summary | |
---|---|
protected void |
copyData(Node src,
Node dst)
Empty stub to be overwritten by subclass implementations. |
protected java.lang.Object |
createNodeId(java.lang.Object srcId,
Node dst)
Creates an ID for the given node. |
protected void |
postCopyData(Graph src,
Graph dst,
java.util.Map nodeMap,
java.util.Map edgeMap)
Empty stub to be overwritten by subclass implementations. |
protected void |
preCopyData(Graph src,
Graph dst)
Empty stub to be overwritten by subclass implementations. |
Methods inherited from class y.util.GraphCopier.GraphDataCopyFactory |
---|
copyData, copyEdge, copyNode, createGraph, postCopyGraphData, preCopyGraphData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutGraphCopyFactory.HierarchicGraphCopyFactory()
LayoutGraphCopyFactory.HierarchicGraphCopyFactory
instance with default settings.
public LayoutGraphCopyFactory.HierarchicGraphCopyFactory(GraphCopier.CopyFactory delegatingFactory)
LayoutGraphCopyFactory.HierarchicGraphCopyFactory
instance that delegates to the passed factory.
delegatingFactory
- the factoryMethod Detail |
---|
protected void preCopyData(Graph src, Graph dst)
GraphCopier.GraphDataCopyFactory
preCopyData
in class GraphCopier.GraphDataCopyFactory
protected void postCopyData(Graph src, Graph dst, java.util.Map nodeMap, java.util.Map edgeMap)
GraphCopier.GraphDataCopyFactory
postCopyData
in class GraphCopier.GraphDataCopyFactory
nodeMap
- a Map that maps old node instances to their new copiesedgeMap
- a Map that maps old edge instances to their new copiesprotected void copyData(Node src, Node dst)
GraphCopier.GraphDataCopyFactory
copyData
in class GraphCopier.GraphDataCopyFactory
src
- the old entitydst
- the new entityprotected java.lang.Object createNodeId(java.lang.Object srcId, Node dst)
This implementation uses the destination node itself as the ID for the node.
The method is called by copyData(Node, Node)
and may be overridden to assign custom unique IDs.
srcId
- the ID of the original nodedst
- the copy of the original node
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |