|
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.util.GraphCopier.DataProviderCopyFactory
public abstract static class GraphCopier.DataProviderCopyFactory
Abstract helper class that provides helper methods to copy DataProvider
contents.
Field Summary | |
---|---|
protected java.lang.Object |
dpKey
The DataProvider key. |
Constructor Summary | |
---|---|
protected |
GraphCopier.DataProviderCopyFactory(GraphCopier.CopyFactory delegatingFactory,
java.lang.Object dpKey)
Creates a new delegating instance that copies the data for the given data provider key. |
Method Summary | |
---|---|
protected abstract DataMap |
createMap(Graph dst)
Factory callback to create the backing storage. |
protected DataMap |
getMap(Graph graph)
Helper method that retrieves the map for the given graph instance. |
protected void |
preCopyData(Graph src,
Graph dst)
Calls createMap(y.base.Graph) and registers that map on the
target graph if there is no DataMap registered on the
target graph yet. |
Methods inherited from class y.util.GraphCopier.GraphDataCopyFactory |
---|
copyData, copyData, copyEdge, copyNode, createGraph, postCopyData, postCopyGraphData, preCopyGraphData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.Object dpKey
Constructor Detail |
---|
protected GraphCopier.DataProviderCopyFactory(GraphCopier.CopyFactory delegatingFactory, java.lang.Object dpKey)
delegatingFactory
- the factory to delegate to.dpKey
- the data provider keyMethod Detail |
---|
protected void preCopyData(Graph src, Graph dst)
createMap(y.base.Graph)
and registers that map on the
target graph if there is no DataMap
registered on the
target graph yet.
preCopyData
in class GraphCopier.GraphDataCopyFactory
protected abstract DataMap createMap(Graph dst)
protected DataMap getMap(Graph graph)
graph
- Graph instance for which the map is retrieved
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |