Changeset 3487 for trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.cs
- Timestamp:
- 04/22/10 15:42:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.cs
r3482 r3487 283 283 284 284 private void chart_MouseMove(object sender, MouseEventArgs e) { 285 HitTestResult h = this.chart.HitTest(e.X, e.Y); 285 286 if (!Locked) { 286 HitTestResult h = this.chart.HitTest(e.X, e.Y);287 287 if (this.draggedRun != null && h.ChartElementType != ChartElementType.DataPoint) { 288 288 DataObject data = new DataObject(); … … 301 301 } 302 302 } 303 string newTooltipText; 304 string oldTooltipText; 305 if (h.ChartElementType == ChartElementType.DataPoint) { 306 IRun run = (IRun)((DataPoint)h.Object).Tag; 307 newTooltipText = run.Name + System.Environment.NewLine; 308 newTooltipText += xAxisComboBox.SelectedItem + " : " + Content.GetValue(run, xAxisComboBox.SelectedIndex).ToString() + Environment.NewLine; 309 newTooltipText += yAxisComboBox.SelectedItem + " : " + Content.GetValue(run, yAxisComboBox.SelectedIndex).ToString() + Environment.NewLine; ; 310 } else 311 newTooltipText = string.Empty; 312 oldTooltipText = this.tooltip.GetToolTip(chart); 313 if (newTooltipText != oldTooltipText) 314 this.tooltip.SetToolTip(chart, newTooltipText); 303 315 } 304 316 #endregion
Note: See TracChangeset
for help on using the changeset viewer.