Show / Hide Table of Contents

Class CompoundLayoutContext<TVertex, TEdge, TGraph>

Compound graph layout context.

Inheritance
System.Object
LayoutContext<TVertex, TEdge, TGraph>
CompoundLayoutContext<TVertex, TEdge, TGraph>
Implements
ICompoundLayoutContext<TVertex, TEdge, TGraph>
ILayoutContext<TVertex, TEdge, TGraph>
Inherited Members
LayoutContext<TVertex, TEdge, TGraph>.Positions
LayoutContext<TVertex, TEdge, TGraph>.Sizes
LayoutContext<TVertex, TEdge, TGraph>.Graph
LayoutContext<TVertex, TEdge, TGraph>.Mode
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 CompoundLayoutContext<TVertex, TEdge, TGraph> : LayoutContext<TVertex, TEdge, TGraph>, ICompoundLayoutContext<TVertex, TEdge, TGraph>, ILayoutContext<TVertex, TEdge, TGraph> where TEdge : IEdge<TVertex> where TGraph : class, IBidirectionalGraph<TVertex, TEdge>
Type Parameters
Name Description
TVertex

Vertex type.

TEdge

Edge type.

TGraph

Graph type.

Constructors

| Improve this Doc View Source

CompoundLayoutContext(TGraph, IDictionary<TVertex, Point>, IDictionary<TVertex, Size>, LayoutMode, IDictionary<TVertex, Thickness>, IDictionary<TVertex, CompoundVertexInnerLayoutType>)

Initializes a new instance of the CompoundLayoutContext<TVertex, TEdge, TGraph> class.

Declaration
public CompoundLayoutContext(TGraph graph, IDictionary<TVertex, Point> positions, IDictionary<TVertex, Size> sizes, LayoutMode mode, IDictionary<TVertex, Thickness> verticesBorders, IDictionary<TVertex, CompoundVertexInnerLayoutType> layoutTypes)
Parameters
Type Name Description
TGraph graph

Graph to layout.

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

Vertices positions.

System.Collections.Generic.IDictionary<TVertex, Size> sizes

Vertices sizes.

LayoutMode mode

Layout mode.

System.Collections.Generic.IDictionary<TVertex, Thickness> verticesBorders

Vertices borders.

System.Collections.Generic.IDictionary<TVertex, CompoundVertexInnerLayoutType> layoutTypes

Layout types.

Exceptions
Type Condition
System.ArgumentNullException

sizes is null.

System.ArgumentNullException

verticesBorders is null.

System.ArgumentNullException

layoutTypes is null.

Properties

| Improve this Doc View Source

LayoutTypes

Layout types per vertex.

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

VerticesBorders

Vertices borders.

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

Implements

ICompoundLayoutContext<TVertex, TEdge, TGraph>
ILayoutContext<TVertex, TEdge, TGraph>

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