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

Base class for layouts.
This abstract class can serve as a base class for implementations. Its implementations of the public methods provide error checking but defer the actual work to protected abstract methods.
Наследование: LayoutsBase, ILayout
Показать файл Открыть проект

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

Свойство Тип Описание
MaximumGroupEdgeCountToGrid System.Single
m_bImproveLayoutOfGroups System.Boolean
m_dGroupRectanglePenWidth Double
m_eBoxLayoutAlgorithm BoxLayoutAlgorithm
m_eIntergroupEdgeStyle IntergroupEdgeStyle
m_eLayoutStyle LayoutStyle
m_iBinLength System.Int32
m_iMargin System.Int32
m_iMaximumVerticesPerBin System.Int32
m_oBackgroundWorker System.ComponentModel.BackgroundWorker

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

Метод Описание
AssertValid ( ) : void
LayOutGraph ( IGraph graph, LayoutContext layoutContext ) : void
LayOutGraphAsync ( IGraph graph, LayoutContext layoutContext ) : void
LayOutGraphAsyncCancel ( ) : void
LayoutBase ( ) : System

Initializes a new instance of the LayoutBase class.

OnVertexMove ( IVertex vertex ) : void
TransformLayout ( IGraph graph, LayoutContext originalLayoutContext, LayoutContext newLayoutContext ) : void
getConnectivityBetween ( GroupInfo g1, GroupInfo g2, IGraph oGraph ) : bool

Get whether there is connectivity between two groups in a graph.

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

Метод Описание
BackgroundWorker_DoWork ( Object sender, DoWorkEventArgs e ) : void
BackgroundWorker_RunWorkerCompleted ( Object sender, RunWorkerCompletedEventArgs e ) : void
FireLayOutGraphCompleted ( AsyncCompletedEventArgs oAsyncCompletedEventArgs ) : void
GetAdjustedLayoutContext ( IGraph oGraph, LayoutContext oOriginalLayoutContext, LayoutContext &oAdjustedLayoutContext ) : System.Boolean
GetEdgesToLayOut ( IGraph graph, ICollection verticesToLayOut ) : ICollection
GetGroupsToLayOut ( IGraph oGraph ) : List
GetGroupsToLayOutConnectivity ( IGraph oGraph ) : List
GetLayoutToUseForGroup ( IGraph oGraph, ICollection oVerticesInGroup ) : LayoutBase
GetRectangleCenterAndHalfSize ( Rectangle rectangle, Double &centerX, Double &centerY, Double &halfSize ) : void
GetVerticesToLayOut ( IGraph graph ) : ICollection
LayOutGraphCore ( IGraph graph, ICollection verticesToLayOut, LayoutContext layoutContext, BackgroundWorker backgroundWorker ) : System.Boolean
LayOutGraphInternal ( IGraph oGraph, LayoutContext oLayoutContext, BackgroundWorker oBackgroundWorker, DoWorkEventArgs oDoWorkEventArgs ) : void
LayOutGraphUsingForceDirectedGroups ( IGraph oGraph, List oGroupsToLayout, LayoutContext oAdjustedLayoutContext, BackgroundWorker oBackgroundWorker ) : System.Boolean
LayOutGraphUsingGroups ( IGraph oGraph, List oGroupsToLayout, LayoutContext oAdjustedLayoutContext, BackgroundWorker oBackgroundWorker ) : System.Boolean
LayOutGraphUsingPackedRectangles ( IGraph oGraph, List oGroupsToLayout, LayoutContext oAdjustedLayoutContext, BackgroundWorker oBackgroundWorker ) : System.Boolean
OnVertexMoveCore ( IVertex vertex ) : void
RandomizeVertexLocations ( ICollection vertices, LayoutContext layoutContext, Random random ) : void
RandomizeVertexLocations ( IGraph graph, LayoutContext layoutContext ) : void
RandomizeVertexLocations ( IGraph graph, LayoutContext layoutContext, Int32 seed ) : void
TransformIntermediateCurvePoints ( IGraph oGraph, Matrix oTransformationMatrix ) : void
TransformLayoutCore ( IGraph graph, LayoutContext originalLayoutContext, LayoutContext newLayoutContext ) : void
UseGridLayoutForGroup ( ICollection oVerticesInGroup ) : System.Boolean
VertexIsLocked ( IVertex oVertex ) : System.Boolean

