Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/25/14 17:17:52 (10 years ago)
Author:
bburlacu
Message:

#1772: Made some progress towards the visualization of building block trajectories. Added the FragmentGraphView.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SymbolicDataAnalysisExpressionLineageExplorerView.cs

    r10650 r10655  
    3838
    3939      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);
    4444      }
    4545    }
     
    6060      var lastGen = Content.Ranks.OrderBy(x => x.Key).Last().Value.ToList();
    6161      treeMap.Clear();
    62       lineageExplorerChart.Clear();
     62      symbolicExpressionChartControl.Clear();
    6363      foreach (var g in lastGen) {
    6464        var treeNode = new TreeNode(g.Quality.ToString(CultureInfo.InvariantCulture));
     
    6969
    7070    private void treeView_AfterSelect(object sender, TreeViewEventArgs e) {
    71       lineageExplorerChart.Clear();
     71      symbolicExpressionChartControl.Clear();
    7272      var selectedNode = treeView.SelectedNode;
    7373      var symbolicExpressionTree = treeMap[selectedNode];
    74       var chart = lineageExplorerChart.Chart;
     74      var chart = symbolicExpressionChartControl.Chart;
    7575      var tile = new SymbolicExpressionTreeTile(chart) {
    7676        LayoutEngine = symbolicExpressionTreeNodeLayoutEngine,
     
    7979        SymbolicExpressionTree = symbolicExpressionTree
    8080      };
    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();
    8686    }
    8787  }
Note: See TracChangeset for help on using the changeset viewer.