Package | com.yworks.yfiles.layout.hierarchic |
Class | public class TopologicalLayerer |
Inheritance | TopologicalLayerer YObject Object |
Implements | OldLayerer, Layerer |
Property | Defined By | ||
---|---|---|---|
rankingPolicy : int
Getter:
Returns the currently active ranking policy within this layerer. | TopologicalLayerer |
Method | Defined By | ||
---|---|---|---|
TopologicalLayerer(init:Boolean = true) | TopologicalLayerer | ||
TopologicalLayerer | |||
This method assigns the nodes in the graph to layers. | TopologicalLayerer | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | TopologicalLayerer | ||
hashCode():int | YObject | ||
[static] | TopologicalLayerer |
Method | Defined By | ||
---|---|---|---|
initTopologicalLayerer():void
Initializes this object. | TopologicalLayerer |
Constant | Defined By | ||
---|---|---|---|
DOWN_SHIFT : int = 1 [static]
Ranking policy specifier. | TopologicalLayerer | ||
NO_RERANKING : int = 0 [static]
Ranking policy specifier. | TopologicalLayerer | ||
TIGHT_TREE : int = 2 [static]
Ranking policy specifier. | TopologicalLayerer |
rankingPolicy | property |
rankingPolicy:int
Getter: Returns the currently active ranking policy within this layerer.
Setter: Sets the (re)ranking policy used within this layerer. By default NO_RERANKING is set. public function get rankingPolicy():int
public function set rankingPolicy(value:int):void
See also
TopologicalLayerer | () | Constructor |
public function TopologicalLayerer(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.
|
assignLayers | () | method |
public function assignLayers(graph:LayoutGraph, layers:Layers, ldp:LayoutDataProvider):void
Parameters
graph:LayoutGraph | |
layers:Layers | |
ldp:LayoutDataProvider |
assignNodeLayer | () | method |
public function assignNodeLayer(g:LayoutGraph, layer:NodeMap, reversedEdges:EdgeList):int
This method assigns the nodes in the graph to layers.
Postcondition Forall (v,w) in E: layer(v) < layer(w)
Parameters
g:LayoutGraph — the graph for which the layers are determined.
| |
layer:NodeMap — here the layers are stored
| |
reversedEdges:EdgeList — here the edges are stored which had been reversed.
|
int — the number of layers
|
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initTopologicalLayerer | () | method |
protected final function initTopologicalLayerer():void
Initializes this object. See the documentation of the corresponding factory method newTopologicalLayerer()
for details.
See also
newTopologicalLayerer | () | method |
DOWN_SHIFT | Constant |
public static const DOWN_SHIFT:int = 1
Ranking policy specifier. Nodes get re-ranked by an inexpensive downshift rule.
NO_RERANKING | Constant |
public static const NO_RERANKING:int = 0
Ranking policy specifier. Nodes do not get re-ranked after the initial topological layering step.
TIGHT_TREE | Constant |
public static const TIGHT_TREE:int = 2
Ranking policy specifier. Nodes get re-ranked by finding a spanning tree that contains only tight (length 1) edges.