Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SymbolicDataAnalysisExpressionLineageExplorerChart.cs @ 10514

Last change on this file since 10514 was 10514, checked in by bburlacu, 11 years ago

#1772: Added user controls for displaying lineages and tracking building blocks with the help of the genealogy graph (work in progress).

File size: 833 bytes
Line 
1using System.Collections.Generic;
2using System.Drawing;
3using HeuristicLab.Visualization;
4
5namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views {
6  public partial class SymbolicDataAnalysisExpressionLineageExplorerChart : ChartControl {
7    public SymbolicDataAnalysisExpressionLineageExplorerChart() {
8      InitializeComponent();
9      if (Chart == null) {
10        Chart = new Chart(0, 0, PreferredSize.Width, PreferredSize.Height);
11      }
12    }
13
14    public void Clear() {
15      Chart.Group.Clear();
16    }
17
18    public void Add(IPrimitive primitive) {
19      Chart.Group.Add(primitive);
20    }
21
22    public void AddRange(IEnumerable<IPrimitive> primitives) {
23      Chart.Group.AddRange(primitives);
24    }
25
26    public void Draw(Graphics graphics) {
27      Chart.Group.Draw(graphics);
28    }
29  }
30}
Note: See TracBrowser for help on using the repository browser.