- Timestamp:
- 08/17/15 09:32:01 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/IndexedDataTableView.cs
r12826 r12865 36 36 protected List<Series> invisibleSeries; 37 37 protected Dictionary<IObservableList<Tuple<T, double>>, IndexedDataRow<T>> valuesRowsTable; 38 /// <summary> 39 /// Gets or sets the variable to represent visually. 40 /// </summary> 41 /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>. 42 /// No own data storage present.</remarks> 38 43 39 public new IndexedDataTable<T> Content { 44 40 get { return (IndexedDataTable<T>)base.Content; } … … 46 42 } 47 43 48 /// <summary>49 /// Initializes a new instance of <see cref="VariableView"/> with caption "Variable".50 /// </summary>51 44 public IndexedDataTableView() { 52 45 InitializeComponent(); … … 59 52 60 53 #region Event Handler Registration 61 /// <summary>62 /// Removes the eventhandlers from the underlying <see cref="Variable"/>.63 /// </summary>64 /// <remarks>Calls <see cref="ViewBase.RemoveItemEvents"/> of base class <see cref="ViewBase"/>.</remarks>65 54 protected override void DeregisterContentEvents() { 66 55 foreach (var row in Content.Rows) … … 74 63 } 75 64 76 /// <summary>77 /// Adds eventhandlers to the underlying <see cref="Variable"/>.78 /// </summary>79 /// <remarks>Calls <see cref="ViewBase.AddItemEvents"/> of base class <see cref="ViewBase"/>.</remarks>80 65 protected override void RegisterContentEvents() { 81 66 base.RegisterContentEvents(); … … 177 162 else series.Color = Color.Empty; 178 163 series.IsVisibleInLegend = row.VisualProperties.IsVisibleInLegend; 164 165 series.SmartLabelStyle.Enabled = true; 166 series.SmartLabelStyle.AllowOutsidePlotArea = LabelOutsidePlotAreaStyle.Yes; 167 series.SmartLabelStyle.CalloutLineAnchorCapStyle = LineAnchorCapStyle.None; 168 series.SmartLabelStyle.CalloutLineColor = series.Color; 169 series.SmartLabelStyle.CalloutLineWidth = 2; 170 series.SmartLabelStyle.CalloutStyle = LabelCalloutStyle.Underlined; 171 series.SmartLabelStyle.IsOverlappedHidden = false; 172 series.SmartLabelStyle.MaxMovingDistance = 200; 179 173 180 174 switch (row.VisualProperties.ChartType) { … … 564 558 for (int i = 0; i < row.Values.Count; i++) { 565 559 var value = row.Values[i]; 566 DataPointpoint = new DataPoint();560 var point = new DataPoint(); 567 561 point.SetValueXY(value.Item1, value.Item2); 562 if (i == row.Values.Count - 1) { 563 point.Label = series.Name; 564 point.MarkerStyle = MarkerStyle.Cross; 565 point.MarkerSize = 15; 566 point.MarkerBorderWidth = 1; 567 } 568 568 series.Points.Add(point); 569 569 }
Note: See TracChangeset
for help on using the changeset viewer.