Package | com.yworks.yfiles.layout.hierarchic.incremental |
Class | public class DefaultLayeredComponentsMerger |
Inheritance | DefaultLayeredComponentsMerger YObject Object |
Implements | LayeredComponentsMerger |
See also
Property | Defined By | ||
---|---|---|---|
policy : int
Getter:
Returns the current policy constant. | DefaultLayeredComponentsMerger |
Method | Defined By | ||
---|---|---|---|
DefaultLayeredComponentsMerger(init:Boolean = true)
Creates a new instance of DefaultLayeredComponentsMerger with default policy ( POLICY_ADD_RIGHT_TOP_ALIGNED)
| DefaultLayeredComponentsMerger | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | DefaultLayeredComponentsMerger | ||
hashCode():int | YObject | ||
DefaultLayeredComponentsMerger | |||
[static]
Creates a new instance of DefaultLayeredComponentsMerger with default policy ( POLICY_ADD_RIGHT_TOP_ALIGNED)
| DefaultLayeredComponentsMerger | ||
[static]
Creates a new instance of DefaultLayeredComponentsMerger using the given policy constant. | DefaultLayeredComponentsMerger |
Method | Defined By | ||
---|---|---|---|
Initializes this object. | DefaultLayeredComponentsMerger | ||
initDefaultLayeredComponentsMerger2(policy:int):void
Initializes this object. | DefaultLayeredComponentsMerger |
Constant | Defined By | ||
---|---|---|---|
POLICY_ADD_ABOVE : int = 1 [static]
Constant for merging policy. | DefaultLayeredComponentsMerger | ||
POLICY_ADD_BELOW : int = 0 [static]
Constant for merging policy. | DefaultLayeredComponentsMerger | ||
POLICY_ADD_LEFT_BOTTOM_ALIGNED : int = 35 [static]
Constant for merging policy. | DefaultLayeredComponentsMerger | ||
POLICY_ADD_LEFT_CENTER_ALIGNED : int = 67 [static]
Constant for merging policy. | DefaultLayeredComponentsMerger | ||
POLICY_ADD_LEFT_TOP_ALIGNED : int = 19 [static]
Constant for merging policy. | DefaultLayeredComponentsMerger | ||
POLICY_ADD_RIGHT_BOTTOM_ALIGNED : int = 34 [static]
Constant for merging policy. | DefaultLayeredComponentsMerger | ||
POLICY_ADD_RIGHT_CENTER_ALIGNED : int = 66 [static]
Constant for merging policy. | DefaultLayeredComponentsMerger | ||
POLICY_ADD_RIGHT_TOP_ALIGNED : int = 18 [static]
Constant for merging policy. | DefaultLayeredComponentsMerger |
policy | property |
policy:int
Getter: Returns the current policy constant.
Setter: Sets the policy constant as defined in com.yworks.yfiles.layout.hierarchic.incremental.DefaultLayeredComponentsMerger. public function get policy():int
public function set policy(value:int):void
See also
DefaultLayeredComponentsMerger | () | Constructor |
public function DefaultLayeredComponentsMerger(init:Boolean = true)
Creates a new instance of DefaultLayeredComponentsMerger with default policy ( POLICY_ADD_RIGHT_TOP_ALIGNED)
Parametersinit: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.
|
See also
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initDefaultLayeredComponentsMerger1 | () | method |
protected final function initDefaultLayeredComponentsMerger1():void
Initializes this object. See the documentation of the corresponding factory method newDefaultLayeredComponentsMerger1()
for details.
See also
initDefaultLayeredComponentsMerger2 | () | method |
protected final function initDefaultLayeredComponentsMerger2(policy:int):void
Initializes this object. See the documentation of the corresponding factory method newDefaultLayeredComponentsMerger2()
for details.
Parameters
policy:int |
See also
merge | () | method |
public function merge(graph:LayoutGraph, ldp:LayoutDataProvider, srcLayers:Layers, targetLayers:Layers):void
Parameters
graph:LayoutGraph | |
ldp:LayoutDataProvider | |
srcLayers:Layers | |
targetLayers:Layers |
newDefaultLayeredComponentsMerger1 | () | method |
public static function newDefaultLayeredComponentsMerger1():DefaultLayeredComponentsMerger
Creates a new instance of DefaultLayeredComponentsMerger with default policy ( POLICY_ADD_RIGHT_TOP_ALIGNED)
ReturnsDefaultLayeredComponentsMerger |
See also
newDefaultLayeredComponentsMerger2 | () | method |
public static function newDefaultLayeredComponentsMerger2(policy:int):DefaultLayeredComponentsMerger
Creates a new instance of DefaultLayeredComponentsMerger using the given policy constant.
Parameters
policy:int |
DefaultLayeredComponentsMerger |
POLICY_ADD_ABOVE | Constant |
public static const POLICY_ADD_ABOVE:int = 1
Constant for merging policy. This policy adds new layers from the source layering above the layers in the target layering.
POLICY_ADD_BELOW | Constant |
public static const POLICY_ADD_BELOW:int = 0
Constant for merging policy. This policy adds new layers from the source layering below the layers in the target layering.
POLICY_ADD_LEFT_BOTTOM_ALIGNED | Constant |
public static const POLICY_ADD_LEFT_BOTTOM_ALIGNED:int = 35
Constant for merging policy. This policy adds new layers from the source layering to the left of the layers in the target layering. Both layerings will be bottom aligned before the merge.
POLICY_ADD_LEFT_CENTER_ALIGNED | Constant |
public static const POLICY_ADD_LEFT_CENTER_ALIGNED:int = 67
Constant for merging policy. This policy adds new layers from the source layering to the left of the layers in the target layering. Both layerings will be center aligned before the merge.
POLICY_ADD_LEFT_TOP_ALIGNED | Constant |
public static const POLICY_ADD_LEFT_TOP_ALIGNED:int = 19
Constant for merging policy. This policy adds new layers from the source layering to the left of the layers in the target layering. Both layerings will be top aligned before the merge.
POLICY_ADD_RIGHT_BOTTOM_ALIGNED | Constant |
public static const POLICY_ADD_RIGHT_BOTTOM_ALIGNED:int = 34
Constant for merging policy. This policy adds new layers from the source layering to the right of the layers in the target layering. Both layerings will be bottom aligned before the merge.
POLICY_ADD_RIGHT_CENTER_ALIGNED | Constant |
public static const POLICY_ADD_RIGHT_CENTER_ALIGNED:int = 66
Constant for merging policy. This policy adds new layers from the source layering to the right of the layers in the target layering. Both layerings will be center aligned before the merge.
POLICY_ADD_RIGHT_TOP_ALIGNED | Constant |
public static const POLICY_ADD_RIGHT_TOP_ALIGNED:int = 18
Constant for merging policy. This policy adds new layers from the source layering to the right of the layers in the target layering. Both layerings will be top aligned before the merge.