C# Класс 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.

Наследование: PolarLayoutBase
Показать файл Открыть проект

Открытые методы

Метод Описание
AssertValid ( ) : void
PolarAbsoluteLayout ( ) : System

Initializes a new instance of the PolarAbsoluteLayout class.

Защищенные методы

Метод Описание
TransformLayoutCore ( IGraph graph, LayoutContext originalLayoutContext, LayoutContext newLayoutContext ) : void

Описание методов

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

PolarAbsoluteLayout() публичный Метод

Initializes a new instance of the PolarAbsoluteLayout class.
public PolarAbsoluteLayout ( ) : System
Результат System

TransformLayoutCore() защищенный Метод

protected TransformLayoutCore ( IGraph graph, LayoutContext originalLayoutContext, LayoutContext newLayoutContext ) : void
graph IGraph
originalLayoutContext LayoutContext
newLayoutContext LayoutContext
Результат void