Packagecom.yworks.yfiles.util
Classpublic class GraphCopier_NodeMapCopyFactory
InheritanceGraphCopier_NodeMapCopyFactory 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 node maps from the source to the target graph.

See also

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


Public Methods
 MethodDefined By
  
GraphCopier_NodeMapCopyFactory(delegatingFactory:GraphCopier_CopyFactory, init:Boolean = true)
Creates a new instance that copies the node map contents.
GraphCopier_NodeMapCopyFactory
 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_NodeMapCopyFactory
 Inherited
hashCode():int
YObject
  
[static] Creates a new instance that copies the node map contents.
GraphCopier_NodeMapCopyFactory
 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:Node, dst:Node, value:Object):Object
Callback method that performs the actual copying of the data.
GraphCopier_NodeMapCopyFactory
 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_NodeMapCopyFactory
 Inherited
GraphCopier_GraphDataCopyFactory
  
Initializes this object.
GraphCopier_NodeMapCopyFactory
 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_NodeMapCopyFactory
Constructor Detail
GraphCopier_NodeMapCopyFactory()Constructor
public function GraphCopier_NodeMapCopyFactory(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:Node, dst:Node, value:Object):Object

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

Parameters

src:Node
 
dst:Node
 
value:Object

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

Parameters

src:Node
 
dst:Node

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

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

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

Parameters

delegatingFactory:GraphCopier_CopyFactory

See also

newGraphCopier_NodeMapCopyFactory()method 
public static function newGraphCopier_NodeMapCopyFactory(delegatingFactory:GraphCopier_CopyFactory):GraphCopier_NodeMapCopyFactory

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_NodeMapCopyFactory
preCopyData()method 
override protected function preCopyData(src:Graph, dst:Graph):void

Parameters

src:Graph
 
dst:Graph