HierarchyPoint<T> Class

A node of a tree placed by a TreeLayout or a ClusterLayout.

public sealed class HierarchyPoint<T> : IEquatable<HierarchyPoint<T>>

Type parameters

T
The type of the data of the nodes.
Implements

Constructors

NameDescription
HierarchyPoint(HierarchyNode<T>, double, double)A node of a tree placed by a TreeLayout or a ClusterLayout.

HierarchyPoint(HierarchyNode<T>, double, double)

HierarchyPoint`1.cs

A node of a tree placed by a TreeLayout or a ClusterLayout.

public HierarchyPoint(HierarchyNode<T> Node, double X, double Y)

Parameters

Node HierarchyNode<T>
The node.
X double
The position across the depths, from 0 to the width of the layout.
Y double
The position along the depth, from 0 (the root) to the height of the layout (the deepest nodes).

Properties

NameDescription
NodeThe node.
XThe position across the depths, from 0 to the width of the layout.
YThe position along the depth, from 0 (the root) to the height of the layout (the deepest nodes).

The node.

public HierarchyNode<T> Node { get; init; }

Property value

HierarchyNode<T>

The position across the depths, from 0 to the width of the layout.

public double X { get; init; }

Property value

double

The position along the depth, from 0 (the root) to the height of the layout (the deepest nodes).

public double Y { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(HierarchyNode<T>, double, double)
Equals(HierarchyPoint<T>?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(HierarchyNode<T>, double, double)

public void Deconstruct(out HierarchyNode<T> Node, out double X, out double Y)

Parameters

Node HierarchyNode<T>
X double
Y double

No documentation is available.

Equals overloads

Equals(HierarchyPoint<T>?)

public bool Equals(HierarchyPoint<T>? other)
Parameters
other HierarchyPoint<T>?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(HierarchyPoint<T>?, HierarchyPoint<T>?)
operator !=(HierarchyPoint<T>?, HierarchyPoint<T>?)

operator ==(HierarchyPoint<T>?, HierarchyPoint<T>?)

public static bool operator ==(HierarchyPoint<T>? left, HierarchyPoint<T>? right)

Parameters

left HierarchyPoint<T>?
right HierarchyPoint<T>?

Returns

bool

No documentation is available.

operator !=(HierarchyPoint<T>?, HierarchyPoint<T>?)

public static bool operator !=(HierarchyPoint<T>? left, HierarchyPoint<T>? right)

Parameters

left HierarchyPoint<T>?
right HierarchyPoint<T>?

Returns

bool

No documentation is available.