Changeset 10655 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SymbolicDataAnalysisExpressionLineageExplorerView.cs
- Timestamp:
- 03/25/14 17:17:52 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SymbolicDataAnalysisExpressionLineageExplorerView.cs
r10650 r10655 38 38 39 39 treeMap = new Dictionary<TreeNode, ISymbolicExpressionTree>(); 40 double width = lineageExplorerChart.PreferredSize.Width;41 double height = lineageExplorerChart.PreferredSize.Height;42 if ( lineageExplorerChart.Chart == null) {43 lineageExplorerChart.Chart = new Chart(0, 0, width, height);40 double width = symbolicExpressionChartControl.PreferredSize.Width; 41 double height = symbolicExpressionChartControl.PreferredSize.Height; 42 if (symbolicExpressionChartControl.Chart == null) { 43 symbolicExpressionChartControl.Chart = new Chart(0, 0, width, height); 44 44 } 45 45 } … … 60 60 var lastGen = Content.Ranks.OrderBy(x => x.Key).Last().Value.ToList(); 61 61 treeMap.Clear(); 62 lineageExplorerChart.Clear();62 symbolicExpressionChartControl.Clear(); 63 63 foreach (var g in lastGen) { 64 64 var treeNode = new TreeNode(g.Quality.ToString(CultureInfo.InvariantCulture)); … … 69 69 70 70 private void treeView_AfterSelect(object sender, TreeViewEventArgs e) { 71 lineageExplorerChart.Clear();71 symbolicExpressionChartControl.Clear(); 72 72 var selectedNode = treeView.SelectedNode; 73 73 var symbolicExpressionTree = treeMap[selectedNode]; 74 var chart = lineageExplorerChart.Chart;74 var chart = symbolicExpressionChartControl.Chart; 75 75 var tile = new SymbolicExpressionTreeTile(chart) { 76 76 LayoutEngine = symbolicExpressionTreeNodeLayoutEngine, … … 79 79 SymbolicExpressionTree = symbolicExpressionTree 80 80 }; 81 lineageExplorerChart.UpdateEnabled = false;82 lineageExplorerChart.Add(tile);83 lineageExplorerChart.FlipVertical();84 lineageExplorerChart.UpdateEnabled = true;85 lineageExplorerChart.EnforceUpdate();81 symbolicExpressionChartControl.UpdateEnabled = false; 82 symbolicExpressionChartControl.Add(tile); 83 symbolicExpressionChartControl.FlipVertical(); 84 symbolicExpressionChartControl.UpdateEnabled = true; 85 symbolicExpressionChartControl.EnforceUpdate(); 86 86 } 87 87 }
Note: See TracChangeset
for help on using the changeset viewer.