Packagecom.yworks.yfiles.layout
Classpublic class LayoutGraphCopyFactory
InheritanceLayoutGraphCopyFactory Inheritance YObject Inheritance Object
Implements GraphCopier_CopyFactory

An implementation of the copy factory interface used by com.yworks.yfiles.util.GraphCopier that can be used by implementations of com.yworks.yfiles.layout.LayoutGraph.

See also

com.yworks.yfiles.util.GraphCopier
com.yworks.yfiles.layout.LayoutGraph


Public Methods
 MethodDefined By
  
LayoutGraphCopyFactory(init:Boolean = true)
LayoutGraphCopyFactory
  
copyEdge(targetGraph:Graph, newSource:Node, newTarget:Node, originalEdge:Edge):Edge
LayoutGraphCopyFactory
  
copyNode(targetGraph:Graph, originalNode:Node):Node
LayoutGraphCopyFactory
  
Creates a new com.yworks.yfiles.layout.DefaultLayoutGraph.
LayoutGraphCopyFactory
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
LayoutGraphCopyFactory
 Inherited
hashCode():int
YObject
  
[static]
LayoutGraphCopyFactory
  
postCopyGraphData(originalGraph:Graph, newGraph:Graph, nodeMap:Map, edgeMap:Map):void
LayoutGraphCopyFactory
  
preCopyGraphData(originalGraph:Graph, newGraph:Graph):void
LayoutGraphCopyFactory
Protected Methods
 MethodDefined By
  
Copies the edge label's layout.
LayoutGraphCopyFactory
  
copyEdgeLabels(originalLayoutGraph:LayoutGraph, originalEdge:Edge, layoutGraph:LayoutGraph, edge:Edge):void
Callback that copies the labels for a given edge.
LayoutGraphCopyFactory
  
Copies the node label's layout.
LayoutGraphCopyFactory
  
copyNodeLabels(originalLayoutGraph:LayoutGraph, originalNode:Node, targetGraph:LayoutGraph, newNode:Node):void
Callback that copies the labels for a given node.
LayoutGraphCopyFactory
  
LayoutGraphCopyFactory
Constructor Detail
LayoutGraphCopyFactory()Constructor
public function LayoutGraphCopyFactory(init:Boolean = true)



Parameters
init:Boolean (default = true)
Method Detail
copyEdge()method
public function copyEdge(targetGraph:Graph, newSource:Node, newTarget:Node, originalEdge:Edge):Edge

Parameters

targetGraph:Graph
 
newSource:Node
 
newTarget:Node
 
originalEdge:Edge

Returns
Edge
copyEdgeLabelLayout()method 
protected function copyEdgeLabelLayout(edgeLabelLayout:EdgeLabelLayout):EdgeLabelLayout

Copies the edge label's layout.

Parameters

edgeLabelLayout:EdgeLabelLayout

Returns
EdgeLabelLayout
copyEdgeLabels()method 
protected function copyEdgeLabels(originalLayoutGraph:LayoutGraph, originalEdge:Edge, layoutGraph:LayoutGraph, edge:Edge):void

Callback that copies the labels for a given edge.

Parameters

originalLayoutGraph:LayoutGraph
 
originalEdge:Edge
 
layoutGraph:LayoutGraph
 
edge:Edge

copyNode()method 
public function copyNode(targetGraph:Graph, originalNode:Node):Node

Parameters

targetGraph:Graph
 
originalNode:Node

Returns
Node
copyNodeLabelLayout()method 
protected function copyNodeLabelLayout(nodeLabelLayout:NodeLabelLayout):NodeLabelLayout

Copies the node label's layout.

Parameters

nodeLabelLayout:NodeLabelLayout

Returns
NodeLabelLayout
copyNodeLabels()method 
protected function copyNodeLabels(originalLayoutGraph:LayoutGraph, originalNode:Node, targetGraph:LayoutGraph, newNode:Node):void

Callback that copies the labels for a given node.

Parameters

originalLayoutGraph:LayoutGraph
 
originalNode:Node
 
targetGraph:LayoutGraph
 
newNode:Node

createGraph()method 
public function createGraph():Graph

Creates a new com.yworks.yfiles.layout.DefaultLayoutGraph.

Returns
Graph

See also

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

Returns
Class
initLayoutGraphCopyFactory()method 
protected final function initLayoutGraphCopyFactory():void

newLayoutGraphCopyFactory()method 
public static function newLayoutGraphCopyFactory():LayoutGraphCopyFactory

Returns
LayoutGraphCopyFactory
postCopyGraphData()method 
public function postCopyGraphData(originalGraph:Graph, newGraph:Graph, nodeMap:Map, edgeMap:Map):void

Parameters

originalGraph:Graph
 
newGraph:Graph
 
nodeMap:Map
 
edgeMap:Map

preCopyGraphData()method 
public function preCopyGraphData(originalGraph:Graph, newGraph:Graph):void

Parameters

originalGraph:Graph
 
newGraph:Graph