- Timestamp:
- 01/13/17 12:55:06 (8 years ago)
- Location:
- branches/MemPRAlgorithm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/MemPRAlgorithm
-
branches/MemPRAlgorithm/HeuristicLab.Analysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Analysis (added) merged: 14493
- Property svn:mergeinfo changed
-
branches/MemPRAlgorithm/HeuristicLab.Analysis/3.3/DataVisualization/ScatterPlotDataRowVisualProperties.cs
r14185 r14562 45 45 } 46 46 #endregion 47 #region 48 public enum ScatterPlotDataRowRegressionType { 49 None, 50 Linear, 51 Polynomial, 52 Exponential, 53 Logarithmic, 54 Power 55 } 56 #endregion 47 57 48 58 private Color color; … … 101 111 } 102 112 } 113 private ScatterPlotDataRowRegressionType regressionType; 114 public ScatterPlotDataRowRegressionType RegressionType { 115 get { return regressionType; } 116 set { 117 if (regressionType != value) { 118 regressionType = value; 119 OnPropertyChanged("RegressionType"); 120 } 121 } 122 } 123 private int polynomialRegressionOrder; 124 public int PolynomialRegressionOrder { 125 get { return polynomialRegressionOrder; } 126 set { 127 if (polynomialRegressionOrder != value) { 128 polynomialRegressionOrder = value; 129 OnPropertyChanged("PolynomialRegressionOrder"); 130 } 131 } 132 } 133 private bool isRegressionVisibleInLegend; 134 public bool IsRegressionVisibleInLegend { 135 get { return isRegressionVisibleInLegend; } 136 set { 137 if (isRegressionVisibleInLegend != value) { 138 isRegressionVisibleInLegend = value; 139 OnPropertyChanged("IsRegressionVisibleInLegend"); 140 } 141 } 142 } 143 private string regressionDisplayName; 144 public string RegressionDisplayName { 145 get { return regressionDisplayName ?? string.Empty; } 146 set { 147 if (regressionDisplayName != value) { 148 if (value == null && regressionDisplayName != string.Empty) { 149 regressionDisplayName = string.Empty; 150 OnPropertyChanged("RegressionDisplayName"); 151 } else if (value != null) { 152 regressionDisplayName = value; 153 OnPropertyChanged("RegressionDisplayName"); 154 } 155 } 156 } 157 } 103 158 104 159 #region Persistence Properties … … 127 182 get { return displayName; } 128 183 set { displayName = value; } 184 } 185 [Storable(Name = "RegressionType")] 186 private ScatterPlotDataRowRegressionType StorableRegressionType { 187 get { return regressionType; } 188 set { regressionType = value; } 189 } 190 [Storable(Name = "PolynomialRegressionOrder", DefaultValue = 2)] 191 private int StorablePolynomialRegressionOrder { 192 get { return polynomialRegressionOrder; } 193 set { polynomialRegressionOrder = value; } 194 } 195 [Storable(Name = "IsRegressionVisibleInLegend", DefaultValue = true)] 196 private bool StorableIsRegressionVisibleInLegend { 197 get { return isRegressionVisibleInLegend; } 198 set { isRegressionVisibleInLegend = value; } 199 } 200 [Storable(Name = "RegressionDisplayName")] 201 private string StorableRegressionDisplayName { 202 get { return regressionDisplayName; } 203 set { regressionDisplayName = value; } 129 204 } 130 205 #endregion … … 139 214 this.displayName = original.displayName; 140 215 this.isVisibleInLegend = original.isVisibleInLegend; 216 this.regressionType = original.regressionType; 217 this.polynomialRegressionOrder = original.polynomialRegressionOrder; 218 this.isRegressionVisibleInLegend = original.isRegressionVisibleInLegend; 219 this.regressionDisplayName = original.regressionDisplayName; 141 220 } 142 221 public ScatterPlotDataRowVisualProperties() { … … 146 225 displayName = String.Empty; 147 226 isVisibleInLegend = true; 227 regressionType = ScatterPlotDataRowRegressionType.None; 228 polynomialRegressionOrder = 2; 229 isRegressionVisibleInLegend = true; 230 regressionDisplayName = string.Empty; 148 231 } 149 232 public ScatterPlotDataRowVisualProperties(string displayName)
Note: See TracChangeset
for help on using the changeset viewer.