C# Класс Smrf.NodeXL.Layouts.SinusoidLayout

Lays out a graph by placing the vertices on a horizontal or vertical sine wave.
This layout places a graph's vertices on one cycle of a sine wave that spans the rectangle either horizontally or vertically.

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

If a vertex has a metadata key of , it is included in layout calculations but its own location is left unmodified.

If you want the vertices to be placed in a certain order, set the property to an object that will sort them.

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

Защищенные свойства (Protected)

Свойство Тип Описание
m_bIsHorizontal System.Boolean
m_dCycleLength Double

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

Метод Описание
AssertValid ( ) : void
SinusoidLayout ( System.Boolean isHorizontal, Double cycleLength ) : System

Initializes a new instance of the SinusoidLayout class.

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

Метод Описание
LayOutGraphCoreSorted ( IGraph graph, ICollection verticesToLayOut, LayoutContext layoutContext, BackgroundWorker backgroundWorker ) : System.Boolean

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

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

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

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

protected LayOutGraphCoreSorted ( IGraph graph, ICollection verticesToLayOut, LayoutContext layoutContext, BackgroundWorker backgroundWorker ) : System.Boolean
graph IGraph
verticesToLayOut ICollection
layoutContext LayoutContext
backgroundWorker System.ComponentModel.BackgroundWorker
Результат System.Boolean

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

Initializes a new instance of the SinusoidLayout class.
public SinusoidLayout ( System.Boolean isHorizontal, Double cycleLength ) : System
isHorizontal System.Boolean /// true for a sine wave that runs from left to right, false for top to /// bottom. ///
cycleLength Double /// Length of the sine wave cycle, in radians. ///
Результат System

Описание свойств

m_bIsHorizontal защищенное свойство

protected Boolean,System m_bIsHorizontal
Результат System.Boolean

m_dCycleLength защищенное свойство

protected Double m_dCycleLength
Результат Double