Changeset 1285 for trunk/sources/HeuristicLab.Visualization/DataRow.cs
- Timestamp:
- 03/07/09 15:57:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/DataRow.cs
r1233 r1285 25 25 private ILabelProvider labelProvider = new ContinuousLabelProvider("0.##"); 26 26 27 // TODO implement calculation of min and max values 28 private double minValue = double.MaxValue; 29 private double maxValue = double.MinValue; 30 27 31 public DataRowType LineType{ 28 32 get { return lineType; } … … 115 119 116 120 public void AddValue(double value) { 121 UpdateMinMaxValue(value); 122 117 123 dataRow.Add(value); 118 124 OnValueChanged(value, dataRow.Count - 1, Action.Added); … … 223 229 } 224 230 } 231 232 public double MinValue { 233 get { return minValue; } 234 } 235 236 public double MaxValue { 237 get { return maxValue; } 238 } 239 240 private void UpdateMinMaxValue(double value) { 241 maxValue = Math.Max(value, maxValue); 242 minValue = Math.Min(value, minValue); 243 } 225 244 } 226 245 }
Note: See TracChangeset
for help on using the changeset viewer.