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


In This Topic
    NSpringForce Class
    In This Topic
    The NSpringForce class represents an edge force, which simulates a spring connecting adjacent vertices.
    Object Model
    NSpringForce Class
    Syntax
    'Declaration
     
    
    <System.ComponentModel.TypeConverterAttribute(Nevron.Internal.jrhE)>
    Public Class NSpringForce 
       Inherits NForce
       Implements Nevron.Dom.INAttribute, Nevron.Dom.INHistoryCallback, Nevron.INReferenceHolder, Nevron.INReferenceProvider 
    'Usage
     
    
    Dim instance As NSpringForce
    [System.ComponentModel.TypeConverter(Nevron.Internal.jrhE)]
    public class NSpringForce : NForce, Nevron.Dom.INAttribute, Nevron.Dom.INHistoryCallback, Nevron.INReferenceHolder, Nevron.INReferenceProvider  
    Remarks
    The spring force magnitude formula can take two forms based on the SpringForceLaw property value:
    • edge.SpringStiffness * Math.Log(LogBase, distance / edge.SpringLength)
    • edge.SpringStiffness * (d - edge.SpringLength)

    In both forms the spring force becomes repulsive, if the distance is smaller than the spring length, and becomes attractive, when the distance is larger than the spring length. That is, the spring force aims to make the distance between connected vertices equal to the natural (zero energy) of the spring.

    The SpringStiffness and SpringLength parameters can be specified on a per edge basis. If an edge does not provide a concrete value for either of these parameters, the default values are obtained from the SpringStiffness and SpringLength properties respectively.
    Inheritance Hierarchy

    System.Object
       Nevron.Dom.NAttribute
          Nevron.Diagram.Layout.NForce
             Nevron.Diagram.Layout.NSpringForce

    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