Changeset 10732 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SymbolicExpressionChartControl.cs
- Timestamp:
- 04/08/14 23:54:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SymbolicExpressionChartControl.cs
r10729 r10732 3 3 using System.Drawing.Drawing2D; 4 4 using System.Linq; 5 using System.Windows.Forms;6 5 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views; 7 6 using HeuristicLab.Visualization; … … 56 55 } 57 56 } 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 graphics62 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 }73 57 } 74 58 }
Note: See TracChangeset
for help on using the changeset viewer.