Nevron .NET Vision
Nevron.Diagram.Layout Namespace / NForceEnvironment Class

In This Topic
    NForceEnvironment Class
    In This Topic
    The NForceEnvironment class is used to encapsulate the force directed layout settings related to the global environment in which the forces operate
    Object Model
    NForceEnvironment Class
    Public Class NForceEnvironment 
       Inherits Nevron.Dom.NAttribute
       Implements Nevron.Dom.INAttribute, Nevron.Dom.INHistoryCallback, Nevron.INReferenceHolder, Nevron.INReferenceProvider 
    Dim instance As NForceEnvironment
    public class NForceEnvironment : Nevron.Dom.NAttribute, Nevron.Dom.INAttribute, Nevron.Dom.INHistoryCallback, Nevron.INReferenceHolder, Nevron.INReferenceProvider  
    The force enviroment controls the amount of force actually applied to the vertices in a force directed layout. It defines the notion of global and local temperatures.

    If the UseGlobalTemperature property is set to true, the enviroment will gradually decrease the area in which the vertices are allowed to move (e.g. will perform global cooling). At the first iteration this area will be equal to the MaxForce property, and will gradually decrease to 0, as the layout progresses.

    If the UseLocalTemperature property is set to ture, the enviroment will assign a local temperature to each vertex. The force applied to the vertex is magnified by its local temperature.

    If the vertex is constantly moving in approximately the same direction (plus-minus the allowed deviation controlled by the LocalDirectionDeviation property), its temperature will increase (with the value specified by the LocalWarmingStep property) and it will speed up.

    If the vertex is oscilating or rotating its temperature will decrease and it will slow down (with the value specified by the LocalCoolingStep property).

    The maximum value of the local temperature is specified by the MaxLocalTemperature property.

    Inheritance Hierarchy



    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