source: branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/DataCompletenessChartContent.cs @ 10967

Last change on this file since 10967 was 10967, checked in by aesterer, 6 years ago

Implemented cloning constructor for chart contents

File size: 1.4 KB
Line 
1using HeuristicLab.Common;
2using HeuristicLab.Core;
3using System;
4using System.Collections.Generic;
5using System.Drawing;
6using System.Linq;
7using System.Text;
8
9namespace HeuristicLab.DataPreprocessing
10{
11  [Item("DataCompletenessChart", "Represents a datacompleteness chart.")]
12  public class DataCompletenessChartContent : Item, IViewChartShortcut
13  {
14    private readonly DataGridLogic dataGridLogic;
15    private readonly SearchLogic searchLogic;
16
17    public DataCompletenessChartContent(DataGridLogic dataGridLogic, SearchLogic searchLogic)
18    {
19      this.dataGridLogic = dataGridLogic;
20      this.searchLogic = searchLogic;
21    }
22
23    public DataCompletenessChartContent(DataCompletenessChartContent content, Cloner cloner)
24      : base(content, cloner)
25    {
26      this.dataGridLogic = content.dataGridLogic;
27      this.searchLogic = content.searchLogic;
28    }
29
30    public IDataGridLogic DataGridLogic
31    {
32      get
33      {
34        return dataGridLogic;
35      }
36    }
37
38    public ISearchLogic SearchLogic
39    {
40      get
41      {
42        return searchLogic;
43      }
44    }
45
46    public static new Image StaticItemImage
47    {
48      get { return HeuristicLab.Common.Resources.VSImageLibrary.EditBrightnessContrast; }
49    }
50
51    public override IDeepCloneable Clone(Cloner cloner)
52    {
53      return new DataCompletenessChartContent(this, cloner);
54    }
55  }
56}
Note: See TracBrowser for help on using the repository browser.