C# Class Smrf.NodeXL.Layouts.PolarLayout

Lays out a graph by placing the vertices within a polar coordinate space.
This layout defines a polar coordinate space that uses (R, Angle) to specify a point.

R represents the distance of the point from the origin, which is the center of the graph rectangle. 0.0 represents the origin and 1.0 represents the maximum distance from the origin, which is the smaller of half the graph rectangle's width or height. R values less than 0.0 are the same as 0.0, and R values greater than 1.0 are the same as 1.0.

Angle is in degrees. 0.0 represents points on the positive x-axis and 90.0 represents points on the positive y-axis. Any angle is valid. 361.0 degrees is the same as 1.0 degree, for example, and -1.0 degree is the same as 359.0 degrees.

To specify the polar coordinates of a vertex, add the key to the vertex. If a vertex is missing this key, the vertex is placed at the origin.

If the graph has a metadata key of , only the vertices specified in the value's IVertex collection are laid out and all other vertices are completely ignored.

If a vertex has a metadata key of with a value of true, its location is left unmodified.

Inheritance: PolarLayoutBase
Show file Open project: 2014-sed-team3/term-project

Public Methods

Method Description
AssertValid ( ) : void
PolarLayout ( ) : System

Initializes a new instance of the PolarLayout class.

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

PolarLayout() public method

Initializes a new instance of the PolarLayout class.
public PolarLayout ( ) : System
return System