Приватные методы

Метод Описание
createGroupVertexProximityGraph ( IGraph graph ) : Graph

Creates the proximity graph (delaunay triangulation) of the node positions in the group graph.

inverse ( System.Single val ) : System.Single
isApproximatelyEqual ( System.Single value1, System.Single value2, System.Single epsilon ) : bool
proximityGraphStressMajorization ( IGraph groupProximityGraph, int maxIterations ) : System.Boolean

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

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

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

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

protected BackgroundWorker_DoWork ( Object sender, DoWorkEventArgs e ) : void
sender Object
e System.ComponentModel.DoWorkEventArgs
Результат void

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

protected BackgroundWorker_RunWorkerCompleted ( Object sender, RunWorkerCompletedEventArgs e ) : void
sender Object
e System.ComponentModel.RunWorkerCompletedEventArgs
Результат void

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

protected FireLayOutGraphCompleted ( AsyncCompletedEventArgs oAsyncCompletedEventArgs ) : void
oAsyncCompletedEventArgs System.ComponentModel.AsyncCompletedEventArgs
Результат void

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

protected GetAdjustedLayoutContext ( IGraph oGraph, LayoutContext oOriginalLayoutContext, LayoutContext &oAdjustedLayoutContext ) : System.Boolean
oGraph IGraph
oOriginalLayoutContext LayoutContext
oAdjustedLayoutContext LayoutContext
Результат System.Boolean

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

protected GetEdgesToLayOut ( IGraph graph, ICollection verticesToLayOut ) : ICollection
graph IGraph
verticesToLayOut ICollection
Результат ICollection

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

protected GetGroupsToLayOut ( IGraph oGraph ) : List
oGraph IGraph
Результат List

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

protected GetGroupsToLayOutConnectivity ( IGraph oGraph ) : List
oGraph IGraph
Результат List

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

protected GetLayoutToUseForGroup ( IGraph oGraph, ICollection oVerticesInGroup ) : LayoutBase
oGraph IGraph
oVerticesInGroup ICollection
Результат LayoutBase

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

protected GetRectangleCenterAndHalfSize ( Rectangle rectangle, Double &centerX, Double &centerY, Double &halfSize ) : void
rectangle System.Drawing.Rectangle
centerX Double
centerY Double
halfSize Double
Результат void

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

protected GetVerticesToLayOut ( IGraph graph ) : ICollection
graph IGraph
Результат ICollection

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

public LayOutGraph ( IGraph graph, LayoutContext layoutContext ) : void
graph IGraph
layoutContext LayoutContext
Результат void

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

public LayOutGraphAsync ( IGraph graph, LayoutContext layoutContext ) : void
graph IGraph
layoutContext LayoutContext
Результат void

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

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

LayOutGraphCore() защищенный абстрактный Метод

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

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

protected LayOutGraphInternal ( IGraph oGraph, LayoutContext oLayoutContext, BackgroundWorker oBackgroundWorker, DoWorkEventArgs oDoWorkEventArgs ) : void
oGraph IGraph
oLayoutContext LayoutContext
oBackgroundWorker System.ComponentModel.BackgroundWorker
oDoWorkEventArgs System.ComponentModel.DoWorkEventArgs
Результат void

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

protected LayOutGraphUsingForceDirectedGroups ( IGraph oGraph, List oGroupsToLayout, LayoutContext oAdjustedLayoutContext, BackgroundWorker oBackgroundWorker ) : System.Boolean
oGraph IGraph
oGroupsToLayout List
oAdjustedLayoutContext LayoutContext
oBackgroundWorker System.ComponentModel.BackgroundWorker
Результат System.Boolean

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

