Changeset 1886 for trunk/sources/HeuristicLab.Visualization
- Timestamp:
- 05/23/09 11:21:29 (16 years ago)
- 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 12 12 public delegate void ModelChangedHandler(); 13 13 14 public class ChartDataRowsModel : ChartDataModelBase, IChartDataRowsModel{14 public class ChartDataRowsModel : ItemBase, IChartDataRowsModel { 15 15 private string title = "Title"; 16 17 16 private ViewSettings viewSettings = new ViewSettings(); 18 19 17 private readonly XAxisDescriptor xAxisDescriptor = new XAxisDescriptor(); 18 private readonly YAxisDescriptor defaultYAxisDescriptor = new YAxisDescriptor(); 19 private readonly List<IDataRow> rows = new List<IDataRow>(); 20 20 21 21 public ChartDataRowsModel() { 22 22 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 } 23 35 } 24 36 … … 39 51 } 40 52 41 42 private readonly List<IDataRow> rows = new List<IDataRow>(); 53 public YAxisDescriptor DefaultYAxis { 54 get { return defaultYAxisDescriptor; } 55 } 43 56 44 57 public List<IDataRow> Rows{ 45 58 get { return rows; } 46 59 } 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();61 60 62 61 public void AddDataRow(IDataRow row) { … … 71 70 rows.Remove(row); 72 71 OnDataRowRemoved(row); 73 }74 75 public YAxisDescriptor DefaultYAxis {76 get { return defaultYAxisDescriptor; }77 72 } 78 73 -
trunk/sources/HeuristicLab.Visualization/3.2/HeuristicLab.Visualization-3.2.csproj
r1885 r1886 97 97 </Compile> 98 98 <Compile Include="ChangeType.cs" /> 99 <Compile Include="ChartDataModelBase.cs" />100 99 <Compile Include="ChartDataRowsModel.cs" /> 101 100 <Compile Include="ChartDataRowsModelDummy.cs" /> … … 150 149 <Compile Include="DrawingStyle.cs" /> 151 150 <Compile Include="HeuristicLabVisualizationPlugin.cs" /> 152 <Compile Include="IChartDataModel.cs" />153 151 <Compile Include="IChartDataRowsModel.cs" /> 154 152 <Compile Include="IDataRow.cs" /> -
trunk/sources/HeuristicLab.Visualization/3.2/IChartDataRowsModel.cs
r1880 r1886 1 1 using System.Collections.Generic; 2 2 using HeuristicLab.Core; 3 using HeuristicLab.Visualization.LabelProvider;4 3 using HeuristicLab.Visualization.Options; 5 4 … … 7 6 public interface IChartDataRowsModel : IItem { 8 7 string Title { get; set; } 9 List<IDataRow> Rows { get; }10 8 11 9 XAxisDescriptor XAxis { get; } 12 10 List<YAxisDescriptor> YAxes { get; } 13 11 12 List<IDataRow> Rows { get; } 14 13 void AddDataRow(IDataRow row); 15 14 void RemoveDataRow(IDataRow row);
Note: See TracChangeset
for help on using the changeset viewer.