Changeset 13656 for branches/WebJobManager/HeuristicLab.Analysis/3.3/DataVisualization/ScatterPlot.cs
- Timestamp:
- 03/07/16 10:18:05 (8 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Analysis/3.3/DataVisualization/ScatterPlot.cs
r12012 r13656 35 35 [StorableClass] 36 36 public class ScatterPlot : NamedItem, IStringConvertibleMatrix { 37 public static new Image StaticItemImage { 38 get { return HeuristicLab.Common.Resources.VSImageLibrary.Performance; } 39 } 37 40 38 41 39 private ScatterPlotVisualProperties visualProperties; 42 public ScatterPlotVisualProperties VisualProperties { 40 public ScatterPlotVisualProperties VisualProperties 41 { 43 42 get { return visualProperties; } 44 set { 43 set 44 { 45 45 if (visualProperties != value) { 46 46 if (value == null) throw new ArgumentNullException("VisualProperties"); … … 54 54 55 55 private NamedItemCollection<ScatterPlotDataRow> rows; 56 public NamedItemCollection<ScatterPlotDataRow> Rows { 56 public NamedItemCollection<ScatterPlotDataRow> Rows 57 { 57 58 get { return rows; } 58 private set { 59 private set 60 { 59 61 if (rows != null) throw new InvalidOperationException("Rows already set"); 60 62 rows = value; … … 65 67 #region Persistence Properties 66 68 [Storable(Name = "VisualProperties")] 67 private ScatterPlotVisualProperties StorableVisualProperties { 69 private ScatterPlotVisualProperties StorableVisualProperties 70 { 68 71 get { return visualProperties; } 69 set { 72 set 73 { 70 74 visualProperties = value; 71 75 visualProperties.PropertyChanged += new PropertyChangedEventHandler(VisualProperties_PropertyChanged); … … 73 77 } 74 78 [Storable(Name = "Rows")] 75 private IEnumerable<ScatterPlotDataRow> StorableRows { 79 private IEnumerable<ScatterPlotDataRow> StorableRows 80 { 76 81 get { return rows; } 77 82 set { Rows = new NamedItemCollection<ScatterPlotDataRow>(value); } … … 108 113 private ObservableList<PointF> points; 109 114 [Storable(Name = "points", AllowOneWay = true)] 110 private ObservableList<PointF> StorablePoints { 115 private ObservableList<PointF> StorablePoints 116 { 111 117 set { points = value; } 112 118 } 113 119 private string xAxisName; 114 120 [Storable(Name = "xAxisName", AllowOneWay = true)] 115 private string StorableXAxisName { 121 private string StorableXAxisName 122 { 116 123 set { xAxisName = value; } 117 124 } 118 125 private string yAxisName; 119 126 [Storable(Name = "yAxisName", AllowOneWay = true)] 120 private string StorableYAxisName { 127 private string StorableYAxisName 128 { 121 129 set { yAxisName = value; } 122 130 } … … 223 231 224 232 #region IStringConvertibleMatrix Members 225 int IStringConvertibleMatrix.Rows { 233 int IStringConvertibleMatrix.Rows 234 { 226 235 get { return rows.Count == 0 ? 0 : rows.Max(r => r.Points.Count); } 227 236 set { throw new NotSupportedException(); } 228 237 } 229 int IStringConvertibleMatrix.Columns { 238 int IStringConvertibleMatrix.Columns 239 { 230 240 get { return rows.Count; } 231 241 set { throw new NotSupportedException(); } 232 242 } 233 IEnumerable<string> IStringConvertibleMatrix.ColumnNames { 243 IEnumerable<string> IStringConvertibleMatrix.ColumnNames 244 { 234 245 get { return rows.Select(r => r.Name); } 235 246 set { throw new NotSupportedException(); } 236 247 } 237 IEnumerable<string> IStringConvertibleMatrix.RowNames { 248 IEnumerable<string> IStringConvertibleMatrix.RowNames 249 { 238 250 get { return Enumerable.Empty<string>(); } 239 251 set { throw new NotSupportedException(); } 240 252 } 241 253 242 bool IStringConvertibleMatrix.SortableView { 254 bool IStringConvertibleMatrix.SortableView 255 { 243 256 get { return true; } 244 257 set { throw new NotSupportedException(); } 245 258 } 246 bool IStringConvertibleMatrix.ReadOnly { 259 bool IStringConvertibleMatrix.ReadOnly 260 { 247 261 get { return true; } 248 262 }
Note: See TracChangeset
for help on using the changeset viewer.