Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/26/14 22:20:26 (10 years ago)
Author:
bburlacu
Message:

#1772: Added handling of double click event in the genealogy graph (opens a new view of the selected symbolic expression tree). Added highlighting of trace data. Very minor cosmetic changes to the TraceCalculator. Removed resx file from project.

File:
1 edited

Legend:

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

    r10746 r11503  
    2020#endregion
    2121
     22using System.Linq;
     23using System.Windows.Forms;
    2224using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2325using HeuristicLab.EvolutionTracking;
     
    3436      set { base.GenealogyGraph = value; }
    3537    }
     38
     39    private void pictureBox_DoubleClick(object sender, MouseEventArgs e) {
     40      var visualNodes = Chart.GetAllPrimitives(e.Location).Where(p => p is VisualGenealogyGraphNode).ToList();
     41      if (!visualNodes.Any()) {
     42        SelectedVisualNode = null;
     43        return;
     44      }
     45      var visualNode = visualNodes.First();
     46
     47      base.OnGenealogyGraphNodeDoubleClicked(visualNode, e);
     48    }
    3649    // add event handlers here for processing events coming from the tree chart
    3750  }
Note: See TracChangeset for help on using the changeset viewer.