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


In This Topic
    NGravityForce Class
    In This Topic
    The NGravityForce class represents a global force, which simulates a gravity attraction to the current barycenter of the graph
    Object Model
    NGravityForce Class
    Syntax
    'Declaration
     
    
    <System.ComponentModel.TypeConverterAttribute(Nevron.Internal.KKGE)>
    Public Class NGravityForce 
       Inherits NForce
       Implements Nevron.Dom.INAttribute, Nevron.Dom.INHistoryCallback, Nevron.INReferenceHolder, Nevron.INReferenceProvider 
    'Usage
     
    
    Dim instance As NGravityForce
    [System.ComponentModel.TypeConverter(Nevron.Internal.KKGE)]
    public class NGravityForce : NForce, Nevron.Dom.INAttribute, Nevron.Dom.INHistoryCallback, Nevron.INReferenceHolder, Nevron.INReferenceProvider  
    Remarks
    The gravity force simulates an attraction to the current barycenter of the graph, which is experienced by all vertices in the graph. The force magnitude is computed by the following formula:

    AttractionCoefficient * (1 + vertex.Degree * DegreeFactor) * (Barycenter - vertex.Center)

    Inheritance Hierarchy

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

    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