Class ForceDirectedVertex
- Namespace
- Northwoods.Go.Layouts
- Assembly
- Northwoods.GoDiagram.WinForms.ForceDirectedLayout.dll
This holds ForceDirectedLayout-specific information about Nodes.
public class ForceDirectedVertex : Network<ForceDirectedVertex, ForceDirectedEdge, ForceDirectedLayout>.Vertex
- Inheritance
-
ForceDirectedVertex
- Inherited Members
Remarks
This class inherits from Network<V, E, Y>.Vertex.
Constructors
ForceDirectedVertex(ForceDirectedNetwork)
This constructs a vertex that does not know about any Node and sets its network.
public ForceDirectedVertex(ForceDirectedNetwork network)
Parameters
network
ForceDirectedNetwork
Properties
Charge
Gets or sets the electrical charge for this vertex.
public double Charge { get; set; }
Property Value
Remarks
The default value is NaN.
ForceX
Gets or sets the cumulative force on the vertex in the X direction.
public double ForceX { get; set; }
Property Value
Remarks
The default value is zero.
ForceY
Gets or sets the cumulative force on the vertex in the Y direction.
public double ForceY { get; set; }
Property Value
Remarks
The default value is zero.
IsFixed
Gets or sets whether the vertex may be moved by any forces.
public bool IsFixed { get; set; }
Property Value
Remarks
The default value is false.
Mass
Gets or sets the gravitational mass for this vertex.
public double Mass { get; set; }
Property Value
Remarks
The default value is NaN.