C# 클래스 Smrf.NodeXL.Layouts.GridLayout

Lays out a graph by placing the vertices on a grid.
This layout places a graph's vertices on a simple grid.

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, 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 1 사용 예제들

공개 메소드들

메소드 설명
AssertValid ( ) : void
GridLayout ( ) : System

Initializes a new instance of the GridLayout class.

보호된 메소드들

메소드 설명
GetRowsAndColumns ( ICollection oVerticesToLayOut, LayoutContext oLayoutContext, Int32 &iRows, Int32 &iColumns ) : void
LayOutGraphCoreSorted ( IGraph graph, ICollection verticesToLayOut, LayoutContext layoutContext, BackgroundWorker backgroundWorker ) : System.Boolean
RowsAndColumnsAreSufficient ( Int32 iRows, Int32 iColumns, Int32 iVertices ) : System.Boolean

메소드 상세

AssertValid() 공개 메소드

public AssertValid ( ) : void
리턴 void

GetRowsAndColumns() 보호된 메소드

protected GetRowsAndColumns ( ICollection oVerticesToLayOut, LayoutContext oLayoutContext, Int32 &iRows, Int32 &iColumns ) : void
oVerticesToLayOut ICollection
oLayoutContext LayoutContext
iRows System.Int32
iColumns System.Int32
리턴 void

GridLayout() 공개 메소드

Initializes a new instance of the GridLayout class.
public GridLayout ( ) : System
리턴 System

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

RowsAndColumnsAreSufficient() 보호된 메소드

protected RowsAndColumnsAreSufficient ( Int32 iRows, Int32 iColumns, Int32 iVertices ) : System.Boolean
iRows System.Int32
iColumns System.Int32
iVertices System.Int32
리턴 System.Boolean