NShape Reference
RepulsionLayouter Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Layouters >

NShape Reference
RepulsionLayouter Class

Previous pageReturn to chapter overviewNext page

Distributes shapes such that connected shapes are nearer together and unconnected shapes further apart.

Syntax

public class RepulsionLayouter : LayouterBaseILayouter

Description

Distributes shapes such that connected shapes are nearer together and unconnected shapes further apart.

Uses a physical model with repulsive forces and springs between connected shapes.

Public Properties

Name

Description

Friction

Gets or sets the friction that slows down the movement of the shapes as constant force.

Mass

Gets or sets the mass of the shapes in kg. Higher mass means that the shapes move shorter distances per time step.

Repulsion

Gets or sets the repulsion between shapes as constant force.

RepulsionRange

Gets or sets the range of the repulsion force in diagram coordinates.

SpringRate

Gets or sets the spring rate of the spring that keeps connected shapes together as constant force.

TimeInterval

Gets or sets the time interval for the layout process in seconds.

Public Methods

Name

Description

RepulsionLayouter

Constructs a new RepulsionLayouter instance.

Requirements

Namespace: Dataweb.NShape.Layouters

Assembly: Dataweb.NShape