Changeset 13789 for branches/HeuristicLab.VariableInteractionNetworks/HeuristicLab.VariableInteractionNetworks.Views/3.3/DirectedGraphChartMode.cs
- Timestamp:
- 04/24/16 20:37:12 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.VariableInteractionNetworks/HeuristicLab.VariableInteractionNetworks.Views/3.3/DirectedGraphChartMode.cs
r13727 r13789 25 25 using HeuristicLab.Core; 26 26 using HeuristicLab.MainForm; 27 using HeuristicLab.Problems.DataAnalysis;28 27 using HeuristicLab.Visualization; 29 28 … … 56 55 } 57 56 } 58 } finally { chartControl.ResumeRendering(); } 57 } 58 finally { chartControl.ResumeRendering(); } 59 59 break; 60 60 } 61 } finally { 61 } 62 finally { 62 63 base.HandleOnMouseDown(sender, e); 63 64 } … … 67 68 try { 68 69 switch (e.Button) { 69 case MouseButtons.None:70 try {71 chartControl.SuspendRendering();72 var sp = chartControl.Chart.GetPrimitive(e.Location);73 if (sp is RectangularPrimitiveBase) {74 var vertex = Control.GetVertex(sp) as IVertex<IDeepCloneable>;75 var junctionNode = vertex as JunctionNetworkNode;76 if (junctionNode != null) {77 var solution = vertex.Data as IRegressionSolution;78 if (solution != null) {79 var toolTip = string.Format("Target: {0}\nQuality: {1}", solution.ProblemData.TargetVariable, solution.TrainingRSquared);80 Control.ToolTip.SetToolTip(Control, toolTip);81 }82 }83 }84 } finally { chartControl.ResumeRendering(); }85 break;86 70 case MouseButtons.Left: 87 71 var previousWorldLocation = chartControl.Chart.TransformPixelToWorld(previousLocation); … … 119 103 } 120 104 } 121 } finally { chartControl.ResumeRendering(); } 105 } 106 finally { chartControl.ResumeRendering(); } 122 107 break; 123 108 } 124 } finally {125 chartControl.UpdatePicture();109 } 110 finally { 126 111 base.HandleOnMouseMove(sender, e); 127 112 }
Note: See TracChangeset
for help on using the changeset viewer.