static SettingsDialog() { sKKLayoutSettings = new KKLayoutAlgorithm<StateNode, StateEdge>( new Digraph<StateNode, StateEdge>(), new Box2F(0, 0, 1, 1)); sKKLayoutSettings.LengthFactor = 1.25f; sBalloonCirclesLayoutSettings = new BalloonCirclesLayoutAlgorithm2<StateNode, StateEdge>( new Digraph<StateNode, StateEdge>(), new Box2F(0, 0, 1, 1)); sSimpleTreeLayoutSettings = new SimpleTreeLayoutAlgorithm<DGNode, DGEdge>( new Digraph<DGNode, DGEdge>(), new Box2F(0, 0, 1, 1)); sSimpleTreeLayoutSettings.LayerGap = 30; }
static SettingsDialog() { sKKLayoutSettings = new KKLayoutAlgorithm <StateNode, StateEdge>( new Digraph <StateNode, StateEdge>(), new Box2F(0, 0, 1, 1)); sKKLayoutSettings.LengthFactor = 1.25f; sBalloonCirclesLayoutSettings = new BalloonCirclesLayoutAlgorithm2 <StateNode, StateEdge>( new Digraph <StateNode, StateEdge>(), new Box2F(0, 0, 1, 1)); sSimpleTreeLayoutSettings = new SimpleTreeLayoutAlgorithm <DGNode, DGEdge>( new Digraph <DGNode, DGEdge>(), new Box2F(0, 0, 1, 1)); sSimpleTreeLayoutSettings.LayerGap = 30; }
private static void CopyLayoutSettings( BalloonCirclesLayoutAlgorithm2 <StateNode, StateEdge> source, BalloonCirclesLayoutAlgorithm2 <StateNode, StateEdge> target) { if (target.State != ComputeState.Running && target.AsyncState != ComputeState.Running) { target.MaxIterations = source.MaxIterations; target.MovementTolerance = source.MovementTolerance; } target.GroupingMethod = source.GroupingMethod; target.NodeSequencer = source.NodeSequencer; target.NodeSpacing = source.NodeSpacing; target.MinRadius = source.MinRadius; target.FreeArc = source.FreeArc; target.SpanningTreeGeneration = source.SpanningTreeGeneration; target.RootFindingMethod = source.RootFindingMethod; target.InSketchMode = source.InSketchMode; target.BranchSpacing = source.BranchSpacing; target.RootCentering = source.RootCentering; target.MinimumEdgeLength = source.MinimumEdgeLength; target.EqualizeBranchLengths = source.EqualizeBranchLengths; target.MaximumRootWedge = source.MaximumRootWedge; target.MaximumTreeWedge = source.MaximumTreeWedge; target.MaximumDeviationAngle = source.MaximumDeviationAngle; target.AdaptToSizeChanges = source.AdaptToSizeChanges; target.AdjustRootCenters = source.AdjustRootCenters; target.AdjustRootAngle = source.AdjustRootAngle; target.SpringMultiplier = source.SpringMultiplier; target.MagneticMultiplier = source.MagneticMultiplier; target.MagneticExponent = source.MagneticExponent; target.RootAngle = source.RootAngle; }
private static void CopyLayoutSettings( BalloonCirclesLayoutAlgorithm2<StateNode, StateEdge> source, BalloonCirclesLayoutAlgorithm2<StateNode, StateEdge> target) { if (target.State != ComputeState.Running && target.AsyncState != ComputeState.Running) { target.MaxIterations = source.MaxIterations; target.MovementTolerance = source.MovementTolerance; } target.GroupingMethod = source.GroupingMethod; target.NodeSequencer = source.NodeSequencer; target.NodeSpacing = source.NodeSpacing; target.MinRadius = source.MinRadius; target.FreeArc = source.FreeArc; target.SpanningTreeGeneration = source.SpanningTreeGeneration; target.RootFindingMethod = source.RootFindingMethod; target.InSketchMode = source.InSketchMode; target.BranchSpacing = source.BranchSpacing; target.RootCentering = source.RootCentering; target.MinimumEdgeLength = source.MinimumEdgeLength; target.EqualizeBranchLengths = source.EqualizeBranchLengths; target.MaximumRootWedge = source.MaximumRootWedge; target.MaximumTreeWedge = source.MaximumTreeWedge; target.MaximumDeviationAngle = source.MaximumDeviationAngle; target.AdaptToSizeChanges = source.AdaptToSizeChanges; target.AdjustRootCenters = source.AdjustRootCenters; target.AdjustRootAngle = source.AdjustRootAngle; target.SpringMultiplier = source.SpringMultiplier; target.MagneticMultiplier = source.MagneticMultiplier; target.MagneticExponent = source.MagneticExponent; target.RootAngle = source.RootAngle; }