Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/02/15 17:23:33 (9 years ago)
Author:
bburlacu
Message:

#1772: Improved functionality of the SymbolicDataAnalysisGenealogyGraphView in terms of graph navigation and display of useful information. Fixed save of tree image to file in the SymbolicExpressionTreeChart.

File:
1 edited

Legend:

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

    r11852 r11864  
    7373      var visualNode = (VisualGenealogyGraphNode)sender;
    7474      var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)visualNode.Data;
     75
     76      nodeQualityLabel.Text = String.Format("{0:0.000}", graphNode.Quality);
     77      nodeRankLabel.Text = String.Format("{0:0.0}", graphNode.Rank);
     78      nodeDegreeLabel.Text = String.Format("{0} / {1}", graphNode.InDegree, graphNode.OutDegree);
    7579
    7680      if (openNew_CheckBox.Checked) {
     
    169173        var visualNode = SymbolicExpressionTreeChart.GetVisualSymbolicExpressionTreeNode(s);
    170174        visualNode.LineColor = myColor;
    171         //        visualNode.FillColor = myColor;
    172175
    173176        foreach (var c in s.Subtrees) {
     
    178181      SymbolicExpressionTreeChart.RepaintNodes();
    179182    }
     183
     184    private void navigateLeftButton_Click(object sender, EventArgs e) {
     185      var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)genealogyGraphChart.SelectedGraphNode;
     186      if (graphNode.Parents.Any()) {
     187        genealogyGraphChart.SelectedGraphNode = graphNode.Parents.First();
     188      }
     189    }
     190
     191    private void navigateRightButton_Click(object sender, EventArgs e) {
     192      var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)genealogyGraphChart.SelectedGraphNode;
     193      if (graphNode.Parents.Any()) {
     194        genealogyGraphChart.SelectedGraphNode = graphNode.Parents.Last(); // this will only work for genealogy graphs (not trace graphs)
     195      }
     196    }
    180197  }
    181198
Note: See TracChangeset for help on using the changeset viewer.