Very simple default implementation of a Copy Factory that creates com.yworks.yfiles.base.Graph instances and simply delegates to the com.yworks.yfiles.base.Graph.createNode() and com.yworks.yfiles.base.Graph.createEdge() method.
public function GraphCopyFactory(init:Boolean = true)
Parameters | init:Boolean (default = true )
|
public function copyEdge(targetGraph:Graph, source:Node, target:Node, originalEdge:Edge):Edge
Parameters
Returns public function copyNode(targetGraph:Graph, originalNode:Node):Node
Parameters
Returns public function createGraph():Graph
Creates a new com.yworks.yfiles.base.Graph.
ReturnsSee also
override public function getClass():Class
Returns protected final function initGraphCopyFactory():void
public static function newGraphCopyFactory():GraphCopyFactory
Returns public function postCopyGraphData(originalGraph:Graph, newGraph:Graph, nodeMap:Map, edgeMap:Map):void
This implementation does nothing.
Parameters
public function preCopyGraphData(hint:Graph, newGraph:Graph):void
This implementation does nothing.
Parameters
Wed Oct 7 2015, 04:43 PM +02:00