Show / Hide Table of Contents

Class LayoutIterationEventArgs<TVertex, TEdge, TVertexInfo, TEdgeInfo>

Information on a layout algorithm iteration.

Inheritance
System.Object
System.EventArgs
LayoutIterationEventArgs<TVertex, TEdge>
LayoutIterationEventArgs<TVertex, TEdge, TVertexInfo, TEdgeInfo>
Implements
ILayoutInfoIterationEventArgs<TVertex, TEdge, TVertexInfo, TEdgeInfo>
ILayoutInfoIterationEventArgs<TVertex, TEdge>
ILayoutIterationEventArgs<TVertex>
Inherited Members
LayoutIterationEventArgs<TVertex, TEdge>.StatusInPercent
LayoutIterationEventArgs<TVertex, TEdge>.Abort
LayoutIterationEventArgs<TVertex, TEdge>.Iteration
LayoutIterationEventArgs<TVertex, TEdge>.Message
LayoutIterationEventArgs<TVertex, TEdge>.VerticesPositions
LayoutIterationEventArgs<TVertex, TEdge>.GetVertexInfo(TVertex)
LayoutIterationEventArgs<TVertex, TEdge>.GetEdgeInfo(TEdge)
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GraphShape.Algorithms.Layout
Assembly: GraphShape.dll
Syntax
public class LayoutIterationEventArgs<TVertex, TEdge, TVertexInfo, TEdgeInfo> : LayoutIterationEventArgs<TVertex, TEdge>, ILayoutInfoIterationEventArgs<TVertex, TEdge, TVertexInfo, TEdgeInfo>, ILayoutInfoIterationEventArgs<TVertex, TEdge>, ILayoutIterationEventArgs<TVertex> where TEdge : IEdge<TVertex>
Type Parameters
Name Description
TVertex

Vertex type.

TEdge

Edge type.

TVertexInfo

Vertex information type.

TEdgeInfo

Edge information type.

Constructors

| Improve this Doc View Source

LayoutIterationEventArgs()

Initializes a new instance of the LayoutIterationEventArgs<TVertex, TEdge, TVertexInfo, TEdgeInfo> class.

Declaration
public LayoutIterationEventArgs()
| Improve this Doc View Source

LayoutIterationEventArgs(Int32, Double)

Initializes a new instance of the LayoutIterationEventArgs<TVertex, TEdge, TVertexInfo, TEdgeInfo> class.

Declaration
public LayoutIterationEventArgs(int iteration, double statusInPercent)
Parameters
Type Name Description
System.Int32 iteration

Number of the current iteration.

System.Double statusInPercent

Status of the layout algorithm in percent.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

iteration is negative.

System.ArgumentOutOfRangeException

statusInPercent is negative.

| Improve this Doc View Source

LayoutIterationEventArgs(Int32, Double, IDictionary<TVertex, Point>)

Initializes a new instance of the LayoutIterationEventArgs<TVertex, TEdge, TVertexInfo, TEdgeInfo> class.

Declaration
public LayoutIterationEventArgs(int iteration, double statusInPercent, IDictionary<TVertex, Point> verticesPositions)
Parameters
Type Name Description
System.Int32 iteration

Number of the current iteration.

System.Double statusInPercent

Status of the layout algorithm in percent.

System.Collections.Generic.IDictionary<TVertex, Point> verticesPositions

Vertices positions associations.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

iteration is negative.

System.ArgumentOutOfRangeException

statusInPercent is negative.

| Improve this Doc View Source

LayoutIterationEventArgs(Int32, Double, String)

Initializes a new instance of the LayoutIterationEventArgs<TVertex, TEdge, TVertexInfo, TEdgeInfo> class.

Declaration
public LayoutIterationEventArgs(int iteration, double statusInPercent, string message)
Parameters
Type Name Description
System.Int32 iteration

Number of the current iteration.

System.Double statusInPercent

Status of the layout algorithm in percent.

System.String message

Message representing the status of the algorithm.

Exceptions
Type Condition
System.ArgumentNullException

message is null.

System.ArgumentOutOfRangeException

iteration is negative.

System.ArgumentOutOfRangeException

statusInPercent is negative.

| Improve this Doc View Source

LayoutIterationEventArgs(Int32, Double, String, IDictionary<TVertex, Point>, IDictionary<TVertex, TVertexInfo>, IDictionary<TEdge, TEdgeInfo>)

Initializes a new instance of the LayoutIterationEventArgs<TVertex, TEdge, TVertexInfo, TEdgeInfo> class.

Declaration
public LayoutIterationEventArgs(int iteration, double statusInPercent, string message, IDictionary<TVertex, Point> verticesPositions, IDictionary<TVertex, TVertexInfo> verticesInfos, IDictionary<TEdge, TEdgeInfo> edgeInfos)
Parameters
Type Name Description
System.Int32 iteration

Number of the current iteration.

System.Double statusInPercent

Status of the layout algorithm in percent.

System.String message

Message representing the status of the algorithm.

System.Collections.Generic.IDictionary<TVertex, Point> verticesPositions

Vertices positions associations.

System.Collections.Generic.IDictionary<TVertex, TVertexInfo> verticesInfos

Extra vertices information.

System.Collections.Generic.IDictionary<TEdge, TEdgeInfo> edgeInfos

Extra edges information.

Exceptions
Type Condition
System.ArgumentNullException

message is null.

System.ArgumentOutOfRangeException

iteration is negative.

System.ArgumentOutOfRangeException

statusInPercent is negative.

Properties

| Improve this Doc View Source

EdgesInfos

Extra edges information.

Declaration
public IDictionary<TEdge, TEdgeInfo> EdgesInfos { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<TEdge, TEdgeInfo>
| Improve this Doc View Source

VerticesInfos

Extra vertices information.

Declaration
public IDictionary<TVertex, TVertexInfo> VerticesInfos { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<TVertex, TVertexInfo>

Methods

| Improve this Doc View Source

GetEdgeInfo(TEdge)

Returns the extra layout information of the edge (or null).

Declaration
public sealed override object GetEdgeInfo(TEdge edge)
Parameters
Type Name Description
TEdge edge
Returns
Type Description
System.Object
Overrides
GraphShape.Algorithms.Layout.LayoutIterationEventArgs<TVertex, TEdge>.GetEdgeInfo(TEdge)
Exceptions
Type Condition
System.ArgumentNullException

edge is null.

| Improve this Doc View Source

GetVertexInfo(TVertex)

Returns the extra layout information of the vertex (or null).

Declaration
public sealed override object GetVertexInfo(TVertex vertex)
Parameters
Type Name Description
TVertex vertex
Returns
Type Description
System.Object
Overrides
GraphShape.Algorithms.Layout.LayoutIterationEventArgs<TVertex, TEdge>.GetVertexInfo(TVertex)
Exceptions
Type Condition
System.ArgumentNullException

vertex is null.

Implements

ILayoutInfoIterationEventArgs<TVertex, TEdge, TVertexInfo, TEdgeInfo>
ILayoutInfoIterationEventArgs<TVertex, TEdge>
ILayoutIterationEventArgs<TVertex>

Extension Methods

GraphHelpers.GetDistances<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph, out Double[,])
  • Improve this Doc
  • View Source
In This Article
Back to top GraphShape