Bevisuali.Model.NetworkLayoutOptions.NetworkLayoutOptions C# (CSharp) Method

NetworkLayoutOptions() public method

public NetworkLayoutOptions ( AlgorithmEnum algorithm, float nodeSeparationTarget, int iterations, float nodeSize, float edgeThickness ) : System
algorithm AlgorithmEnum
nodeSeparationTarget float
iterations int
nodeSize float
edgeThickness float
return System
        public NetworkLayoutOptions(
            AlgorithmEnum algorithm,
            float nodeSeparationTarget,
            int iterations,
            float nodeSize,
            float edgeThickness)
        {
            if (nodeSeparationTarget <= 0)
            {
                throw new ArgumentOutOfRangeException();
            }

            if (iterations <= 1)
            {
                throw new ArgumentOutOfRangeException();
            }

            if (nodeSize < 1.0)
            {
                throw new ArgumentOutOfRangeException();
            }

            if (edgeThickness <= 0)
            {
                throw new ArgumentOutOfRangeException();
            }

            this.Algorithm = algorithm;
            this.Iterations = iterations;
            this.NodeSeparationTarget = nodeSeparationTarget;
            this.NodeSize = nodeSize;
            this.EdgeThickness = edgeThickness;
        }

Same methods

NetworkLayoutOptions::NetworkLayoutOptions ( ) : System
NetworkLayoutOptions