Changeset 4648 for trunk/sources/HeuristicLab.Analysis
- Timestamp:
- 10/28/10 00:38:56 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Analysis/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/AlleleFrequencyAnalyzer.cs
r4645 r4648 164 164 visualProperties.ChartType = DataRowVisualProperties.DataRowChartType.Line; 165 165 visualProperties.SecondYAxis = true; 166 visualProperties.StartIndexZero = true; 166 167 allelesTable.Rows.Add(new DataRow("Unique Alleles of Best Known Solution", null, visualProperties)); 167 168 allelesTable.Rows.Add(new DataRow("Fixed Alleles", null, visualProperties)); -
trunk/sources/HeuristicLab.Analysis/3.3/DataRowVisualProperties.cs
r4644 r4648 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 using System.Drawing; 25 26 26 27 namespace HeuristicLab.Analysis { … … 39 40 #endregion 40 41 41 [Storable(DefaultValue = DataRowChartType.Line)]42 42 private DataRowChartType chartType; 43 43 public DataRowChartType ChartType { … … 50 50 } 51 51 } 52 [Storable(DefaultValue = false)]53 52 private bool secondYAxis; 54 53 public bool SecondYAxis { … … 61 60 } 62 61 } 62 private Color color; 63 public Color Color { 64 get { return color; } 65 set { 66 if (color != value) { 67 color = value; 68 OnPropertyChanged("Color"); 69 } 70 } 71 } 72 private bool startIndexZero; 73 public bool StartIndexZero { 74 get { return startIndexZero; } 75 set { 76 if (startIndexZero != value) { 77 startIndexZero = value; 78 OnPropertyChanged("StartIndexZero"); 79 } 80 } 81 } 82 83 #region Persistence Properties 84 [Storable(Name = "ChartType")] 85 private DataRowChartType StorableChartType { 86 get { return chartType; } 87 set { chartType = value; } 88 } 89 [Storable(Name = "SecondYAxis")] 90 private bool StorableSecondYAxis { 91 get { return secondYAxis; } 92 set { secondYAxis = value; } 93 } 94 [Storable(Name = "Color")] 95 private Color StorableColor { 96 get { return color; } 97 set { color = value; } 98 } 99 [Storable(Name = "StartIndexZero")] 100 private bool StorableStartIndexZero { 101 get { return startIndexZero; } 102 set { startIndexZero = value; } 103 } 104 #endregion 63 105 64 106 public DataRowVisualProperties() { 65 107 chartType = DataRowChartType.Line; 66 108 secondYAxis = false; 109 color = Color.Empty; 110 startIndexZero = false; 67 111 } 68 public DataRowVisualProperties(DataRowChartType chartType, bool secondYAxis ) {112 public DataRowVisualProperties(DataRowChartType chartType, bool secondYAxis, Color color, bool startIndexZero) { 69 113 this.chartType = chartType; 70 114 this.secondYAxis = secondYAxis; 115 this.color = color; 116 this.startIndexZero = startIndexZero; 71 117 } 72 118 [StorableConstructor] … … 77 123 clone.chartType = chartType; 78 124 clone.secondYAxis = secondYAxis; 125 clone.color = color; 126 clone.startIndexZero = startIndexZero; 79 127 return clone; 80 128 }
Note: See TracChangeset
for help on using the changeset viewer.