Packagecom.yworks.yfiles.util
Classpublic class GraphCopier_NodeDataProviderCopyFactory
InheritanceGraphCopier_NodeDataProviderCopyFactory Inheritance GraphCopier_DataProviderCopyFactory Inheritance GraphCopier_GraphDataCopyFactory Inheritance YObject Inheritance Object

Helper class implementation of com.yworks.yfiles.util.GraphCopier_CopyFactory that can be used to copy the contents of a DataProvider registered with the source graph onto the target graph storing the values in newly created node map (com.yworks.yfiles.base.Graph.createNodeMap()).

See also

copy()
com.yworks.yfiles.util.GraphCopier_CopyFactory
node map


Protected Properties
 PropertyDefined By
 InheriteddpKey : Object
[read-only] The DataProvider key.
GraphCopier_DataProviderCopyFactory
Public Methods
 MethodDefined By
  
GraphCopier_NodeDataProviderCopyFactory(delegatingFactory:GraphCopier_CopyFactory, dpKey:Object, init:Boolean = true)
Creates a new instance using the delegate for the given data provider key.
GraphCopier_NodeDataProviderCopyFactory
 Inherited
copyEdge(graph:Graph, source:Node, target:Node, hint:Edge):Edge
Delegates the copying of the data to copyEdgeData()
GraphCopier_GraphDataCopyFactory
 Inherited
copyNode(graph:Graph, hint:Node):Node
Delegates the copying of the data to copyNodeData()
GraphCopier_GraphDataCopyFactory
 Inherited
GraphCopier_GraphDataCopyFactory
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
GraphCopier_NodeDataProviderCopyFactory
 Inherited
hashCode():int
YObject
  
[static] Creates a new instance using the delegate for the given data provider key.
GraphCopier_NodeDataProviderCopyFactory
 Inherited
postCopyGraphData(srcGraph:Graph, newGraph:Graph, nodeMap:Map, edgeMap:Map):void
Calls the delegate and then postCopyData().
GraphCopier_GraphDataCopyFactory
 Inherited
preCopyGraphData(srcGraph:Graph, newGraph:Graph):void
Calls preCopyData() and then the delegate.
GraphCopier_GraphDataCopyFactory
Protected Methods
 MethodDefined By
  
copy(dpKey:Object, src:Node, dst:Node, value:Object):Object
Callback method that performs the actual copying of the data.
GraphCopier_NodeDataProviderCopyFactory
 Inherited
copyEdgeData(src:Edge, dst:Edge):void
Empty stub to be overwritten by subclass implementations.
GraphCopier_GraphDataCopyFactory
  
copyNodeData(src:Node, dst:Node):void
[override]
GraphCopier_NodeDataProviderCopyFactory
  
[override]
GraphCopier_NodeDataProviderCopyFactory
 Inherited
Helper method that retrieves the map for the given graph instance.
GraphCopier_DataProviderCopyFactory
 Inherited
Creates a new delegating instance that copies the data for the given data provider key.
GraphCopier_DataProviderCopyFactory
 Inherited
GraphCopier_GraphDataCopyFactory
  
Initializes this object.
GraphCopier_NodeDataProviderCopyFactory
 Inherited
postCopyData(src:Graph, dst:Graph, nodeMap:Map, edgeMap:Map):void
Empty stub to be overwritten by subclass implementations.
GraphCopier_GraphDataCopyFactory
 Inherited
preCopyData(src:Graph, dst:Graph):void
[override] Calls createMap() and registers that map on the target graph if there is no com.yworks.yfiles.base.DataMap registered on the target graph yet.
GraphCopier_DataProviderCopyFactory
Constructor Detail
GraphCopier_NodeDataProviderCopyFactory()Constructor
public function GraphCopier_NodeDataProviderCopyFactory(delegatingFactory:GraphCopier_CopyFactory, dpKey:Object, init:Boolean = true)

Creates a new instance using the delegate for the given data provider key.

Parameters
delegatingFactory:GraphCopier_CopyFactory
 
dpKey:Object
 
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods. This parameter can safely be ignored/omitted when calling the constructor.
Method Detail
copy()method
protected function copy(dpKey:Object, src:Node, dst:Node, value:Object):Object

Callback method that performs the actual copying of the data. This implementation simply returns the reference.

Parameters

dpKey:Object
 
src:Node
 
dst:Node
 
value:Object

Returns
Object
copyNodeData()method 
override protected function copyNodeData(src:Node, dst:Node):void

Parameters

src:Node
 
dst:Node

createMap()method 
override protected function createMap(dst:Graph):DataMap

Parameters

dst:Graph

Returns
DataMap
getClass()method 
override public function getClass():Class

Returns
Class
initGraphCopier_NodeDataProviderCopyFactory()method 
protected final function initGraphCopier_NodeDataProviderCopyFactory(delegatingFactory:GraphCopier_CopyFactory, dpKey:Object):void

Initializes this object. See the documentation of the corresponding factory method newGraphCopier_NodeDataProviderCopyFactory() for details.

Parameters

delegatingFactory:GraphCopier_CopyFactory
 
dpKey:Object

See also

newGraphCopier_NodeDataProviderCopyFactory()method 
public static function newGraphCopier_NodeDataProviderCopyFactory(delegatingFactory:GraphCopier_CopyFactory, dpKey:Object):GraphCopier_NodeDataProviderCopyFactory

Creates a new instance using the delegate for the given data provider key.

Parameters

delegatingFactory:GraphCopier_CopyFactory
 
dpKey:Object

Returns
GraphCopier_NodeDataProviderCopyFactory