Package | com.yworks.yfiles.layout.hierarchic.incremental |
Class | public class DefaultLayerSequencer |
Inheritance | DefaultLayerSequencer YObject Object |
Implements | Sequencer |
Property | Defined By | ||
---|---|---|---|
groupTranspositionEnabled : Boolean
Getter:
Returns whether or not the group transposition heuristic should be used. | DefaultLayerSequencer | ||
maximalDuration : uint
Getter:
Returns the proposed maximal duration for the calculation of the sequence. | DefaultLayerSequencer | ||
randomizationRounds : int
Getter:
Returns the number of randomized rounds this algorithm will try if there was no optimal solution. | DefaultLayerSequencer | ||
transpositionEnabled : Boolean
Getter:
Returns whether or not the transposition crossing minimization heuristic should be used. | DefaultLayerSequencer | ||
weightHeuristic : int
Getter:
Returns the currently set weight heuristic. | DefaultLayerSequencer |
Method | Defined By | ||
---|---|---|---|
DefaultLayerSequencer(init:Boolean = true) | DefaultLayerSequencer | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | DefaultLayerSequencer | ||
hashCode():int | YObject | ||
[static] | DefaultLayerSequencer | ||
sequenceNodeLayers(graph:LayoutGraph, glayers:Layers, ldp:LayoutDataProvider, itemFactory:ItemFactory):void | DefaultLayerSequencer |
Method | Defined By | ||
---|---|---|---|
initDefaultLayerSequencer():void | DefaultLayerSequencer |
Constant | Defined By | ||
---|---|---|---|
BARYCENTER_HEURISTIC : int = 0 [static]
Weight assignment heuristic specifier. | DefaultLayerSequencer | ||
MEDIAN_HEURISTIC : int = 1 [static]
Weight assignment heuristic specifier. | DefaultLayerSequencer |
groupTranspositionEnabled | property |
groupTranspositionEnabled:Boolean
Getter: Returns whether or not the group transposition heuristic should be used.
Setter: Specifies whether or not an additional crossing minimization heuristic should be used in the presence of grouped graphs. Activating this heuristic can reduce the overall number of edge crossings in grouped graphs. On the other hand its activation increases running time. By default the transposition rule is not active. public function get groupTranspositionEnabled():Boolean
public function set groupTranspositionEnabled(value:Boolean):void
maximalDuration | property |
maximalDuration:uint
Getter:
Returns the proposed maximal duration for the calculation of the sequence.
The default is 10000
public function get maximalDuration():uint
public function set maximalDuration(value:uint):void
randomizationRounds | property |
randomizationRounds:int
Getter: Returns the number of randomized rounds this algorithm will try if there was no optimal solution.
Setter: Sets the number of additional rounds the algorithm will restart with randomized solutions as long as there might be a better solution to the current best. public function get randomizationRounds():int
public function set randomizationRounds(value:int):void
transpositionEnabled | property |
transpositionEnabled:Boolean
Getter: Returns whether or not the transposition crossing minimization heuristic should be used.
Setter: Specifies whether or not an additional crossing minimization heuristic should be used. Activating this heuristic can reduce the overall number of edge crossings. On the other hand its activation increases running time. By default the transposition rule is active. public function get transpositionEnabled():Boolean
public function set transpositionEnabled(value:Boolean):void
weightHeuristic | property |
weightHeuristic:int
Getter: Returns the currently set weight heuristic.
Setter: Sets the weight heuristic to be used. By default BARYCENTER_HEURISTIC is set. public function get weightHeuristic():int
public function set weightHeuristic(value:int):void
IllegalArgumentException — if the constant is unknown
|
See also
DefaultLayerSequencer | () | Constructor |
public function DefaultLayerSequencer(init:Boolean = true)
init:Boolean (default = true )
|
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initDefaultLayerSequencer | () | method |
protected final function initDefaultLayerSequencer():void
newDefaultLayerSequencer | () | method |
sequenceNodeLayers | () | method |
public function sequenceNodeLayers(graph:LayoutGraph, glayers:Layers, ldp:LayoutDataProvider, itemFactory:ItemFactory):void
Parameters
graph:LayoutGraph | |
glayers:Layers | |
ldp:LayoutDataProvider | |
itemFactory:ItemFactory |
BARYCENTER_HEURISTIC | Constant |
public static const BARYCENTER_HEURISTIC:int = 0
Weight assignment heuristic specifier. A node position within a layer will be determined by the barycenter of its successor (downward pass) and predecessor (upward pass) nodes.
MEDIAN_HEURISTIC | Constant |
public static const MEDIAN_HEURISTIC:int = 1
Weight assignment heuristic specifier. A node position within a layer will be determined by the median position of its successor (downward pass) and predecessor (upward pass) nodes.