Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/08/14 23:54:27 (11 years ago)
Author:
bburlacu
Message:

#1772: Some improvements on the way the genealogy graph and the lineages are drawn.

File:
1 edited

Legend:

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

    r10729 r10732  
    33using System.Drawing.Drawing2D;
    44using System.Linq;
    5 using System.Windows.Forms;
    65using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views;
    76using HeuristicLab.Visualization;
     
    5655      }
    5756    }
    58 
    59     protected override void pictureBox_MouseUp(object sender, MouseEventArgs e) {
    60       base.pictureBox_MouseUp(sender, e);
    61       // get the selected primitive and update it's graphics
    62       var point = new Point(e.X, e.Y);
    63 
    64       var selectedPrimitives = Chart.GetAllPrimitives(point);
    65       if (!selectedPrimitives.Any()) return;
    66 
    67       foreach (var primitive in selectedPrimitives) {
    68         if (primitive is SymbolicExpressionTreeTile) continue;
    69         primitive.Pen = new Pen(Color.Blue) { Brush = new SolidBrush(Color.Blue) };
    70       }
    71       EnforceUpdate();
    72     }
    7357  }
    7458}
Note: See TracChangeset for help on using the changeset viewer.