documentationfor yFiles for HTML 3.0.0.3

PlaceNodesAtBarycenterStage

PlaceNodesAtBarycenterStage temporarily hides the affectedNodes, applies the specified core layout algorithm (if any) to the resulting graph and, finally, reinserts the hidden nodes by placing them on the barycenter of their neighbors using the specified node sizes.

Inheritance Hierarchy
LayoutStageBase
PlaceNodesAtBarycenterStage
Implemented Interfaces

Remarks

A possible application for this stage is animated incremental layouts, i.e., if there are new elements, you can first place them near the barycenter of their existing neighbors before starting the animation. Hence, the animation will produce smoother layouts since the new elements "start" from suitable initial positions. If the new elements should be placed on their original coordinates and/or get their original sizes after starting the animation and before calling the core layout, then you can use the GivenCoordinatesLayout.

Default Values of Properties

considerGroupingtrueThe grouping structure is considered.
removeBendstrueBends should be removed.

Type Details

yFiles module
algorithms

See Also

Constructors

Properties

Methods

Constants