C# Class Smrf.NodeXL.Layouts.CircleLayout

Lays out a graph by placing the vertices on a circle.
This layout places a graph's vertices on a circle whose diameter is the smaller of the rectangle's dimensions.

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.

Inheritance: SortableLayoutBase
ファイルを表示 Open project: 2014-sed-team3/term-project

Public Methods

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

Initializes a new instance of the CircleLayout class.

Protected Methods

Method Description
LayOutGraphCoreSorted ( IGraph graph, ICollection verticesToLayOut, LayoutContext layoutContext, BackgroundWorker backgroundWorker ) : System.Boolean

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

CircleLayout() public method

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

LayOutGraphCoreSorted() protected method

protected LayOutGraphCoreSorted ( IGraph graph, ICollection verticesToLayOut, LayoutContext layoutContext, BackgroundWorker backgroundWorker ) : System.Boolean
graph IGraph
verticesToLayOut ICollection
layoutContext LayoutContext
backgroundWorker System.ComponentModel.BackgroundWorker
return System.Boolean