C# Class Smrf.NodeXL.Layouts.PolarAbsoluteLayout

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, 1.0 represents one WPF unit (1/96 inch), and -1 represents one WPF unit in the opposite direction.

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
Exibir arquivo Open project: 2014-sed-team3/term-project

Public Methods

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

Initializes a new instance of the PolarAbsoluteLayout class.

Protected Methods

Method Description
TransformLayoutCore ( IGraph graph, LayoutContext originalLayoutContext, LayoutContext newLayoutContext ) : void

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

PolarAbsoluteLayout() public method

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

TransformLayoutCore() protected method

protected TransformLayoutCore ( IGraph graph, LayoutContext originalLayoutContext, LayoutContext newLayoutContext ) : void
graph IGraph
originalLayoutContext LayoutContext
newLayoutContext LayoutContext
return void