Changeset 5097 for trunk/sources/HeuristicLab.Analysis.Views/3.3
- Timestamp:
- 12/14/10 11:30:55 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Analysis.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.Designer.cs
r4778 r5097 120 120 #endregion 121 121 122 pr ivateHeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart chart;122 protected HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart chart; 123 123 124 124 } -
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs
r4870 r5097 36 36 [View("DataTable View")] 37 37 [Content(typeof(DataTable), true)] 38 public sealedpartial class DataTableView : NamedItemView {39 pr ivateList<Series> invisibleSeries;40 pr ivateDictionary<IObservableList<double>, DataRow> valuesRowsTable;38 public partial class DataTableView : NamedItemView { 39 protected List<Series> invisibleSeries; 40 protected Dictionary<IObservableList<double>, DataRow> valuesRowsTable; 41 41 /// <summary> 42 42 /// Gets or sets the variable to represent visually. … … 113 113 } 114 114 115 private void AddDataRow(DataRow row) { 115 116 /// <summary> 117 /// Add the DataRow as a series to the chart. 118 /// </summary> 119 /// <param name="row">DataRow to add as series to the chart.</param> 120 protected virtual void AddDataRow(DataRow row) { 116 121 Series series = new Series(row.Name); 117 122 switch (row.VisualProperties.ChartType) { … … 141 146 } 142 147 143 private void UpdateYCursorInterval() { 148 149 /// <summary> 150 /// Set the Y Cursor interval to visible points of enabled series. 151 /// </summary> 152 protected virtual void UpdateYCursorInterval() { 144 153 double interestingValuesRange = (from series in chart.Series 145 154 where series.Enabled … … 159 168 } 160 169 161 private void RemoveDataRow(DataRow row) { 170 171 /// <summary> 172 /// Remove the corresponding series for a certain DataRow. 173 /// </summary> 174 /// <param name="row">DataRow which series should be removed.</param> 175 protected virtual void RemoveDataRow(DataRow row) { 162 176 Series series = chart.Series[row.Name]; 163 177 chart.Series.Remove(series); … … 168 182 169 183 #region Content Events 170 private void RegisterDataRowEvents(DataRow row) { 184 /// <summary> 185 /// Automatically called for every existing data row and whenever a data row is added 186 /// to the data table. Do not call this method directly. 187 /// </summary> 188 /// <param name="row">The DataRow that was added.</param> 189 protected virtual void RegisterDataRowEvents(DataRow row) { 171 190 row.NameChanged += new EventHandler(Row_NameChanged); 172 191 row.VisualPropertiesChanged += new EventHandler(Row_VisualPropertiesChanged); … … 178 197 row.Values.CollectionReset += new CollectionItemsChangedEventHandler<IndexedItem<double>>(Values_CollectionReset); 179 198 } 180 private void DeregisterDataRowEvents(DataRow row) { 199 200 /// <summary> 201 /// Automatically called for every data row that is removed from the DataTable. Do 202 /// not directly call this method. 203 /// </summary> 204 /// <param name="row">The DataRow that was removed.</param> 205 protected virtual void DeregisterDataRowEvents(DataRow row) { 181 206 row.Values.ItemsAdded -= new CollectionItemsChangedEventHandler<IndexedItem<double>>(Values_ItemsAdded); 182 207 row.Values.ItemsRemoved -= new CollectionItemsChangedEventHandler<IndexedItem<double>>(Values_ItemsRemoved); … … 436 461 #endregion 437 462 438 private bool IsInvalidValue(double x) { 463 464 /// <summary> 465 /// Determines whether a double value can be displayed (converted to Decimal and not an NaN). 466 /// </summary> 467 /// <param name="x">The number to check.</param> 468 /// <returns><code>true</code> if the value can be safely shwon in the chart, 469 /// <code>false</code> otherwise.</returns> 470 protected static bool IsInvalidValue(double x) { 439 471 return double.IsNaN(x) || x < (double)decimal.MinValue || x > (double)decimal.MaxValue; 440 472 }
Note: See TracChangeset
for help on using the changeset viewer.