private void ConfigureGraph(GraphExample graph) { var logicCore = new GXLogicCoreExample() { Graph = graph }; FamilyTreeGraph.LogicCore = logicCore; ConfigureGraphLayout(logicCore); FamilyTreeGraph.SetEdgesDashStyle(EdgeDashStyle.Solid); FamilyTreeGraph.ShowAllEdgesArrows(false); FamilyTreeGraph.GenerateGraph(true); FamilyTreeGraph.ShowAllEdgesLabels(false); } private void ConfigureGraphLayout(GXLogicCoreExample logicCore) { logicCore.DefaultLayoutAlgorithm = LayoutAlgorithmTypeEnum.EfficientSugiyama; logicCore.DefaultOverlapRemovalAlgorithm = OverlapRemovalAlgorithmTypeEnum.FSA; logicCore.DefaultEdgeRoutingAlgorithm = EdgeRoutingAlgorithmTypeEnum.SimpleER; logicCore.EdgeCurvingEnabled = false; //logicCore.EdgeCurvingTolerance = 100; logicCore.EnableParallelEdges = true; logicCore.ParallelEdgeDistance = 25; logicCore.DefaultLayoutAlgorithmParams = new EfficientSugiyamaLayoutParameters { Direction = LayoutDirection.TopToBottom, LayerDistance = 25, VertexDistance = 25, //Seed = 2, PositionMode = 2, WidthPerHeight = 5, MinimizeEdgeLength = true, OptimizeWidth = true, EdgeRouting = SugiyamaEdgeRoutings.Orthogonal }; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)