C# Class Smrf.NodeXL.Layouts.SugiyamaLayout

Lays out a graph using the Sugiyama layered layout scheme.
This layout uses an algorithm based on Sugiyama's layered layout scheme. It is implemented with the Microsoft Research GLEE (Graph Layout Execution Engine) library. GLEE was developed by Lev Nachmanson of Microsoft Research and was available on the Microsoft Research download site as of January 2007.

The Microsoft.GLEE.dll assembly must be included in the build that uses this class.

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

Public Methods

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

Initializes a new instance of the SugiyamaLayout class.

Protected Methods

Method Description
GetNodeXLVertexRadius ( LayoutContext oLayoutContext ) : System.Single
GetTransformationMatrix ( Microsoft oGleeGraph, Rectangle oNodeXLGraphRectangle ) : Matrix
GleeCurveToPointFArray ( Microsoft oCurve ) : System.Drawing.PointF[]
GleeCurveToTransformedPointFArray ( Microsoft oCurve, Matrix oTransformationMatrix ) : System.Drawing.PointF[]
GleePointToPointF ( Microsoft oGleePoint ) : PointF
GleePointToTransformedPointF ( Microsoft oGleePoint, Matrix oTransformationMatrix ) : PointF
LayOutGraphCore ( IGraph graph, ICollection verticesToLayOut, LayoutContext layoutContext, BackgroundWorker backgroundWorker ) : System.Boolean
NodeXLEdgeToGleeEdge ( IEdge oEdge ) : Microsoft.Glee.Edge
NodeXLVertexToGleeNode ( IVertex oVertex ) : Microsoft.Glee.Node
OnVertexMoveCore ( IVertex vertex ) : void
TransformLayoutCore ( IGraph graph, LayoutContext originalLayoutContext, LayoutContext newLayoutContext ) : void

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

GetNodeXLVertexRadius() protected method

protected GetNodeXLVertexRadius ( LayoutContext oLayoutContext ) : System.Single
oLayoutContext LayoutContext
return System.Single

GetTransformationMatrix() protected method

protected GetTransformationMatrix ( Microsoft oGleeGraph, Rectangle oNodeXLGraphRectangle ) : Matrix
oGleeGraph Microsoft
oNodeXLGraphRectangle System.Drawing.Rectangle
return Matrix

GleeCurveToPointFArray() protected method

protected GleeCurveToPointFArray ( Microsoft oCurve ) : System.Drawing.PointF[]
oCurve Microsoft
return System.Drawing.PointF[]

GleeCurveToTransformedPointFArray() protected method

protected GleeCurveToTransformedPointFArray ( Microsoft oCurve, Matrix oTransformationMatrix ) : System.Drawing.PointF[]
oCurve Microsoft
oTransformationMatrix Matrix
return System.Drawing.PointF[]

GleePointToPointF() protected method

protected GleePointToPointF ( Microsoft oGleePoint ) : PointF
oGleePoint Microsoft
return System.Drawing.PointF

GleePointToTransformedPointF() protected method

protected GleePointToTransformedPointF ( Microsoft oGleePoint, Matrix oTransformationMatrix ) : PointF
oGleePoint Microsoft
oTransformationMatrix Matrix
return System.Drawing.PointF

LayOutGraphCore() protected method

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

NodeXLEdgeToGleeEdge() protected method

protected NodeXLEdgeToGleeEdge ( IEdge oEdge ) : Microsoft.Glee.Edge
oEdge IEdge
return Microsoft.Glee.Edge

NodeXLVertexToGleeNode() protected method

protected NodeXLVertexToGleeNode ( IVertex oVertex ) : Microsoft.Glee.Node
oVertex IVertex
return Microsoft.Glee.Node

OnVertexMoveCore() protected method

protected OnVertexMoveCore ( IVertex vertex ) : void
vertex IVertex
return void

SugiyamaLayout() public method

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

TransformLayoutCore() protected method

protected TransformLayoutCore ( IGraph graph, LayoutContext originalLayoutContext, LayoutContext newLayoutContext ) : void
graph IGraph
originalLayoutContext LayoutContext
newLayoutContext LayoutContext
return void