Packagecom.yworks.yfiles.util
Classpublic class GraphCopier_EdgeMapCopyFactory
InheritanceGraphCopier_EdgeMapCopyFactory Inheritance GraphCopier_GraphDataCopyFactory Inheritance YObject Inheritance Object

A helper wrapping implementation of the com.yworks.yfiles.util.GraphCopier_CopyFactory interface that copies the contents of the edge maps from the source to the target graph.

See also

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


Public Methods
 MethodDefined By
  
GraphCopier_EdgeMapCopyFactory(delegatingFactory:GraphCopier_CopyFactory, init:Boolean = true)
Creates a new instance that copies the node map contents.
GraphCopier_EdgeMapCopyFactory
 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_EdgeMapCopyFactory
 Inherited
hashCode():int
YObject
  
[static] Creates a new instance that copies the node map contents.
GraphCopier_EdgeMapCopyFactory
 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(src:Edge, dst:Edge, value:Object):Object
Callback method that performs the actual copying of the data.
GraphCopier_EdgeMapCopyFactory
  
copyEdgeData(src:Edge, dst:Edge):void
[override]
GraphCopier_EdgeMapCopyFactory
 Inherited
copyNodeData(src:Node, dst:Node):void
Empty stub to be overwritten by subclass implementations.
GraphCopier_GraphDataCopyFactory
  
Initializes this object.
GraphCopier_EdgeMapCopyFactory
 Inherited
GraphCopier_GraphDataCopyFactory
 Inherited
postCopyData(src:Graph, dst:Graph, nodeMap:Map, edgeMap:Map):void
Empty stub to be overwritten by subclass implementations.
GraphCopier_GraphDataCopyFactory
  
preCopyData(src:Graph, dst:Graph):void
[override]
GraphCopier_EdgeMapCopyFactory
Constructor Detail
GraphCopier_EdgeMapCopyFactory()Constructor
public function GraphCopier_EdgeMapCopyFactory(delegatingFactory:GraphCopier_CopyFactory, init:Boolean = true)

Creates a new instance that copies the node map contents.

Parameters
delegatingFactory:GraphCopier_CopyFactory — the factory to delegate the copying of the entities to.
 
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(src:Edge, dst:Edge, value:Object):Object

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

Parameters

src:Edge
 
dst:Edge
 
value:Object

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

Parameters

src:Edge
 
dst:Edge

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

Returns
Class
initGraphCopier_EdgeMapCopyFactory()method 
protected final function initGraphCopier_EdgeMapCopyFactory(delegatingFactory:GraphCopier_CopyFactory):void

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

Parameters

delegatingFactory:GraphCopier_CopyFactory

See also

newGraphCopier_EdgeMapCopyFactory()method 
public static function newGraphCopier_EdgeMapCopyFactory(delegatingFactory:GraphCopier_CopyFactory):GraphCopier_EdgeMapCopyFactory

Creates a new instance that copies the node map contents.

Parameters

delegatingFactory:GraphCopier_CopyFactory — the factory to delegate the copying of the entities to.

Returns
GraphCopier_EdgeMapCopyFactory
preCopyData()method 
override protected function preCopyData(src:Graph, dst:Graph):void

Parameters

src:Graph
 
dst:Graph