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
파일 보기 프로젝트 열기: 2014-sed-team3/term-project

보호된 프로퍼티들

프로퍼티 타입 설명
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