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


In This Topic
    NBarycenterLayout Class
    In This Topic
    The NBarycenterLayout class represents a force directed layout, which implements the barycenter layout method.
    Object Model
    NBarycenterLayout Class
    Syntax
    'Declaration
     
    
    <System.ComponentModel.TypeConverterAttribute(System.ComponentModel.ExpandableObjectConverter)>
    Public Class NBarycenterLayout 
       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 NBarycenterLayout
    Remarks
    The barycenter layout method splits the input graph into a set of fixed and free vertices. Fixed vertices are nailed to the corners of a strictly convex polygon, while free vertices are placed in the barycenter of their neighbours.

    In case there are no fixed vertices this will place all vertices at a single point, which is obviously not a good graph drawing. That is why the barycenter layout needs at least three fixed vertices.

    The minimal amount of fixed vertices is specified by the MinFixedVerticesCount property. If the input graph does not have that many fixed vertices, the layout will automatically forefill this requirement. This is done by fixing the vertices with the smallest degree.

    The attractive force pulling the vertices towards their barycenter is represented by an instance of the NBarycenterForce class, accessible from the BarycenterForce 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.NBarycenterLayout

    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