Class LayoutIterationEventArgs<TVertex, TEdge>
Information on a layout algorithm iteration.
Inheritance
Inherited Members
Namespace: GraphShape.Algorithms.Layout
Assembly: GraphShape.dll
Syntax
public class LayoutIterationEventArgs<TVertex, TEdge> : EventArgs, ILayoutInfoIterationEventArgs<TVertex, TEdge>, ILayoutIterationEventArgs<TVertex> where TEdge : IEdge<TVertex>
Type Parameters
| Name | Description |
|---|---|
| TVertex | Vertex type. |
| TEdge | Edge type. |
Constructors
| Improve this Doc View SourceLayoutIterationEventArgs()
Initializes a new instance of the LayoutIterationEventArgs<TVertex, TEdge> class.
Declaration
public LayoutIterationEventArgs()
LayoutIterationEventArgs(Int32, Double)
Initializes a new instance of the LayoutIterationEventArgs<TVertex, TEdge> 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 |
|
| System.ArgumentOutOfRangeException |
|
LayoutIterationEventArgs(Int32, Double, IDictionary<TVertex, Point>)
Initializes a new instance of the LayoutIterationEventArgs<TVertex, TEdge> 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 |
|
| System.ArgumentOutOfRangeException |
|
LayoutIterationEventArgs(Int32, Double, String)
Initializes a new instance of the LayoutIterationEventArgs<TVertex, TEdge> 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 |
|
| System.ArgumentOutOfRangeException |
|
| System.ArgumentOutOfRangeException |
|
LayoutIterationEventArgs(Int32, Double, String, IDictionary<TVertex, Point>)
Initializes a new instance of the LayoutIterationEventArgs<TVertex, TEdge> class.
Declaration
public LayoutIterationEventArgs(int iteration, double statusInPercent, string message, 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.String | message | Message representing the status of the algorithm. |
| System.Collections.Generic.IDictionary<TVertex, Point> | verticesPositions | Vertices positions associations. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| System.ArgumentOutOfRangeException |
|
| System.ArgumentOutOfRangeException |
|
Properties
| Improve this Doc View SourceAbort
If the user sets this value to true, the algorithm aborts as soon as possible.
Declaration
public bool Abort { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Iteration
Number of the current iteration.
Declaration
public int Iteration { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Message
Message representing the status of the algorithm.
Declaration
public string Message { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
StatusInPercent
Represents the status of the layout algorithm in percent.
Declaration
public double StatusInPercent { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
VerticesPositions
Vertices positions associations.
Declaration
public IDictionary<TVertex, Point> VerticesPositions { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IDictionary<TVertex, Point> |
Methods
| Improve this Doc View SourceGetEdgeInfo(TEdge)
Returns the extra layout information of the edge (or null).
Declaration
public virtual object GetEdgeInfo(TEdge edge)
Parameters
| Type | Name | Description |
|---|---|---|
| TEdge | edge |
Returns
| Type | Description |
|---|---|
| System.Object |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
GetVertexInfo(TVertex)
Returns the extra layout information of the vertex (or null).
Declaration
public virtual object GetVertexInfo(TVertex vertex)
Parameters
| Type | Name | Description |
|---|---|---|
| TVertex | vertex |
Returns
| Type | Description |
|---|---|
| System.Object |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|