Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/23/09 11:21:29 (16 years ago)
Author:
mstoeger
Message:

removed unused interfaces/classes. reordered methods. #498

Location:
trunk/sources/HeuristicLab.Visualization/3.2
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/3.2/ChartDataRowsModel.cs

    r1881 r1886  
    1212  public delegate void ModelChangedHandler();
    1313
    14   public class ChartDataRowsModel : ChartDataModelBase, IChartDataRowsModel{
     14  public class ChartDataRowsModel : ItemBase, IChartDataRowsModel {
    1515    private string title = "Title";
    16 
    1716    private ViewSettings viewSettings = new ViewSettings();
    18 
    1917    private readonly XAxisDescriptor xAxisDescriptor = new XAxisDescriptor();
     18    private readonly YAxisDescriptor defaultYAxisDescriptor = new YAxisDescriptor();
     19    private readonly List<IDataRow> rows = new List<IDataRow>();
    2020
    2121    public ChartDataRowsModel() {
    2222      this.XAxis.XAxisDescriptorChanged += delegate { OnModelChanged(); };
     23    }
     24
     25    public override IView CreateView() {
     26      return new LineChart(this);
     27    }
     28
     29    public string Title {
     30      get { return title; }
     31      set {
     32        title = value;
     33        OnModelChanged();
     34      }
    2335    }
    2436
     
    3951    }
    4052
    41 
    42     private readonly List<IDataRow> rows = new List<IDataRow>();
     53    public YAxisDescriptor DefaultYAxis {
     54      get { return defaultYAxisDescriptor; }
     55    }
    4356
    4457    public List<IDataRow> Rows{
    4558      get { return rows; }
    4659    }
    47 
    48     public string Title {
    49       get { return title; }
    50       set {
    51         title = value;
    52         OnModelChanged();
    53       }
    54     }
    55 
    56     public override IView CreateView() {
    57       return new LineChart(this);
    58     }
    59 
    60     private readonly YAxisDescriptor defaultYAxisDescriptor = new YAxisDescriptor();
    6160
    6261    public void AddDataRow(IDataRow row) {
     
    7170      rows.Remove(row);
    7271      OnDataRowRemoved(row);
    73     }
    74 
    75     public YAxisDescriptor DefaultYAxis {
    76       get { return defaultYAxisDescriptor; }
    7772    }
    7873
  • trunk/sources/HeuristicLab.Visualization/3.2/HeuristicLab.Visualization-3.2.csproj

    r1885 r1886  
    9797    </Compile>
    9898    <Compile Include="ChangeType.cs" />
    99     <Compile Include="ChartDataModelBase.cs" />
    10099    <Compile Include="ChartDataRowsModel.cs" />
    101100    <Compile Include="ChartDataRowsModelDummy.cs" />
     
    150149    <Compile Include="DrawingStyle.cs" />
    151150    <Compile Include="HeuristicLabVisualizationPlugin.cs" />
    152     <Compile Include="IChartDataModel.cs" />
    153151    <Compile Include="IChartDataRowsModel.cs" />
    154152    <Compile Include="IDataRow.cs" />
  • trunk/sources/HeuristicLab.Visualization/3.2/IChartDataRowsModel.cs

    r1880 r1886  
    11using System.Collections.Generic;
    22using HeuristicLab.Core;
    3 using HeuristicLab.Visualization.LabelProvider;
    43using HeuristicLab.Visualization.Options;
    54
     
    76  public interface IChartDataRowsModel : IItem {
    87    string Title { get; set; }
    9     List<IDataRow> Rows { get; }
    108
    119    XAxisDescriptor XAxis { get; }
    1210    List<YAxisDescriptor> YAxes { get; }
    1311
     12    List<IDataRow> Rows { get; }
    1413    void AddDataRow(IDataRow row);
    1514    void RemoveDataRow(IDataRow row);
Note: See TracChangeset for help on using the changeset viewer.