Package | com.yworks.yfiles.layout |
Class | public class EdgeReversalStage |
Inheritance | EdgeReversalStage AbstractLayoutStage YObject Object |
Method | Defined By | ||
---|---|---|---|
EdgeReversalStage(init:Boolean = true) | EdgeReversalStage | ||
canLayout(graph:LayoutGraph):Boolean [override] | EdgeReversalStage | ||
doLayout(graph:LayoutGraph):void [override] | EdgeReversalStage | ||
equals(o:Object):Boolean | YObject | ||
[static]
Marks edges in a tree-structured graph component that need to be reversed to make the specified node the root of the tree component. | EdgeReversalStage | ||
getClass():Class [override] | EdgeReversalStage | ||
hashCode():int | YObject | ||
[static] | EdgeReversalStage | ||
[static] | EdgeReversalStage | ||
Reverse the specified edge in the specified graph. | EdgeReversalStage | ||
reverseEdges(graph:LayoutGraph):void
Reverses selected edges in the specified graph. | EdgeReversalStage |
Method | Defined By | ||
---|---|---|---|
canLayoutCore(graph:LayoutGraph):Boolean
Queries the core layouter whether or not the given graph can be laid out. | AbstractLayoutStage | ||
doLayoutCore(graph:LayoutGraph):void
Invokes the layout routine of the core layouter. | AbstractLayoutStage | ||
initAbstractLayoutStage1():void | AbstractLayoutStage | ||
initAbstractLayoutStage2(core:Layouter):void | AbstractLayoutStage | ||
initEdgeReversalStage1():void
Initializes this object. | EdgeReversalStage | ||
initEdgeReversalStage2(core:Layouter):void
Initializes this object. | EdgeReversalStage |
Constant | Defined By | ||
---|---|---|---|
REVERSE_EDGES_DPKEY : Object = y.layout.EdgeReversalStage.REVERSE_EDGES_DPKEY [static]
This key can be used to select specific edges for reversal. | EdgeReversalStage |
EdgeReversalStage | () | Constructor |
public function EdgeReversalStage(init:Boolean = true)
Parameters
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.
|
canLayout | () | method |
override public function canLayout(graph:LayoutGraph):Boolean
Parameters
graph:LayoutGraph |
Boolean |
doLayout | () | method |
findReversedTreeEdges | () | method |
public static function findReversedTreeEdges(graph:LayoutGraph, root:Node, reversedEdges:DataAcceptor):void
Marks edges in a tree-structured graph component that need to be reversed to make the specified node the root of the tree component.
Only edges in the graph component to which the specified node belongs will be marked. Edges are marked with a boolean
true
flag.
Parameters
graph:LayoutGraph — the graph to which the specified node belongs.
| |
root:Node — the node to be considered the root of its tree component.
| |
reversedEdges:DataAcceptor — a data acceptor that is used to mark edges for reversal.
|
IllegalArgumentException — if the specified node does not belong to the specified graph.
|
See also
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initEdgeReversalStage1 | () | method |
protected final function initEdgeReversalStage1():void
Initializes this object. See the documentation of the corresponding factory method newEdgeReversalStage1()
for details.
See also
initEdgeReversalStage2 | () | method |
protected final function initEdgeReversalStage2(core:Layouter):void
Initializes this object. See the documentation of the corresponding factory method newEdgeReversalStage2()
for details.
Parameters
core:Layouter |
See also
newEdgeReversalStage1 | () | method |
newEdgeReversalStage2 | () | method |
public static function newEdgeReversalStage2(core:Layouter):EdgeReversalStage
Parameters
core:Layouter |
EdgeReversalStage |
reverseEdge | () | method |
public function reverseEdge(graph:LayoutGraph, edge:Edge):void
Reverse the specified edge in the specified graph. The layout of the specified edge is reversed as specified in com.yworks.yfiles.layout.LayoutTool.reverseEdgeLayout(). Moreover, the positions of all labels associated to the specified edge are adjusted to match the pre-reversal position as closely as possible. (Depending on a label's model it might not always be possible to achieve an exact match.)
Parameters
graph:LayoutGraph — the graph to which the specified edge belongs.
| |
edge:Edge — the edge to be reversed.
|
See also
reverseEdges | () | method |
public function reverseEdges(graph:LayoutGraph):void
Reverses selected edges in the specified graph. An edge is considered selected in this context according to the criteria described for REVERSE_EDGES_DPKEY.
Implementation detail: This method calls reverseEdge() in order to reverse a selected edge.
Parameters
graph:LayoutGraph — the graph in which to reverse edges.
|
See also
REVERSE_EDGES_DPKEY | Constant |
public static const REVERSE_EDGES_DPKEY:Object = y.layout.EdgeReversalStage.REVERSE_EDGES_DPKEY
This key can be used to select specific edges for reversal.
An edge is considered selected in this context, if the corresponding DataProvider
returns true
for said edge.
Note: If there is no DataProvider
for this key, all edges are considered selected.