Package | com.yworks.yfiles.layout.hierarchic.incremental |
Class | public class ConstraintIncrementalLayerer |
Inheritance | ConstraintIncrementalLayerer YObject Object |
Implements | Layerer |
See also
Property | Defined By | ||
---|---|---|---|
allowSameLayerEdges : Boolean
Specifies whether same layer edges can be created by this layerer instance. | ConstraintIncrementalLayerer |
Method | Defined By | ||
---|---|---|---|
ConstraintIncrementalLayerer(coreLayerer:Layerer, init:Boolean = true) | ConstraintIncrementalLayerer | ||
Calculates a layering for the given graph. | ConstraintIncrementalLayerer | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | ConstraintIncrementalLayerer | ||
hashCode():int | YObject | ||
[static] | ConstraintIncrementalLayerer |
Method | Defined By | ||
---|---|---|---|
checkConstraints():void
Checks if the current set of strong constraints is consistent (i.e. | ConstraintIncrementalLayerer | ||
initConstraintIncrementalLayerer(coreLayerer:Layerer):void
Initializes this object. | ConstraintIncrementalLayerer |
Constant | Defined By | ||
---|---|---|---|
EDGE_WEIGHTS_DPKEY : String = y.layout.hierarchic.incremental.ConstraintIncrementalLayerer.EDGE_WEIGHTS_DPKEY [static]
DataProvider key for additional edge weights of type int. | ConstraintIncrementalLayerer |
allowSameLayerEdges | property |
allowSameLayerEdges:Boolean
Specifies whether same layer edges can be created by this layerer instance.
This only concerns edges between nodes that have no hard constraints that will force a same layer edge (i.e. a same layer constraint).
Default value is false
.
public function get allowSameLayerEdges():Boolean
public function set allowSameLayerEdges(value:Boolean):void
ConstraintIncrementalLayerer | () | Constructor |
public function ConstraintIncrementalLayerer(coreLayerer:Layerer, init:Boolean = true)
Parameters
coreLayerer:Layerer | |
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(g:LayoutGraph, layers:Layers, ldp:LayoutDataProvider):void
Calculates a layering for the given graph.
Parameters
g:LayoutGraph — the graph containing all nodes and edges.
| |
layers:Layers — a structure that is filled by the layerer. If the layerer is used for layering incremental nodes, the layers structure already have to contain all non-incremental nodes.
| |
ldp:LayoutDataProvider |
checkConstraints | () | method |
protected function checkConstraints():void
Checks if the current set of strong constraints is consistent (i.e. has no cycles)
IllegalArgumentException — if the constraint network is inconsistent
|
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initConstraintIncrementalLayerer | () | method |
protected final function initConstraintIncrementalLayerer(coreLayerer:Layerer):void
Initializes this object. See the documentation of the corresponding factory method newConstraintIncrementalLayerer()
for details.
Parameters
coreLayerer:Layerer |
See also
newConstraintIncrementalLayerer | () | method |
public static function newConstraintIncrementalLayerer(coreLayerer:Layerer):ConstraintIncrementalLayerer
Parameters
coreLayerer:Layerer |
ConstraintIncrementalLayerer |
EDGE_WEIGHTS_DPKEY | Constant |
public static const EDGE_WEIGHTS_DPKEY:String = y.layout.hierarchic.incremental.ConstraintIncrementalLayerer.EDGE_WEIGHTS_DPKEY
DataProvider key for additional edge weights of type int
.
The Layerer tries to keep edges with higher weights short.