Packagecom.yworks.yfiles.util
Classpublic class GraphCopier_EdgeDataProviderCopyFactory
InheritanceGraphCopier_EdgeDataProviderCopyFactory 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 a created edge map (com.yworks.yfiles.base.Graph.createEdgeMap()).

See also

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


Protected Properties
 PropertyDefined By
 InheriteddpKey : Object
[read-only] The DataProvider key.
GraphCopier_DataProviderCopyFactory
Public Methods
 MethodDefined By
  
GraphCopier_EdgeDataProviderCopyFactory(delegatingFactory:GraphCopier_CopyFactory, dpKey:Object, init:Boolean = true)
Creates a new instance using the delegate for the given data provider key.
GraphCopier_EdgeDataProviderCopyFactory
 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_EdgeDataProviderCopyFactory
 Inherited
hashCode():int
YObject
  
[static] Creates a new instance using the delegate for the given data provider key.
GraphCopier_EdgeDataProviderCopyFactory
 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:Edge, dst:Edge, value:Object):Object
GraphCopier_EdgeDataProviderCopyFactory
  
copyEdgeData(src:Edge, dst:Edge):void
[override]
GraphCopier_EdgeDataProviderCopyFactory
 Inherited
copyNodeData(src:Node, dst:Node):void
Empty stub to be overwritten by subclass implementations.
GraphCopier_GraphDataCopyFactory
  
[override]
GraphCopier_EdgeDataProviderCopyFactory
 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
  
Initializes this object.
GraphCopier_EdgeDataProviderCopyFactory
 Inherited
GraphCopier_GraphDataCopyFactory
 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_EdgeDataProviderCopyFactory()Constructor
public function GraphCopier_EdgeDataProviderCopyFactory(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:Edge, dst:Edge, value:Object):Object

Parameters

dpKey:Object
 
src:Edge
 
dst:Edge
 
value:Object

Returns
Object
copyEdgeData()method 
override protected function copyEdgeData(src:Edge, dst:Edge):void

Parameters

src:Edge
 
dst:Edge

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

Parameters

dst:Graph

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

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

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

Parameters

delegatingFactory:GraphCopier_CopyFactory
 
dpKey:Object

See also

newGraphCopier_EdgeDataProviderCopyFactory()method 
public static function newGraphCopier_EdgeDataProviderCopyFactory(delegatingFactory:GraphCopier_CopyFactory, dpKey:Object):GraphCopier_EdgeDataProviderCopyFactory

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

Parameters

delegatingFactory:GraphCopier_CopyFactory
 
dpKey:Object

Returns
GraphCopier_EdgeDataProviderCopyFactory