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
显示文件 Open project: 2014-sed-team3/term-project Class Usage Examples

Public Properties

Property Type Description
DisplacementX System.Single
DisplacementY System.Single
UnboundedLocationX System.Single
UnboundedLocationY System.Single

Public Methods

Method Description
AssertValid ( ) : void
FruchtermanReingoldVertexInfo ( PointF initialLocation ) : System

Initializes a new instance of the class.

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

FruchtermanReingoldVertexInfo() public method

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. ///
return System

Property Details

DisplacementX public_oe property

public Single,System DisplacementX
return System.Single

DisplacementY public_oe property

public Single,System DisplacementY
return System.Single

UnboundedLocationX public_oe property

public Single,System UnboundedLocationX
return System.Single

UnboundedLocationY public_oe property

public Single,System UnboundedLocationY
return System.Single