C# Class 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.

Inheritance: LayoutsBase
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Méthodes publiques

Свойство Type Description
DisplacementX System.Single
DisplacementY System.Single
UnboundedLocationX System.Single
UnboundedLocationY System.Single

Méthodes publiques

Méthode Description
AssertValid ( ) : void
FruchtermanReingoldVertexInfo ( PointF initialLocation ) : System

Initializes a new instance of the class.

Method Details

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

FruchtermanReingoldVertexInfo() public méthode

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. ///
Résultat System

Property Details

DisplacementX public_oe property

public Single,System DisplacementX
Résultat System.Single

DisplacementY public_oe property

public Single,System DisplacementY
Résultat System.Single

UnboundedLocationX public_oe property

public Single,System UnboundedLocationX
Résultat System.Single

UnboundedLocationY public_oe property

public Single,System UnboundedLocationY
Résultat System.Single