Nevron .NET Vision
Nevron.Diagram.Layout Namespace / NSpringLayout Class
Members


In This Topic
    NSpringLayout Class
    In This Topic
    The NSpringLayout class represents a force directed layout, which simulates a physical system with spring and electical forces.
    Object Model
    NSpringLayout Class
    Syntax
    'Declaration
     
    
    <System.ComponentModel.TypeConverterAttribute(System.ComponentModel.ExpandableObjectConverter)>
    Public Class NSpringLayout 
       Inherits NForceDirectedLayout
       Implements Nevron.Diagram.INMeasurements, Nevron.Diagram.INMeasurementUnit, Nevron.Diagram.INResolution, Nevron.Dom.INAttribute, Nevron.Dom.INHistoryCallback, Nevron.INReferenceHolder, Nevron.INReferenceProvider 
    'Usage
     
    
    Dim instance As NSpringLayout
    Remarks
    The spring layout represents a classical implementation of a force directed layout, with spring and electicral forces. It allows for many per vertex and per edge settings, which can seamlessly reflect the nature of the graph.

    Graph vertices are threated as ellectically charged particles, which repel each other. The electical force aims to ensure that vertices should not be close together. The parameters of the electrical force are controlled by an instance of the NElectricalForce class, accessible from the ElectricalForce property.

    Graph edges are threated as springs. Springs aim to ensure that the distance between adjacent vertices is approximately equal to the spring length. The parameters of the spring force are controlled by an instance of the NSpringForce class, accessible from the SpringForce property.

    Inheritance Hierarchy

    System.Object
       Nevron.Dom.NAttribute
          Nevron.Diagram.Layout.NLayout
             Nevron.Diagram.Layout.NGraphPartsLayout
                Nevron.Diagram.Layout.NGraphLayout
                   Nevron.Diagram.Layout.NForceDirectedLayout
                      Nevron.Diagram.Layout.NSpringLayout

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also