C# Класс Smrf.NodeXL.Layouts.FruchtermanReingoldVertexInfo

Stores information calculated by FruchtermanReingoldLayout for one vertex.
FruchtermanReingoldLayout calculates several pieces of information about each vertex in the graph being laid out. Instead of storing each piece of information in a separate vertex metadata key, which would require multiple key lookups and inefficient boxing and unboxing of value types, it stores all the information for the vertex in one instance of type FruchtermanReingoldVertexInfo and stores the instance in the vertex's Tag.

All data is exposed as public fields instead of properties. That's because the method in FruchtermanReingoldLayout that calculates repulsive forces accesses the data repeatedly in an O(V-squared) loop, and property getters are much slower than direct field accesses.

Наследование: LayoutsBase
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DisplacementX System.Single
DisplacementY System.Single
UnboundedLocationX System.Single
UnboundedLocationY System.Single

Открытые методы

Метод Описание
AssertValid ( ) : void
FruchtermanReingoldVertexInfo ( PointF initialLocation ) : System

Initializes a new instance of the class.

Описание методов

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

FruchtermanReingoldVertexInfo() публичный Метод

Initializes a new instance of the class.
public FruchtermanReingoldVertexInfo ( PointF initialLocation ) : System
initialLocation System.Drawing.PointF /// The vertex's initial location within the bounded graph rectangle. ///
Результат System

Описание свойств

DisplacementX публичное свойство

public Single,System DisplacementX
Результат System.Single

DisplacementY публичное свойство

public Single,System DisplacementY
Результат System.Single

UnboundedLocationX публичное свойство

public Single,System UnboundedLocationX
Результат System.Single

UnboundedLocationY публичное свойство

public Single,System UnboundedLocationY
Результат System.Single