protected LayOutGraphUsingGroups ( IGraph oGraph, List oGroupsToLayout, LayoutContext oAdjustedLayoutContext, BackgroundWorker oBackgroundWorker ) : System.Boolean
oGraph IGraph
oGroupsToLayout List
oAdjustedLayoutContext LayoutContext
oBackgroundWorker System.ComponentModel.BackgroundWorker
Результат System.Boolean

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

protected LayOutGraphUsingPackedRectangles ( IGraph oGraph, List oGroupsToLayout, LayoutContext oAdjustedLayoutContext, BackgroundWorker oBackgroundWorker ) : System.Boolean
oGraph IGraph
oGroupsToLayout List
oAdjustedLayoutContext LayoutContext
oBackgroundWorker System.ComponentModel.BackgroundWorker
Результат System.Boolean

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

Initializes a new instance of the LayoutBase class.
public LayoutBase ( ) : System
Результат System

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

public OnVertexMove ( IVertex vertex ) : void
vertex IVertex
Результат void

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

protected OnVertexMoveCore ( IVertex vertex ) : void
vertex IVertex
Результат void

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

protected RandomizeVertexLocations ( ICollection vertices, LayoutContext layoutContext, Random random ) : void
vertices ICollection
layoutContext LayoutContext
random System.Random
Результат void

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

protected RandomizeVertexLocations ( IGraph graph, LayoutContext layoutContext ) : void
graph IGraph
layoutContext LayoutContext
Результат void

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

protected RandomizeVertexLocations ( IGraph graph, LayoutContext layoutContext, Int32 seed ) : void
graph IGraph
layoutContext LayoutContext
seed System.Int32
Результат void

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

protected TransformIntermediateCurvePoints ( IGraph oGraph, Matrix oTransformationMatrix ) : void
oGraph IGraph
oTransformationMatrix Matrix
Результат void

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

public TransformLayout ( IGraph graph, LayoutContext originalLayoutContext, LayoutContext newLayoutContext ) : void
graph IGraph
originalLayoutContext LayoutContext
newLayoutContext LayoutContext
Результат void

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

protected TransformLayoutCore ( IGraph graph, LayoutContext originalLayoutContext, LayoutContext newLayoutContext ) : void
graph IGraph
originalLayoutContext LayoutContext
newLayoutContext LayoutContext
Результат void

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

protected UseGridLayoutForGroup ( ICollection oVerticesInGroup ) : System.Boolean
oVerticesInGroup ICollection
Результат System.Boolean

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

protected VertexIsLocked ( IVertex oVertex ) : System.Boolean
oVertex IVertex
Результат System.Boolean

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

Get whether there is connectivity between two groups in a graph.
public getConnectivityBetween ( GroupInfo g1, GroupInfo g2, IGraph oGraph ) : bool
g1 Smrf.NodeXL.Core.GroupInfo /// Group 1 ///
g2 Smrf.NodeXL.Core.GroupInfo /// Group 2 ///
oGraph IGraph /// The graph these groups are in ///
Результат bool

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

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

protected Single,System MaximumGroupEdgeCountToGrid
Результат System.Single

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

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

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

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

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

protected BoxLayoutAlgorithm m_eBoxLayoutAlgorithm
Результат BoxLayoutAlgorithm

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

protected IntergroupEdgeStyle m_eIntergroupEdgeStyle
Результат IntergroupEdgeStyle

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

protected LayoutStyle m_eLayoutStyle
Результат LayoutStyle

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

protected Int32,System m_iBinLength
Результат System.Int32

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

protected Int32,System m_iMargin
Результат System.Int32

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

protected Int32,System m_iMaximumVerticesPerBin
Результат System.Int32

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

protected BackgroundWorker,System.ComponentModel m_oBackgroundWorker
Результат System.ComponentModel.BackgroundWorker